diff --git a/.gitignore b/.gitignore index 29b09046..6ba16c87 100644 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,8 @@ uics/ make.sh gitpush_serverstuff_stable pokerth_server - +.vscode +,qmake.stash +pokerth.ap* +*.DS_STORE +.gitignore.save diff --git a/.qmake.stash b/.qmake.stash new file mode 100644 index 00000000..1ae0d1b8 --- /dev/null +++ b/.qmake.stash @@ -0,0 +1,44 @@ +QMAKE_MAC_SDK.macosx.Path = /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk +QMAKE_MAC_SDK.macosx.SDKVersion = 10.14.6 +QMAKE_MAC_SDK.macx-clang.macosx.QMAKE_CC = /Library/Developer/CommandLineTools/usr/bin/clang +QMAKE_MAC_SDK.macx-clang.macosx.QMAKE_CXX = /Library/Developer/CommandLineTools/usr/bin/clang++ +QMAKE_MAC_SDK.macx-clang.macosx.QMAKE_FIX_RPATH = \ + /Library/Developer/CommandLineTools/usr/bin/install_name_tool \ + -id +QMAKE_MAC_SDK.macx-clang.macosx.QMAKE_AR = \ + /Library/Developer/CommandLineTools/usr/bin/ar \ + cq +QMAKE_MAC_SDK.macx-clang.macosx.QMAKE_RANLIB = \ + /Library/Developer/CommandLineTools/usr/bin/ranlib \ + -s +QMAKE_MAC_SDK.macx-clang.macosx.QMAKE_LINK = /Library/Developer/CommandLineTools/usr/bin/clang++ +QMAKE_MAC_SDK.macx-clang.macosx.QMAKE_LINK_SHLIB = /Library/Developer/CommandLineTools/usr/bin/clang++ +QMAKE_MAC_SDK.macx-clang.macosx.QMAKE_LINK_C = /Library/Developer/CommandLineTools/usr/bin/clang +QMAKE_MAC_SDK.macx-clang.macosx.QMAKE_LINK_C_SHLIB = /Library/Developer/CommandLineTools/usr/bin/clang +QMAKE_CXX.QT_COMPILER_STDCXX = 199711L +QMAKE_CXX.QMAKE_APPLE_CC = 6000 +QMAKE_CXX.QMAKE_APPLE_CLANG_MAJOR_VERSION = 10 +QMAKE_CXX.QMAKE_APPLE_CLANG_MINOR_VERSION = 0 +QMAKE_CXX.QMAKE_APPLE_CLANG_PATCH_VERSION = 1 +QMAKE_CXX.QMAKE_GCC_MAJOR_VERSION = 4 +QMAKE_CXX.QMAKE_GCC_MINOR_VERSION = 2 +QMAKE_CXX.QMAKE_GCC_PATCH_VERSION = 1 +QMAKE_CXX.COMPILER_MACROS = \ + QT_COMPILER_STDCXX \ + QMAKE_APPLE_CC \ + QMAKE_APPLE_CLANG_MAJOR_VERSION \ + QMAKE_APPLE_CLANG_MINOR_VERSION \ + QMAKE_APPLE_CLANG_PATCH_VERSION \ + QMAKE_GCC_MAJOR_VERSION \ + QMAKE_GCC_MINOR_VERSION \ + QMAKE_GCC_PATCH_VERSION +QMAKE_CXX.INCDIRS = \ + /Library/Developer/CommandLineTools/usr/include/c++/v1 \ + /Library/Developer/CommandLineTools/usr/lib/clang/10.0.1/include \ + /Library/Developer/CommandLineTools/usr/include \ + /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include +QMAKE_CXX.LIBDIRS = /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib +QMAKE_XCODE_DEVELOPER_PATH = /Library/Developer/CommandLineTools +QMAKE_MAC_SDK.macosx.PlatformPath = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform +QMAKE_MAC_SDK.macx-clang.macosx.QMAKE_ACTOOL = /Applications/Xcode.app/Contents/Developer/usr/bin/actool +QMAKE_XCODE_VERSION = 10.3 diff --git a/INSTALL b/INSTALL index 934cbc67..bee52431 100644 --- a/INSTALL +++ b/INSTALL @@ -1,36 +1 @@ -Requirements -============ - -To compile PokerTH you need following libs: - -Linux: -- Qt version >= 4.4.3, 4.8.x recommended --> http://qtsoftware.com/ -- zlib version >= 1.2.3 --> http://www.zlib.net/ -- libcurl version >= 7.16 --> http://curl.haxx.se/ -- libgcrypt (e.g. version 1.4.6) --> http://www.gnu.org/software/libgcrypt/ -- libgsasl version >= 1.4 --> http://www.gnu.org/software/gsasl/ -- libboost_thread, libboost_filesystem, libboost_datetime, libboost_program_options, - libboost_iostreams, libboost_asio, libboost_regex, libboost_random, libboost_uuid - (version >= 1.49, latest always recommended) --> http://www.boost.org/ -- libSDL_mixer, libSDL --> http://www.libsdl.org/ -- libSQLite3 --> http://sqlite.org/ -- libtinyxml > 2.0 --> http://www.sourceforge.net/projects/tinyxml -- protoc >= 2.3.0 (during build), libprotobuf >= 2.3.0 -> https://github.com/google/protobuf -- For the server: libircclient 1.3 --> http://www.sourceforge.net/projects/libircclient/ - -Windows: -see docs/build_mingw_windows.txt - - -Basic Installation -================== - -Linux: - - 1. Type "cd path/to/the/sources". Then do for example "/usr/qt/4/bin/qmake pokerth.pro" to configure the makefile for your system. - Pay attention that the QTDIR environment variable points to Qt4 not Qt3. For example QTDIR=/usr/qt/4. - You can set this variable typing: "export QTDIR=/usr/qt/4" - - 2. Type "make" to compile the package. - - 3. Become root (typing "su") and type "make install" to install the program binary. +see https://github.com/pokerth/pokerth/wiki/Building-PokerTH \ No newline at end of file diff --git a/mac_post_make.sh b/mac_post_make.sh index 40edddb5..b0646fed 100755 --- a/mac_post_make.sh +++ b/mac_post_make.sh @@ -9,12 +9,13 @@ # of binary-size if you leave Qt out. # (see http://trolltech.com/developer/downloads/qt/mac) -QT_FW_PATH="/Users/$USER/Qt/5.9/clang_64/lib" -QT_PLUGIN_PATH="/Users/$USER/Qt/5.9/clang_64/plugins" +QT_FW_PATH="/usr/local/Cellar/qt/5.13.0/lib" +QT_PLUGIN_PATH="/usr/local/Cellar/qt/5.13.0/plugins" SDL_FW_PATH="/Library/Frameworks" APPLICATION="./pokerth.app" BINARY="$APPLICATION/Contents/MacOs/pokerth" RESOURCES="$APPLICATION/Contents/Resources" +DYLIB_PATH="$APPLICATION/Contents/MacOs/dylibs" # strip binary strip $BINARY @@ -23,18 +24,50 @@ cp -R ./data $RESOURCES/ find $RESOURCES/data -name ".svn" | xargs rm -Rf # create framework-path BINARY_FW_PATH="$APPLICATION/Contents/Frameworks" -mkdir $BINARY_FW_PATH BINARY_PLUGIN_PATH="$APPLICATION/Contents/plugins" + +rm -rf $BINARY_FW_PATH +rm -rf $BINARY_PLUGIN_PATH +rm -rf $DYLIB_PATH + +mkdir $BINARY_FW_PATH mkdir -p $BINARY_PLUGIN_PATH/imageformats mkdir -p $BINARY_PLUGIN_PATH/sqldrivers mkdir -p $BINARY_PLUGIN_PATH/platforms +mkdir -p $DYLIB_PATH # integrate SDL-frameworks into binary cp -R $SDL_FW_PATH/SDL.framework $BINARY_FW_PATH cp -R $SDL_FW_PATH/SDL_mixer.framework $BINARY_FW_PATH -# integrate Qt-frameworks into binary +# integrate dylibs +cp /usr/lib/libcurl.4.dylib $DYLIB_PATH/. +cp /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib $DYLIB_PATH/. +cp /usr/local/opt/openssl/lib/libssl.1.0.0.dylib $DYLIB_PATH/. +cp /usr/lib/libsqlite3.dylib $DYLIB_PATH/. +cp /usr/local/opt/tinyxml/lib/libtinyxml.dylib $DYLIB_PATH/. +cp /usr/local/opt/protobuf/lib/libprotobuf.18.dylib $DYLIB_PATH/. +cp /usr/lib/libz.1.dylib $DYLIB_PATH/. +LIBCURL_LINK=$(otool -L $BINARY | grep libcurl | cut -d"(" -f1 | cut -f2) +LIBCRYPTO_LINK=$(otool -L $BINARY | grep libcrypto | cut -d"(" -f1 | cut -f2) +LIBSSL_LINK=$(otool -L $BINARY | grep libssl | cut -d"(" -f1 | cut -f2) +LIBTINYXML_LINK=$(otool -L $BINARY | grep libtinyxml | cut -d"(" -f1 | cut -f2) +LIBSQLITE_LINK=$(otool -L $BINARY | grep libsqlite | cut -d"(" -f1 | cut -f2) +LIBPROTOBUF_LINK=$(otool -L $BINARY | grep libprotobuf | cut -d"(" -f1 | cut -f2) +LIBZ_LINK=$(otool -L $BINARY | grep libz | cut -d"(" -f1 | cut -f2) + +install_name_tool -change $LIBCURL_LINK @loader_path/dylibs/libcurl.4.dylib $BINARY +install_name_tool -change $LIBCRYPTO_LINK @loader_path/dylibs/libcrypto.1.0.0.dylib $BINARY +install_name_tool -change $LIBSSL_LINK @loader_path/dylibs/libssl.1.0.0.dylib $BINARY +install_name_tool -change $LIBSSL_LINK @loader_path/dylibs/libssl.1.0.0.dylib $APPLICATION/Contents/MacOS/dylibs/libcrypto.1.0.0.dylib +install_name_tool -change $LIBTINYXML_LINK @loader_path/dylibs/libtinyxml.dylib $BINARY +install_name_tool -change $LIBSQLITE_LINK @loader_path/dylibs/libsqlite3.dylib $BINARY +install_name_tool -change $LIBPROTOBUF_LINK @loader_path/dylibs/libprotobuf.18.dylib $BINARY +install_name_tool -change $LIBSQLITE_LINK @loader_path/dylibs/libsqlite3.dylib $BINARY +install_name_tool -change $LIBZ_LINK @loader_path/dylibs/libz.1.dylib $BINARY + +# integrate Qt-frameworks into binary if [ "$1" != "--without-qt" ] ; then cp $QT_PLUGIN_PATH/imageformats/libqgif.dylib $BINARY_PLUGIN_PATH/imageformats cp $QT_PLUGIN_PATH/imageformats/libqjpeg.dylib $BINARY_PLUGIN_PATH/imageformats @@ -46,6 +79,8 @@ if [ "$1" != "--without-qt" ] ; then cp -R $QT_FW_PATH/QtSql.framework $BINARY_FW_PATH cp -R $QT_FW_PATH/QtNetwork.framework $BINARY_FW_PATH cp -R $QT_FW_PATH/QtPrintSupport.framework $BINARY_FW_PATH + cp -R /usr/local/Cellar/qt/5.13.0/lib/QtDBus.framework $BINARY_FW_PATH + chmod -R 775 $BINARY_FW_PATH # remove debug versions rm -f $APPLICATION/Contents/Frameworks/QtCore.framework/QtCore_debug rm -f $APPLICATION/Contents/Frameworks/QtCore.framework/QtCore_debug.prl @@ -65,6 +100,9 @@ if [ "$1" != "--without-qt" ] ; then rm -f $APPLICATION/Contents/Frameworks/QtPrintSupport.framework/QtPrintSupport_debug rm -f $APPLICATION/Contents/Frameworks/QtPrintSupport.framework/QtPrintSupport_debug.prl rm -f $APPLICATION/Contents/Frameworks/QtPrintSupport.framework/Versions/5/QtPrintSupport_debug + rm -f $APPLICATION/Contents/Frameworks/QtDBus.framework/QtDBus_debug + rm -f $APPLICATION/Contents/Frameworks/QtDBus.framework/QtDBus_debug.prl + rm -f $APPLICATION/Contents/Frameworks/QtDBus.framework/Versions/5/QtDBus_debug # redirect binary to use integrated frameworks QTCORE="QtCore.framework/Versions/5/QtCore" @@ -73,18 +111,20 @@ if [ "$1" != "--without-qt" ] ; then QTSQL="QtSql.framework/Versions/5/QtSql" QTNETWORK="QtNetwork.framework/Versions/5/QtNetwork" QTPRINT="QtPrintSupport.framework/Versions/5/QtPrintSupport" + QTDBUS="QtDBus.framework/Versions/5/QtDBus" install_name_tool -id @executable_path/../Frameworks/$QTCORE $BINARY_FW_PATH/$QTCORE install_name_tool -id @executable_path/../Frameworks/$QTGUI $BINARY_FW_PATH/$QTGUI install_name_tool -id @executable_path/../Frameworks/$QTWIDGETS $BINARY_FW_PATH/$QTWIDGETS install_name_tool -id @executable_path/../Frameworks/$QTSQL $BINARY_FW_PATH/$QTSQL install_name_tool -id @executable_path/../Frameworks/$QTNETWORK $BINARY_FW_PATH/$QTNETWORK install_name_tool -id @executable_path/../Frameworks/$QTPRINT $BINARY_FW_PATH/$QTPRINT + install_name_tool -id @executable_path/../Frameworks/$QDBUS $BINARY_FW_PATH/$QTDBUS QTCORE_LINK=$(otool -L $BINARY | grep QtCore | cut -d"(" -f1 | cut -f2) QTGUI_LINK=$(otool -L $BINARY | grep QtGui | cut -d"(" -f1 | cut -f2) QTWIDGETS_LINK=$(otool -L $BINARY | grep QtWidgets | cut -d"(" -f1 | cut -f2) QTSQL_LINK=$(otool -L $BINARY | grep QtSql | cut -d"(" -f1 | cut -f2) QTNETWORK_LINK=$(otool -L $BINARY | grep QtNetwork | cut -d"(" -f1 | cut -f2) - QTPRINT_LINK=$(otool -L $BINARY_PLUGIN_PATH/platforms/libqcocoa.dylib | grep QtPrintSupport | cut -d"(" -f1 | cut -f2) + install_name_tool -change $QTCORE_LINK @executable_path/../Frameworks/$QTCORE $BINARY install_name_tool -change $QTGUI_LINK @executable_path/../Frameworks/$QTGUI $BINARY install_name_tool -change $QTWIDGETS_LINK @executable_path/../Frameworks/$QTWIDGETS $BINARY @@ -98,10 +138,22 @@ if [ "$1" != "--without-qt" ] ; then install_name_tool -change $QTWIDGETS_LINK @executable_path/../Frameworks/$QTWIDGETS $BINARY_PLUGIN_PATH/imageformats/libqjpeg.dylib install_name_tool -change $QTCORE_LINK @executable_path/../Frameworks/$QTCORE $BINARY_PLUGIN_PATH/sqldrivers/libqsqlite.dylib install_name_tool -change $QTSQL_LINK @executable_path/../Frameworks/$QTSQL $BINARY_PLUGIN_PATH/sqldrivers/libqsqlite.dylib + + QTDBUS_LINK=$(otool -L $BINARY_PLUGIN_PATH/platforms/libqcocoa.dylib | grep QtDBus | cut -d"(" -f1 | cut -f2) + QTPRINT_LINK=$(otool -L $BINARY_PLUGIN_PATH/platforms/libqcocoa.dylib | grep QtPrintSupport | cut -d"(" -f1 | cut -f2) + QTZ_LINK=$(otool -L $BINARY_PLUGIN_PATH/platforms/libqcocoa.dylib | grep libz | cut -d"(" -f1 | cut -f2) + QTCORE_LINK=$(otool -L $BINARY_PLUGIN_PATH/platforms/libqcocoa.dylib | grep QtCore | cut -d"(" -f1 | cut -f2) + QTGUI_LINK=$(otool -L $BINARY_PLUGIN_PATH/platforms/libqcocoa.dylib | grep QtGui | cut -d"(" -f1 | cut -f2) + QTWIDGETS_LINK=$(otool -L $BINARY_PLUGIN_PATH/platforms/libqcocoa.dylib | grep QtWidgets | cut -d"(" -f1 | cut -f2) install_name_tool -change $QTCORE_LINK @executable_path/../Frameworks/$QTCORE $BINARY_PLUGIN_PATH/platforms/libqcocoa.dylib install_name_tool -change $QTGUI_LINK @executable_path/../Frameworks/$QTGUI $BINARY_PLUGIN_PATH/platforms/libqcocoa.dylib install_name_tool -change $QTWIDGETS_LINK @executable_path/../Frameworks/$QTWIDGETS $BINARY_PLUGIN_PATH/platforms/libqcocoa.dylib install_name_tool -change $QTPRINT_LINK @executable_path/../Frameworks/$QTPRINT $BINARY_PLUGIN_PATH/platforms/libqcocoa.dylib + install_name_tool -change $QTDBUS_LINK @executable_path/../Frameworks/$QTDBUS $BINARY_PLUGIN_PATH/platforms/libqcocoa.dylib + install_name_tool -change $QTZ_LINK @loader_path/dylibs/libz.1.dylib $BINARY_PLUGIN_PATH/platforms/libqcocoa.dylib + + QTCORE_LINK=$(otool -L $BINARY_FW_PATH/$QTDBUS | grep QtCore | head -1 | cut -d"(" -f1 | cut -f2) + install_name_tool -change $QTCORE_LINK @executable_path/../Frameworks/$QTCORE $BINARY_FW_PATH/$QTDBUS QTCORE_LINK=$(otool -L $BINARY_FW_PATH/$QTGUI | grep QtCore | head -1 | cut -d"(" -f1 | cut -f2) install_name_tool -change $QTCORE_LINK @executable_path/../Frameworks/$QTCORE $BINARY_FW_PATH/$QTGUI diff --git a/pokerth_db.pro b/pokerth_db.pro index 035c7817..2edab7be 100644 --- a/pokerth_db.pro +++ b/pokerth_db.pro @@ -60,7 +60,7 @@ mac{ CONFIG += x86_64 CONFIG -= x86 CONFIG -= ppc - QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.12 + QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7 QMAKE_CXXFLAGS -= -std=gnu++0x # for universal-compilation on PPC-Mac uncomment the following line diff --git a/pokerth_game.pro b/pokerth_game.pro index 2c188e44..5860b515 100644 --- a/pokerth_game.pro +++ b/pokerth_game.pro @@ -576,7 +576,7 @@ mac { CONFIG += x86_64 CONFIG -= x86 CONFIG -= ppc - QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.12 + QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7 QMAKE_CXXFLAGS -= -std=gnu++0x # workaround for problems with boost_filesystem exceptions @@ -587,13 +587,14 @@ mac { # QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk/ LIBPATH += lib + # QT dynamic linked framework (see also mac_post_make.sh) - LIBS += -F /Library/Frameworks - LIBS += -framework \ - QtCore - LIBS += -framework \ - QtGui - LIBS += -framework \ + LIBS += -F /Library/Frameworks +# LIBS += -framework \ +# QtCore +# LIBS += -framework \ +# QtGui + LIBS += -framework \ SDL LIBS += -framework \ SDL_mixer @@ -615,7 +616,7 @@ mac { -lprotobuf \ -lz \ -framework \ - Cocoa + Cocoa # set the application icon RC_FILE = pokerth.icns diff --git a/pokerth_lib.pro b/pokerth_lib.pro index 7f9b00d6..8612a86d 100644 --- a/pokerth_lib.pro +++ b/pokerth_lib.pro @@ -294,7 +294,7 @@ mac{ CONFIG += x86_64 CONFIG -= x86 CONFIG -= ppc - QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.12 + QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7 QMAKE_CXXFLAGS -= -std=gnu++0x # for universal-compilation on PPC-Mac uncomment the following line diff --git a/pokerth_protocol.pro b/pokerth_protocol.pro index 046eabcf..3e2ee45d 100644 --- a/pokerth_protocol.pro +++ b/pokerth_protocol.pro @@ -40,7 +40,7 @@ win32 { system(protoc pokerth.proto --java_out=tests/src) } unix : !mac { - INCLUDEPATH += $${PREFIX}/include + INCLUDEPATH += $${PREFIX}/include system(protoc pokerth.proto --cpp_out=src/third_party/protobuf) system(protoc chatcleaner.proto --cpp_out=src/third_party/protobuf) system(protoc pokerth.proto --java_out=tests/src) @@ -52,11 +52,14 @@ unix : !mac { } } mac { - # make it x86_64 only - CONFIG += x86_64 - CONFIG -= x86 - CONFIG -= ppc - QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.12 + # make it x86_64 only + CONFIG += x86_64 + CONFIG -= x86 + CONFIG -= ppc + QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7 + system(protoc pokerth.proto --cpp_out=src/third_party/protobuf) + system(protoc chatcleaner.proto --cpp_out=src/third_party/protobuf) + system(protoc pokerth.proto --java_out=tests/src) # for universal-compilation on PPC-Mac uncomment the following line # on Intel-Mac you have to comment this line out or build will fail. diff --git a/pokerth_server.pro b/pokerth_server.pro index ccaff69e..c94d913d 100644 --- a/pokerth_server.pro +++ b/pokerth_server.pro @@ -310,7 +310,7 @@ mac { CONFIG += x86_64 CONFIG -= x86 CONFIG -= ppc - QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.12 + QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7 QMAKE_CXXFLAGS -= -std=gnu++0x # workaround for problems with boost_filesystem exceptions diff --git a/src/third_party/protobuf/chatcleaner.pb.cc b/src/third_party/protobuf/chatcleaner.pb.cc index 25901065..8a42b082 100644 --- a/src/third_party/protobuf/chatcleaner.pb.cc +++ b/src/third_party/protobuf/chatcleaner.pb.cc @@ -1,67 +1,162 @@ // 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 -void protobuf_ShutdownFile_chatcleaner_2eproto() { - delete CleanerInitMessage::default_instance_; - delete CleanerInitAckMessage::default_instance_; - delete CleanerChatRequestMessage::default_instance_; - delete CleanerChatReplyMessage::default_instance_; - delete ChatCleanerMessage::default_instance_; -} - -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -void protobuf_AddDesc_chatcleaner_2eproto_impl() { +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() { GOOGLE_PROTOBUF_VERIFY_VERSION; -#else -void protobuf_AddDesc_chatcleaner_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; - GOOGLE_PROTOBUF_VERIFY_VERSION; - -#endif - CleanerInitMessage::default_instance_ = new CleanerInitMessage(); - CleanerInitAckMessage::default_instance_ = new CleanerInitAckMessage(); - CleanerChatRequestMessage::default_instance_ = new CleanerChatRequestMessage(); - CleanerChatReplyMessage::default_instance_ = new CleanerChatReplyMessage(); - ChatCleanerMessage::default_instance_ = new ChatCleanerMessage(); - CleanerInitMessage::default_instance_->InitAsDefaultInstance(); - CleanerInitAckMessage::default_instance_->InitAsDefaultInstance(); - CleanerChatRequestMessage::default_instance_->InitAsDefaultInstance(); - CleanerChatReplyMessage::default_instance_->InitAsDefaultInstance(); - ChatCleanerMessage::default_instance_->InitAsDefaultInstance(); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_chatcleaner_2eproto); -} - -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_chatcleaner_2eproto_once_); -void protobuf_AddDesc_chatcleaner_2eproto() { - ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_chatcleaner_2eproto_once_, - &protobuf_AddDesc_chatcleaner_2eproto_impl); -} -#else -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_chatcleaner_2eproto { - StaticDescriptorInitializer_chatcleaner_2eproto() { - protobuf_AddDesc_chatcleaner_2eproto(); + { + void* ptr = &::_CleanerInitMessage_default_instance_; + new (ptr) ::CleanerInitMessage(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } -} static_descriptor_initializer_chatcleaner_2eproto_; -#endif + ::CleanerInitMessage::InitAsDefaultInstance(); +} + +::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); + } + ::CleanerInitAckMessage::InitAsDefaultInstance(); +} + +::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; @@ -73,33 +168,46 @@ bool CleanerChatType_IsValid(int value) { // =================================================================== -#ifndef _MSC_VER +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 const int CleanerInitMessage::kRequestedVersionFieldNumber; const int CleanerInitMessage::kClientSecretFieldNumber; -#endif // !_MSC_VER +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 CleanerInitMessage::CleanerInitMessage() - : ::google::protobuf::MessageLite() { + : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:CleanerInitMessage) } - -void CleanerInitMessage::InitAsDefaultInstance() { -} - CleanerInitMessage::CleanerInitMessage(const CleanerInitMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(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) } void CleanerInitMessage::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; + ::google::protobuf::internal::InitSCC( + &scc_info_CleanerInitMessage_chatcleaner_2eproto.base); + clientsecret_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); requestedversion_ = 0u; - clientsecret_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); } CleanerInitMessage::~CleanerInitMessage() { @@ -108,96 +216,135 @@ CleanerInitMessage::~CleanerInitMessage() { } void CleanerInitMessage::SharedDtor() { - if (clientsecret_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete clientsecret_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } + clientsecret_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void CleanerInitMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const CleanerInitMessage& CleanerInitMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_chatcleaner_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_chatcleaner_2eproto(); -#endif - return *default_instance_; + ::google::protobuf::internal::InitSCC(&::scc_info_CleanerInitMessage_chatcleaner_2eproto.base); + return *internal_default_instance(); } -CleanerInitMessage* CleanerInitMessage::default_instance_ = NULL; - -CleanerInitMessage* CleanerInitMessage::New() const { - return new CleanerInitMessage; -} void CleanerInitMessage::Clear() { - if (_has_bits_[0 / 32] & 3) { - requestedversion_ = 0u; - if (has_clientsecret()) { - if (clientsecret_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - clientsecret_->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(); } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); + requestedversion_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); } +#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 (!(EXPRESSION)) goto failure +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); + ::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_string); + &unknown_fields_output, false); // @@protoc_insertion_point(parse_start:CleanerInitMessage) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::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 requestedVersion = 1; case 1: { - if (tag == 8) { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + HasBitSetters::set_has_requestedversion(this); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( input, &requestedversion_))); - set_has_requestedversion(); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_clientSecret; break; } // required string clientSecret = 2; case 2: { - if (tag == 18) { - parse_clientSecret: + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_clientsecret())); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField( @@ -214,50 +361,77 @@ failure: 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 (has_requestedversion()) { + if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestedversion(), output); } // required string clientSecret = 2; - if (has_clientsecret()) { + if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->clientsecret(), output); } - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); + output->WriteRaw(_internal_metadata_.unknown_fields().data(), + static_cast(_internal_metadata_.unknown_fields().size())); // @@protoc_insertion_point(serialize_end:CleanerInitMessage) } -int CleanerInitMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 requestedVersion = 1; - if (has_requestedversion()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requestedversion()); - } +size_t CleanerInitMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:CleanerInitMessage) + size_t total_size = 0; + if (has_clientsecret()) { // required string clientSecret = 2; - if (has_clientsecret()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->clientsecret()); - } - + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->clientsecret()); } - total_size += unknown_fields().size(); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + if (has_requestedversion()) { + // 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. + // 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(); + } + ::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; } @@ -267,19 +441,27 @@ void CleanerInitMessage::CheckTypeAndMergeFrom( } void CleanerInitMessage::MergeFrom(const CleanerInitMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_requestedversion()) { - set_requestedversion(from.requestedversion()); +// @@protoc_insertion_point(class_specific_merge_from_start:CleanerInitMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::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_); } - if (from.has_clientsecret()) { - set_clientsecret(from.clientsecret()); + if (cached_has_bits & 0x00000002u) { + requestedversion_ = from.requestedversion_; } + _has_bits_[0] |= cached_has_bits; } - mutable_unknown_fields()->append(from.unknown_fields()); } void CleanerInitMessage::CopyFrom(const CleanerInitMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:CleanerInitMessage) if (&from == this) return; Clear(); MergeFrom(from); @@ -287,18 +469,20 @@ 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) { - std::swap(requestedversion_, other->requestedversion_); - std::swap(clientsecret_, other->clientsecret_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + 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_); } ::std::string CleanerInitMessage::GetTypeName() const { @@ -308,33 +492,46 @@ void CleanerInitMessage::Swap(CleanerInitMessage* other) { // =================================================================== -#ifndef _MSC_VER +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 const int CleanerInitAckMessage::kServerVersionFieldNumber; const int CleanerInitAckMessage::kServerSecretFieldNumber; -#endif // !_MSC_VER +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 CleanerInitAckMessage::CleanerInitAckMessage() - : ::google::protobuf::MessageLite() { + : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:CleanerInitAckMessage) } - -void CleanerInitAckMessage::InitAsDefaultInstance() { -} - CleanerInitAckMessage::CleanerInitAckMessage(const CleanerInitAckMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(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) } void CleanerInitAckMessage::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; + ::google::protobuf::internal::InitSCC( + &scc_info_CleanerInitAckMessage_chatcleaner_2eproto.base); + serversecret_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); serverversion_ = 0u; - serversecret_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); } CleanerInitAckMessage::~CleanerInitAckMessage() { @@ -343,96 +540,135 @@ CleanerInitAckMessage::~CleanerInitAckMessage() { } void CleanerInitAckMessage::SharedDtor() { - if (serversecret_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete serversecret_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } + serversecret_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void CleanerInitAckMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const CleanerInitAckMessage& CleanerInitAckMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_chatcleaner_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_chatcleaner_2eproto(); -#endif - return *default_instance_; + ::google::protobuf::internal::InitSCC(&::scc_info_CleanerInitAckMessage_chatcleaner_2eproto.base); + return *internal_default_instance(); } -CleanerInitAckMessage* CleanerInitAckMessage::default_instance_ = NULL; - -CleanerInitAckMessage* CleanerInitAckMessage::New() const { - return new CleanerInitAckMessage; -} void CleanerInitAckMessage::Clear() { - if (_has_bits_[0 / 32] & 3) { - serverversion_ = 0u; - if (has_serversecret()) { - if (serversecret_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - serversecret_->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(); } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); + serverversion_ = 0u; + _has_bits_.Clear(); + _internal_metadata_.Clear(); } +#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 (!(EXPRESSION)) goto failure +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); + ::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_string); + &unknown_fields_output, false); // @@protoc_insertion_point(parse_start:CleanerInitAckMessage) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::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 serverVersion = 1; case 1: { - if (tag == 8) { + if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { + HasBitSetters::set_has_serverversion(this); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( input, &serverversion_))); - set_has_serverversion(); } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_serverSecret; break; } // required string serverSecret = 2; case 2: { - if (tag == 18) { - parse_serverSecret: + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_serversecret())); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField( @@ -449,50 +685,77 @@ failure: 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 (has_serverversion()) { + if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->serverversion(), output); } // required string serverSecret = 2; - if (has_serversecret()) { + if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2, this->serversecret(), output); } - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); + output->WriteRaw(_internal_metadata_.unknown_fields().data(), + static_cast(_internal_metadata_.unknown_fields().size())); // @@protoc_insertion_point(serialize_end:CleanerInitAckMessage) } -int CleanerInitAckMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 serverVersion = 1; - if (has_serverversion()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->serverversion()); - } +size_t CleanerInitAckMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:CleanerInitAckMessage) + size_t total_size = 0; + if (has_serversecret()) { // required string serverSecret = 2; - if (has_serversecret()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->serversecret()); - } - + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->serversecret()); } - total_size += unknown_fields().size(); - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + if (has_serverversion()) { + // 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. + // 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(); + } + ::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; } @@ -502,19 +765,27 @@ void CleanerInitAckMessage::CheckTypeAndMergeFrom( } void CleanerInitAckMessage::MergeFrom(const CleanerInitAckMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_serverversion()) { - set_serverversion(from.serverversion()); +// @@protoc_insertion_point(class_specific_merge_from_start:CleanerInitAckMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::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_); } - if (from.has_serversecret()) { - set_serversecret(from.serversecret()); + if (cached_has_bits & 0x00000002u) { + serverversion_ = from.serverversion_; } + _has_bits_[0] |= cached_has_bits; } - mutable_unknown_fields()->append(from.unknown_fields()); } void CleanerInitAckMessage::CopyFrom(const CleanerInitAckMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:CleanerInitAckMessage) if (&from == this) return; Clear(); MergeFrom(from); @@ -522,18 +793,20 @@ 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) { - std::swap(serverversion_, other->serverversion_); - std::swap(serversecret_, other->serversecret_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + 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_); } ::std::string CleanerInitAckMessage::GetTypeName() const { @@ -543,41 +816,71 @@ void CleanerInitAckMessage::Swap(CleanerInitAckMessage* other) { // =================================================================== -#ifndef _MSC_VER +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 const int CleanerChatRequestMessage::kRequestIdFieldNumber; const int CleanerChatRequestMessage::kCleanerChatTypeFieldNumber; const int CleanerChatRequestMessage::kGameIdFieldNumber; const int CleanerChatRequestMessage::kPlayerIdFieldNumber; const int CleanerChatRequestMessage::kPlayerNameFieldNumber; const int CleanerChatRequestMessage::kChatMessageFieldNumber; -#endif // !_MSC_VER +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 CleanerChatRequestMessage::CleanerChatRequestMessage() - : ::google::protobuf::MessageLite() { + : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:CleanerChatRequestMessage) } - -void CleanerChatRequestMessage::InitAsDefaultInstance() { -} - CleanerChatRequestMessage::CleanerChatRequestMessage(const CleanerChatRequestMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(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) } void CleanerChatRequestMessage::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - requestid_ = 0u; - cleanerchattype_ = 0; - gameid_ = 0u; - playerid_ = 0u; - playername_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - chatmessage_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + ::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_)); } CleanerChatRequestMessage::~CleanerChatRequestMessage() { @@ -586,182 +889,243 @@ CleanerChatRequestMessage::~CleanerChatRequestMessage() { } void CleanerChatRequestMessage::SharedDtor() { - if (playername_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete playername_; - } - if (chatmessage_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete chatmessage_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } + playername_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + chatmessage_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void CleanerChatRequestMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const CleanerChatRequestMessage& CleanerChatRequestMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_chatcleaner_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_chatcleaner_2eproto(); -#endif - return *default_instance_; + ::google::protobuf::internal::InitSCC(&::scc_info_CleanerChatRequestMessage_chatcleaner_2eproto.base); + return *internal_default_instance(); } -CleanerChatRequestMessage* CleanerChatRequestMessage::default_instance_ = NULL; - -CleanerChatRequestMessage* CleanerChatRequestMessage::New() const { - return new CleanerChatRequestMessage; -} void CleanerChatRequestMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) +// @@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; -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - if (_has_bits_[0 / 32] & 63) { - ZR_(requestid_, playerid_); - if (has_playername()) { - if (playername_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - playername_->clear(); - } + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000003u) { + if (cached_has_bits & 0x00000001u) { + playername_.ClearNonDefaultToEmptyNoArena(); } - if (has_chatmessage()) { - if (chatmessage_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - chatmessage_->clear(); - } + if (cached_has_bits & 0x00000002u) { + chatmessage_.ClearNonDefaultToEmptyNoArena(); } } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->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(); } +#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 (!(EXPRESSION)) goto failure +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); + ::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_string); + &unknown_fields_output, false); // @@protoc_insertion_point(parse_start:CleanerChatRequestMessage) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::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 (tag == 8) { + 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_))); - set_has_requestid(); } else { goto handle_unusual; } - if (input->ExpectTag(16)) goto parse_cleanerChatType; break; } // required .CleanerChatType cleanerChatType = 2; case 2: { - if (tag == 16) { - parse_cleanerChatType: - int value; + 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 (::CleanerChatType_IsValid(value)) { set_cleanerchattype(static_cast< ::CleanerChatType >(value)); } else { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); + unknown_fields_stream.WriteVarint32(16u); + unknown_fields_stream.WriteVarint32( + static_cast<::google::protobuf::uint32>(value)); } } else { goto handle_unusual; } - if (input->ExpectTag(24)) goto parse_gameId; break; } // optional uint32 gameId = 3 [default = 0]; case 3: { - if (tag == 24) { - parse_gameId: + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + HasBitSetters::set_has_gameid(this); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( input, &gameid_))); - set_has_gameid(); } else { goto handle_unusual; } - if (input->ExpectTag(32)) goto parse_playerId; break; } // required uint32 playerId = 4; case 4: { - if (tag == 32) { - parse_playerId: + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + HasBitSetters::set_has_playerid(this); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( input, &playerid_))); - set_has_playerid(); } else { goto handle_unusual; } - if (input->ExpectTag(42)) goto parse_playerName; break; } // required string playerName = 5; case 5: { - if (tag == 42) { - parse_playerName: + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_playername())); } else { goto handle_unusual; } - if (input->ExpectTag(50)) goto parse_chatMessage; break; } // required string chatMessage = 6; case 6: { - if (tag == 50) { - parse_chatMessage: + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_chatmessage())); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField( @@ -778,99 +1142,141 @@ failure: 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 (has_requestid()) { + if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestid(), output); } // required .CleanerChatType cleanerChatType = 2; - if (has_cleanerchattype()) { + if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 2, this->cleanerchattype(), output); } // optional uint32 gameId = 3 [default = 0]; - if (has_gameid()) { + if (cached_has_bits & 0x00000010u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->gameid(), output); } // required uint32 playerId = 4; - if (has_playerid()) { + if (cached_has_bits & 0x00000020u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->playerid(), output); } // required string playerName = 5; - if (has_playername()) { + if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 5, this->playername(), output); } // required string chatMessage = 6; - if (has_chatmessage()) { + if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 6, this->chatmessage(), output); } - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); + output->WriteRaw(_internal_metadata_.unknown_fields().data(), + static_cast(_internal_metadata_.unknown_fields().size())); // @@protoc_insertion_point(serialize_end:CleanerChatRequestMessage) } -int CleanerChatRequestMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 requestId = 1; - if (has_requestid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requestid()); - } - - // required .CleanerChatType cleanerChatType = 2; - if (has_cleanerchattype()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->cleanerchattype()); - } - - // optional uint32 gameId = 3 [default = 0]; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 playerId = 4; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } +size_t CleanerChatRequestMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:CleanerChatRequestMessage) + size_t total_size = 0; + if (has_playername()) { // required string playerName = 5; - if (has_playername()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->playername()); - } + 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()) { + // required uint32 requestId = 1; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->requestid()); + } + + if (has_cleanerchattype()) { + // required .CleanerChatType cleanerChatType = 2; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->cleanerchattype()); + } + + if (has_playerid()) { + // 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. + // required string playerName = 5; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::StringSize( + this->playername()); // required string chatMessage = 6; - if (has_chatmessage()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->chatmessage()); - } + 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(); } - total_size += unknown_fields().size(); + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // 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); return total_size; } @@ -880,54 +1286,66 @@ void CleanerChatRequestMessage::CheckTypeAndMergeFrom( } void CleanerChatRequestMessage::MergeFrom(const CleanerChatRequestMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_requestid()) { - set_requestid(from.requestid()); +// @@protoc_insertion_point(class_specific_merge_from_start:CleanerChatRequestMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::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_); } - if (from.has_cleanerchattype()) { - set_cleanerchattype(from.cleanerchattype()); + if (cached_has_bits & 0x00000002u) { + _has_bits_[0] |= 0x00000002u; + chatmessage_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.chatmessage_); } - if (from.has_gameid()) { - set_gameid(from.gameid()); + if (cached_has_bits & 0x00000004u) { + requestid_ = from.requestid_; } - if (from.has_playerid()) { - set_playerid(from.playerid()); + if (cached_has_bits & 0x00000008u) { + cleanerchattype_ = from.cleanerchattype_; } - if (from.has_playername()) { - set_playername(from.playername()); + if (cached_has_bits & 0x00000010u) { + gameid_ = from.gameid_; } - if (from.has_chatmessage()) { - set_chatmessage(from.chatmessage()); + if (cached_has_bits & 0x00000020u) { + playerid_ = from.playerid_; } + _has_bits_[0] |= cached_has_bits; } - mutable_unknown_fields()->append(from.unknown_fields()); } void CleanerChatRequestMessage::CopyFrom(const CleanerChatRequestMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:CleanerChatRequestMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool CleanerChatRequestMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x0000003b) != 0x0000003b) return false; - + if ((_has_bits_[0] & 0x0000002f) != 0x0000002f) return false; return true; } void CleanerChatRequestMessage::Swap(CleanerChatRequestMessage* other) { - if (other != this) { - std::swap(requestid_, other->requestid_); - std::swap(cleanerchattype_, other->cleanerchattype_); - std::swap(gameid_, other->gameid_); - std::swap(playerid_, other->playerid_); - std::swap(playername_, other->playername_); - std::swap(chatmessage_, other->chatmessage_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + 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_); } ::std::string CleanerChatRequestMessage::GetTypeName() const { @@ -937,64 +1355,66 @@ void CleanerChatRequestMessage::Swap(CleanerChatRequestMessage* other) { // =================================================================== -bool CleanerChatReplyMessage_CleanerActionType_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - case 3: - case 4: - return true; - default: - return false; - } +void CleanerChatReplyMessage::InitAsDefaultInstance() { } +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; + } +}; -#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 +#if !defined(_MSC_VER) || _MSC_VER >= 1900 const int CleanerChatReplyMessage::kRequestIdFieldNumber; const int CleanerChatReplyMessage::kCleanerChatTypeFieldNumber; const int CleanerChatReplyMessage::kGameIdFieldNumber; const int CleanerChatReplyMessage::kPlayerIdFieldNumber; const int CleanerChatReplyMessage::kCleanerActionTypeFieldNumber; const int CleanerChatReplyMessage::kCleanerTextFieldNumber; -#endif // !_MSC_VER +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 CleanerChatReplyMessage::CleanerChatReplyMessage() - : ::google::protobuf::MessageLite() { + : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:CleanerChatReplyMessage) } - -void CleanerChatReplyMessage::InitAsDefaultInstance() { -} - CleanerChatReplyMessage::CleanerChatReplyMessage(const CleanerChatReplyMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(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) } void CleanerChatReplyMessage::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - requestid_ = 0u; - cleanerchattype_ = 0; - gameid_ = 0u; - playerid_ = 0u; - cleaneractiontype_ = 0; - cleanertext_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); + ::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_)); } CleanerChatReplyMessage::~CleanerChatReplyMessage() { @@ -1003,183 +1423,243 @@ CleanerChatReplyMessage::~CleanerChatReplyMessage() { } void CleanerChatReplyMessage::SharedDtor() { - if (cleanertext_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete cleanertext_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } + cleanertext_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } void CleanerChatReplyMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const CleanerChatReplyMessage& CleanerChatReplyMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_chatcleaner_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_chatcleaner_2eproto(); -#endif - return *default_instance_; + ::google::protobuf::internal::InitSCC(&::scc_info_CleanerChatReplyMessage_chatcleaner_2eproto.base); + return *internal_default_instance(); } -CleanerChatReplyMessage* CleanerChatReplyMessage::default_instance_ = NULL; - -CleanerChatReplyMessage* CleanerChatReplyMessage::New() const { - return new CleanerChatReplyMessage; -} void CleanerChatReplyMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) +// @@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; -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - if (_has_bits_[0 / 32] & 63) { - ZR_(requestid_, playerid_); - cleaneractiontype_ = 0; - if (has_cleanertext()) { - if (cleanertext_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - cleanertext_->clear(); - } - } + cached_has_bits = _has_bits_[0]; + if (cached_has_bits & 0x00000001u) { + cleanertext_.ClearNonDefaultToEmptyNoArena(); } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->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(); } +#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 (!(EXPRESSION)) goto failure +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); + ::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_string); + &unknown_fields_output, false); // @@protoc_insertion_point(parse_start:CleanerChatReplyMessage) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::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 (tag == 8) { + 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_))); - set_has_requestid(); } else { goto handle_unusual; } - if (input->ExpectTag(16)) goto parse_cleanerChatType; break; } // required .CleanerChatType cleanerChatType = 2; case 2: { - if (tag == 16) { - parse_cleanerChatType: - int value; + 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 (::CleanerChatType_IsValid(value)) { set_cleanerchattype(static_cast< ::CleanerChatType >(value)); } else { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); + unknown_fields_stream.WriteVarint32(16u); + unknown_fields_stream.WriteVarint32( + static_cast<::google::protobuf::uint32>(value)); } } else { goto handle_unusual; } - if (input->ExpectTag(24)) goto parse_gameId; break; } // optional uint32 gameId = 3 [default = 0]; case 3: { - if (tag == 24) { - parse_gameId: + if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { + HasBitSetters::set_has_gameid(this); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( input, &gameid_))); - set_has_gameid(); } else { goto handle_unusual; } - if (input->ExpectTag(32)) goto parse_playerId; break; } // required uint32 playerId = 4; case 4: { - if (tag == 32) { - parse_playerId: + if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { + HasBitSetters::set_has_playerid(this); DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( input, &playerid_))); - set_has_playerid(); } else { goto handle_unusual; } - if (input->ExpectTag(40)) goto parse_cleanerActionType; break; } // required .CleanerChatReplyMessage.CleanerActionType cleanerActionType = 5; case 5: { - if (tag == 40) { - parse_cleanerActionType: - int value; + 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 (::CleanerChatReplyMessage_CleanerActionType_IsValid(value)) { set_cleaneractiontype(static_cast< ::CleanerChatReplyMessage_CleanerActionType >(value)); } else { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); + unknown_fields_stream.WriteVarint32(40u); + unknown_fields_stream.WriteVarint32( + static_cast<::google::protobuf::uint32>(value)); } } else { goto handle_unusual; } - if (input->ExpectTag(50)) goto parse_cleanerText; break; } // optional string cleanerText = 6 [default = ""]; case 6: { - if (tag == 50) { - parse_cleanerText: + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_cleanertext())); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField( @@ -1196,98 +1676,134 @@ failure: 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 (has_requestid()) { + if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestid(), output); } // required .CleanerChatType cleanerChatType = 2; - if (has_cleanerchattype()) { + if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 2, this->cleanerchattype(), output); } // optional uint32 gameId = 3 [default = 0]; - if (has_gameid()) { + if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->gameid(), output); } // required uint32 playerId = 4; - if (has_playerid()) { + if (cached_has_bits & 0x00000010u) { ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->playerid(), output); } // required .CleanerChatReplyMessage.CleanerActionType cleanerActionType = 5; - if (has_cleaneractiontype()) { + if (cached_has_bits & 0x00000020u) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 5, this->cleaneractiontype(), output); } // optional string cleanerText = 6 [default = ""]; - if (has_cleanertext()) { + if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 6, this->cleanertext(), output); } - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); + output->WriteRaw(_internal_metadata_.unknown_fields().data(), + static_cast(_internal_metadata_.unknown_fields().size())); // @@protoc_insertion_point(serialize_end:CleanerChatReplyMessage) } -int CleanerChatReplyMessage::ByteSize() const { - int total_size = 0; +size_t CleanerChatReplyMessage::RequiredFieldsByteSizeFallback() const { +// @@protoc_insertion_point(required_fields_byte_size_fallback_start:CleanerChatReplyMessage) + size_t total_size = 0; - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (has_requestid()) { // required uint32 requestId = 1; - if (has_requestid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requestid()); - } + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->requestid()); + } + + if (has_cleanerchattype()) { + // required .CleanerChatType cleanerChatType = 2; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->cleanerchattype()); + } + + if (has_playerid()) { + // required uint32 playerId = 4; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playerid()); + } + + if (has_cleaneractiontype()) { + // required .CleanerChatReplyMessage.CleanerActionType cleanerActionType = 5; + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->cleaneractiontype()); + } + + 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; - if (has_cleanerchattype()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->cleanerchattype()); - } - - // optional uint32 gameId = 3 [default = 0]; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->cleanerchattype()); // required uint32 playerId = 4; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::UInt32Size( + this->playerid()); // required .CleanerChatReplyMessage.CleanerActionType cleanerActionType = 5; - if (has_cleaneractiontype()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->cleaneractiontype()); - } - - // optional string cleanerText = 6 [default = ""]; - if (has_cleanertext()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->cleanertext()); - } + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->cleaneractiontype()); + } else { + total_size += RequiredFieldsByteSizeFallback(); } - total_size += unknown_fields().size(); + ::google::protobuf::uint32 cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + // 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); return total_size; } @@ -1297,54 +1813,64 @@ void CleanerChatReplyMessage::CheckTypeAndMergeFrom( } void CleanerChatReplyMessage::MergeFrom(const CleanerChatReplyMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_requestid()) { - set_requestid(from.requestid()); +// @@protoc_insertion_point(class_specific_merge_from_start:CleanerChatReplyMessage) + GOOGLE_DCHECK_NE(&from, this); + _internal_metadata_.MergeFrom(from._internal_metadata_); + ::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_); } - if (from.has_cleanerchattype()) { - set_cleanerchattype(from.cleanerchattype()); + if (cached_has_bits & 0x00000002u) { + requestid_ = from.requestid_; } - if (from.has_gameid()) { - set_gameid(from.gameid()); + if (cached_has_bits & 0x00000004u) { + cleanerchattype_ = from.cleanerchattype_; } - if (from.has_playerid()) { - set_playerid(from.playerid()); + if (cached_has_bits & 0x00000008u) { + gameid_ = from.gameid_; } - if (from.has_cleaneractiontype()) { - set_cleaneractiontype(from.cleaneractiontype()); + if (cached_has_bits & 0x00000010u) { + playerid_ = from.playerid_; } - if (from.has_cleanertext()) { - set_cleanertext(from.cleanertext()); + if (cached_has_bits & 0x00000020u) { + cleaneractiontype_ = from.cleaneractiontype_; } + _has_bits_[0] |= cached_has_bits; } - mutable_unknown_fields()->append(from.unknown_fields()); } void CleanerChatReplyMessage::CopyFrom(const CleanerChatReplyMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:CleanerChatReplyMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool CleanerChatReplyMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x0000001b) != 0x0000001b) return false; - + if ((_has_bits_[0] & 0x00000036) != 0x00000036) return false; return true; } void CleanerChatReplyMessage::Swap(CleanerChatReplyMessage* other) { - if (other != this) { - std::swap(requestid_, other->requestid_); - std::swap(cleanerchattype_, other->cleanerchattype_); - std::swap(gameid_, other->gameid_); - std::swap(playerid_, other->playerid_); - std::swap(cleaneractiontype_, other->cleaneractiontype_); - std::swap(cleanertext_, other->cleanertext_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + 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_); } ::std::string CleanerChatReplyMessage::GetTypeName() const { @@ -1354,83 +1880,104 @@ void CleanerChatReplyMessage::Swap(CleanerChatReplyMessage* other) { // =================================================================== -bool ChatCleanerMessage_ChatCleanerMessageType_IsValid(int value) { - switch(value) { - case 1: - case 2: - case 3: - case 4: - return true; - default: - return false; - } +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()); } +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; + } +}; -#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 ::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 const int ChatCleanerMessage::kMessageTypeFieldNumber; const int ChatCleanerMessage::kCleanerInitMessageFieldNumber; const int ChatCleanerMessage::kCleanerInitAckMessageFieldNumber; const int ChatCleanerMessage::kCleanerChatRequestMessageFieldNumber; const int ChatCleanerMessage::kCleanerChatReplyMessageFieldNumber; -#endif // !_MSC_VER +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 ChatCleanerMessage::ChatCleanerMessage() - : ::google::protobuf::MessageLite() { + : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:ChatCleanerMessage) } - -void ChatCleanerMessage::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - cleanerinitmessage_ = const_cast< ::CleanerInitMessage*>( - ::CleanerInitMessage::internal_default_instance()); -#else - cleanerinitmessage_ = const_cast< ::CleanerInitMessage*>(&::CleanerInitMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - cleanerinitackmessage_ = const_cast< ::CleanerInitAckMessage*>( - ::CleanerInitAckMessage::internal_default_instance()); -#else - cleanerinitackmessage_ = const_cast< ::CleanerInitAckMessage*>(&::CleanerInitAckMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - cleanerchatrequestmessage_ = const_cast< ::CleanerChatRequestMessage*>( - ::CleanerChatRequestMessage::internal_default_instance()); -#else - cleanerchatrequestmessage_ = const_cast< ::CleanerChatRequestMessage*>(&::CleanerChatRequestMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - cleanerchatreplymessage_ = const_cast< ::CleanerChatReplyMessage*>( - ::CleanerChatReplyMessage::internal_default_instance()); -#else - cleanerchatreplymessage_ = const_cast< ::CleanerChatReplyMessage*>(&::CleanerChatReplyMessage::default_instance()); -#endif -} - ChatCleanerMessage::ChatCleanerMessage(const ChatCleanerMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(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) } void ChatCleanerMessage::SharedCtor() { - _cached_size_ = 0; + ::google::protobuf::internal::InitSCC( + &scc_info_ChatCleanerMessage_chatcleaner_2eproto.base); + ::memset(&cleanerinitmessage_, 0, static_cast( + reinterpret_cast(&cleanerchatreplymessage_) - + reinterpret_cast(&cleanerinitmessage_)) + sizeof(cleanerchatreplymessage_)); messagetype_ = 1; - cleanerinitmessage_ = NULL; - cleanerinitackmessage_ = NULL; - cleanerchatrequestmessage_ = NULL; - cleanerchatreplymessage_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); } ChatCleanerMessage::~ChatCleanerMessage() { @@ -1439,149 +1986,231 @@ ChatCleanerMessage::~ChatCleanerMessage() { } void ChatCleanerMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete cleanerinitmessage_; - delete cleanerinitackmessage_; - delete cleanerchatrequestmessage_; - delete cleanerchatreplymessage_; - } + if (this != internal_default_instance()) delete cleanerinitmessage_; + if (this != internal_default_instance()) delete cleanerinitackmessage_; + if (this != internal_default_instance()) delete cleanerchatrequestmessage_; + if (this != internal_default_instance()) delete cleanerchatreplymessage_; } void ChatCleanerMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const ChatCleanerMessage& ChatCleanerMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_chatcleaner_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_chatcleaner_2eproto(); -#endif - return *default_instance_; + ::google::protobuf::internal::InitSCC(&::scc_info_ChatCleanerMessage_chatcleaner_2eproto.base); + return *internal_default_instance(); } -ChatCleanerMessage* ChatCleanerMessage::default_instance_ = NULL; - -ChatCleanerMessage* ChatCleanerMessage::New() const { - return new ChatCleanerMessage; -} void ChatCleanerMessage::Clear() { - if (_has_bits_[0 / 32] & 31) { +// @@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(); + } messagetype_ = 1; - if (has_cleanerinitmessage()) { - if (cleanerinitmessage_ != NULL) cleanerinitmessage_->::CleanerInitMessage::Clear(); - } - if (has_cleanerinitackmessage()) { - if (cleanerinitackmessage_ != NULL) cleanerinitackmessage_->::CleanerInitAckMessage::Clear(); - } - if (has_cleanerchatrequestmessage()) { - if (cleanerchatrequestmessage_ != NULL) cleanerchatrequestmessage_->::CleanerChatRequestMessage::Clear(); - } - if (has_cleanerchatreplymessage()) { - if (cleanerchatreplymessage_ != NULL) cleanerchatreplymessage_->::CleanerChatReplyMessage::Clear(); - } } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); + _has_bits_.Clear(); + _internal_metadata_.Clear(); } +#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 (!(EXPRESSION)) goto failure +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); + ::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_string); + &unknown_fields_output, false); // @@protoc_insertion_point(parse_start:ChatCleanerMessage) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); + ::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 .ChatCleanerMessage.ChatCleanerMessageType messageType = 1; case 1: { - if (tag == 8) { - int value; + 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 (::ChatCleanerMessage_ChatCleanerMessageType_IsValid(value)) { set_messagetype(static_cast< ::ChatCleanerMessage_ChatCleanerMessageType >(value)); } else { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); + unknown_fields_stream.WriteVarint32(8u); + unknown_fields_stream.WriteVarint32( + static_cast<::google::protobuf::uint32>(value)); } } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_cleanerInitMessage; break; } // optional .CleanerInitMessage cleanerInitMessage = 2; case 2: { - if (tag == 18) { - parse_cleanerInitMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_cleanerinitmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(26)) goto parse_cleanerInitAckMessage; break; } // optional .CleanerInitAckMessage cleanerInitAckMessage = 3; case 3: { - if (tag == 26) { - parse_cleanerInitAckMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_cleanerinitackmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_cleanerChatRequestMessage; break; } // optional .CleanerChatRequestMessage cleanerChatRequestMessage = 4; case 4: { - if (tag == 34) { - parse_cleanerChatRequestMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_cleanerchatrequestmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(42)) goto parse_cleanerChatReplyMessage; break; } // optional .CleanerChatReplyMessage cleanerChatReplyMessage = 5; case 5: { - if (tag == 42) { - parse_cleanerChatReplyMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_cleanerchatreplymessage())); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField( @@ -1598,89 +2227,98 @@ failure: 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 (has_messagetype()) { + if (cached_has_bits & 0x00000010u) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->messagetype(), output); } // optional .CleanerInitMessage cleanerInitMessage = 2; - if (has_cleanerinitmessage()) { + if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 2, this->cleanerinitmessage(), output); + 2, HasBitSetters::cleanerinitmessage(this), output); } // optional .CleanerInitAckMessage cleanerInitAckMessage = 3; - if (has_cleanerinitackmessage()) { + if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 3, this->cleanerinitackmessage(), output); + 3, HasBitSetters::cleanerinitackmessage(this), output); } // optional .CleanerChatRequestMessage cleanerChatRequestMessage = 4; - if (has_cleanerchatrequestmessage()) { + if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 4, this->cleanerchatrequestmessage(), output); + 4, HasBitSetters::cleanerchatrequestmessage(this), output); } // optional .CleanerChatReplyMessage cleanerChatReplyMessage = 5; - if (has_cleanerchatreplymessage()) { + if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 5, this->cleanerchatreplymessage(), output); + 5, HasBitSetters::cleanerchatreplymessage(this), output); } - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); + output->WriteRaw(_internal_metadata_.unknown_fields().data(), + static_cast(_internal_metadata_.unknown_fields().size())); // @@protoc_insertion_point(serialize_end:ChatCleanerMessage) } -int ChatCleanerMessage::ByteSize() const { - int total_size = 0; +size_t ChatCleanerMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:ChatCleanerMessage) + size_t total_size = 0; - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .ChatCleanerMessage.ChatCleanerMessageType messageType = 1; - if (has_messagetype()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->messagetype()); - } + 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) { // optional .CleanerInitMessage cleanerInitMessage = 2; - if (has_cleanerinitmessage()) { + if (cached_has_bits & 0x00000001u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->cleanerinitmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *cleanerinitmessage_); } // optional .CleanerInitAckMessage cleanerInitAckMessage = 3; - if (has_cleanerinitackmessage()) { + if (cached_has_bits & 0x00000002u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->cleanerinitackmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *cleanerinitackmessage_); } // optional .CleanerChatRequestMessage cleanerChatRequestMessage = 4; - if (has_cleanerchatrequestmessage()) { + if (cached_has_bits & 0x00000004u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->cleanerchatrequestmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *cleanerchatrequestmessage_); } // optional .CleanerChatReplyMessage cleanerChatReplyMessage = 5; - if (has_cleanerchatreplymessage()) { + if (cached_has_bits & 0x00000008u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->cleanerchatreplymessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *cleanerchatreplymessage_); } } - total_size += unknown_fields().size(); - - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } @@ -1690,62 +2328,70 @@ void ChatCleanerMessage::CheckTypeAndMergeFrom( } void ChatCleanerMessage::MergeFrom(const ChatCleanerMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_messagetype()) { - set_messagetype(from.messagetype()); - } - if (from.has_cleanerinitmessage()) { +// @@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) { mutable_cleanerinitmessage()->::CleanerInitMessage::MergeFrom(from.cleanerinitmessage()); } - if (from.has_cleanerinitackmessage()) { + if (cached_has_bits & 0x00000002u) { mutable_cleanerinitackmessage()->::CleanerInitAckMessage::MergeFrom(from.cleanerinitackmessage()); } - if (from.has_cleanerchatrequestmessage()) { + if (cached_has_bits & 0x00000004u) { mutable_cleanerchatrequestmessage()->::CleanerChatRequestMessage::MergeFrom(from.cleanerchatrequestmessage()); } - if (from.has_cleanerchatreplymessage()) { + if (cached_has_bits & 0x00000008u) { mutable_cleanerchatreplymessage()->::CleanerChatReplyMessage::MergeFrom(from.cleanerchatreplymessage()); } + if (cached_has_bits & 0x00000010u) { + messagetype_ = from.messagetype_; + } + _has_bits_[0] |= cached_has_bits; } - mutable_unknown_fields()->append(from.unknown_fields()); } void ChatCleanerMessage::CopyFrom(const ChatCleanerMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:ChatCleanerMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool ChatCleanerMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - + if ((_has_bits_[0] & 0x00000010) != 0x00000010) 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) { - 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]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + 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_); } ::std::string ChatCleanerMessage::GetTypeName() const { @@ -1754,5 +2400,25 @@ void ChatCleanerMessage::Swap(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 d9c0da37..b49c768a 100644 --- a/src/third_party/protobuf/chatcleaner.pb.h +++ b/src/third_party/protobuf/chatcleaner.pb.h @@ -1,40 +1,76 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: chatcleaner.proto -#ifndef PROTOBUF_chatcleaner_2eproto__INCLUDED -#define PROTOBUF_chatcleaner_2eproto__INCLUDED +#ifndef PROTOBUF_INCLUDED_chatcleaner_2eproto +#define PROTOBUF_INCLUDED_chatcleaner_2eproto +#include #include -#include - -#if GOOGLE_PROTOBUF_VERSION < 2006000 +#include +#if PROTOBUF_VERSION < 3007000 #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 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#if 3007001 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please +#error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif +#include +#include +#include +#include +#include #include +#include +#include #include -#include -#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_chatcleaner_2eproto -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_chatcleaner_2eproto(); -void protobuf_AssignDesc_chatcleaner_2eproto(); -void protobuf_ShutdownFile_chatcleaner_2eproto(); - -class CleanerInitMessage; -class CleanerInitAckMessage; -class CleanerChatRequestMessage; -class CleanerChatReplyMessage; +// Internal implementation detail -- do not use these members. +struct TableStruct_chatcleaner_2eproto { + static const ::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_; +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 enum CleanerChatReplyMessage_CleanerActionType { CleanerChatReplyMessage_CleanerActionType_cleanerActionNone = 0, @@ -70,7 +106,8 @@ const int CleanerChatType_ARRAYSIZE = CleanerChatType_MAX + 1; // =================================================================== -class CleanerInitMessage : public ::google::protobuf::MessageLite { +class CleanerInitMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:CleanerInitMessage) */ { public: CleanerInitMessage(); virtual ~CleanerInitMessage(); @@ -81,102 +118,132 @@ class CleanerInitMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const CleanerInitMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const CleanerInitMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_CleanerInitMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 0; void Swap(CleanerInitMessage* other); + friend void swap(CleanerInitMessage& a, CleanerInitMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - CleanerInitMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const CleanerInitMessage& from); void MergeFrom(const CleanerInitMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // required uint32 requestedVersion = 1; - inline bool has_requestedversion() const; - inline void clear_requestedversion(); - static const int kRequestedVersionFieldNumber = 1; - inline ::google::protobuf::uint32 requestedversion() const; - inline void set_requestedversion(::google::protobuf::uint32 value); - // required string clientSecret = 2; - inline bool has_clientsecret() const; - inline void clear_clientsecret(); + bool has_clientsecret() const; + void clear_clientsecret(); static const int kClientSecretFieldNumber = 2; - inline const ::std::string& clientsecret() const; - inline void set_clientsecret(const ::std::string& value); - inline void set_clientsecret(const char* value); - inline void set_clientsecret(const char* value, size_t size); - inline ::std::string* mutable_clientsecret(); - inline ::std::string* release_clientsecret(); - inline void set_allocated_clientsecret(::std::string* clientsecret); + 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(); + static const int kRequestedVersionFieldNumber = 1; + ::google::protobuf::uint32 requestedversion() const; + void set_requestedversion(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:CleanerInitMessage) private: - inline void set_has_requestedversion(); - inline void clear_has_requestedversion(); - inline void set_has_clientsecret(); - inline void clear_has_clientsecret(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - ::std::string* clientsecret_; + ::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_; ::google::protobuf::uint32 requestedversion_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_chatcleaner_2eproto_impl(); - #else - friend void protobuf_AddDesc_chatcleaner_2eproto(); - #endif - friend void protobuf_AssignDesc_chatcleaner_2eproto(); - friend void protobuf_ShutdownFile_chatcleaner_2eproto(); - - void InitAsDefaultInstance(); - static CleanerInitMessage* default_instance_; + friend struct ::TableStruct_chatcleaner_2eproto; }; // ------------------------------------------------------------------- -class CleanerInitAckMessage : public ::google::protobuf::MessageLite { +class CleanerInitAckMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:CleanerInitAckMessage) */ { public: CleanerInitAckMessage(); virtual ~CleanerInitAckMessage(); @@ -187,102 +254,132 @@ class CleanerInitAckMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const CleanerInitAckMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const CleanerInitAckMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_CleanerInitAckMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 1; void Swap(CleanerInitAckMessage* other); + friend void swap(CleanerInitAckMessage& a, CleanerInitAckMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - CleanerInitAckMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const CleanerInitAckMessage& from); void MergeFrom(const CleanerInitAckMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // required uint32 serverVersion = 1; - inline bool has_serverversion() const; - inline void clear_serverversion(); - static const int kServerVersionFieldNumber = 1; - inline ::google::protobuf::uint32 serverversion() const; - inline void set_serverversion(::google::protobuf::uint32 value); - // required string serverSecret = 2; - inline bool has_serversecret() const; - inline void clear_serversecret(); + bool has_serversecret() const; + void clear_serversecret(); static const int kServerSecretFieldNumber = 2; - inline const ::std::string& serversecret() const; - inline void set_serversecret(const ::std::string& value); - inline void set_serversecret(const char* value); - inline void set_serversecret(const char* value, size_t size); - inline ::std::string* mutable_serversecret(); - inline ::std::string* release_serversecret(); - inline void set_allocated_serversecret(::std::string* serversecret); + 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(); + static const int kServerVersionFieldNumber = 1; + ::google::protobuf::uint32 serverversion() const; + void set_serverversion(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:CleanerInitAckMessage) private: - inline void set_has_serverversion(); - inline void clear_has_serverversion(); - inline void set_has_serversecret(); - inline void clear_has_serversecret(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - ::std::string* serversecret_; + ::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_; ::google::protobuf::uint32 serverversion_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_chatcleaner_2eproto_impl(); - #else - friend void protobuf_AddDesc_chatcleaner_2eproto(); - #endif - friend void protobuf_AssignDesc_chatcleaner_2eproto(); - friend void protobuf_ShutdownFile_chatcleaner_2eproto(); - - void InitAsDefaultInstance(); - static CleanerInitAckMessage* default_instance_; + friend struct ::TableStruct_chatcleaner_2eproto; }; // ------------------------------------------------------------------- -class CleanerChatRequestMessage : public ::google::protobuf::MessageLite { +class CleanerChatRequestMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:CleanerChatRequestMessage) */ { public: CleanerChatRequestMessage(); virtual ~CleanerChatRequestMessage(); @@ -293,147 +390,172 @@ class CleanerChatRequestMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const CleanerChatRequestMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const CleanerChatRequestMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_CleanerChatRequestMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 2; void Swap(CleanerChatRequestMessage* other); + friend void swap(CleanerChatRequestMessage& a, CleanerChatRequestMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - CleanerChatRequestMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const CleanerChatRequestMessage& from); void MergeFrom(const CleanerChatRequestMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // required uint32 requestId = 1; - inline bool has_requestid() const; - inline void clear_requestid(); - static const int kRequestIdFieldNumber = 1; - inline ::google::protobuf::uint32 requestid() const; - inline void set_requestid(::google::protobuf::uint32 value); - - // required .CleanerChatType cleanerChatType = 2; - inline bool has_cleanerchattype() const; - inline void clear_cleanerchattype(); - static const int kCleanerChatTypeFieldNumber = 2; - inline ::CleanerChatType cleanerchattype() const; - inline void set_cleanerchattype(::CleanerChatType value); - - // optional uint32 gameId = 3 [default = 0]; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 3; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); - - // required uint32 playerId = 4; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 4; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); - // required string playerName = 5; - inline bool has_playername() const; - inline void clear_playername(); + bool has_playername() const; + void clear_playername(); static const int kPlayerNameFieldNumber = 5; - inline const ::std::string& playername() const; - inline void set_playername(const ::std::string& value); - inline void set_playername(const char* value); - inline void set_playername(const char* value, size_t size); - inline ::std::string* mutable_playername(); - inline ::std::string* release_playername(); - inline void set_allocated_playername(::std::string* playername); + 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; - inline bool has_chatmessage() const; - inline void clear_chatmessage(); + bool has_chatmessage() const; + void clear_chatmessage(); static const int kChatMessageFieldNumber = 6; - inline const ::std::string& chatmessage() const; - inline void set_chatmessage(const ::std::string& value); - inline void set_chatmessage(const char* value); - inline void set_chatmessage(const char* value, size_t size); - inline ::std::string* mutable_chatmessage(); - inline ::std::string* release_chatmessage(); - inline void set_allocated_chatmessage(::std::string* chatmessage); + 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(); + static const int kRequestIdFieldNumber = 1; + ::google::protobuf::uint32 requestid() const; + void set_requestid(::google::protobuf::uint32 value); + + // required .CleanerChatType cleanerChatType = 2; + bool has_cleanerchattype() const; + void clear_cleanerchattype(); + static const int kCleanerChatTypeFieldNumber = 2; + ::CleanerChatType cleanerchattype() const; + void set_cleanerchattype(::CleanerChatType value); + + // optional uint32 gameId = 3 [default = 0]; + bool has_gameid() const; + void clear_gameid(); + static const int kGameIdFieldNumber = 3; + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); + + // required uint32 playerId = 4; + bool has_playerid() const; + void clear_playerid(); + static const int kPlayerIdFieldNumber = 4; + ::google::protobuf::uint32 playerid() const; + void set_playerid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:CleanerChatRequestMessage) private: - inline void set_has_requestid(); - inline void clear_has_requestid(); - inline void set_has_cleanerchattype(); - inline void clear_has_cleanerchattype(); - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_playername(); - inline void clear_has_playername(); - inline void set_has_chatmessage(); - inline void clear_has_chatmessage(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::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_; ::google::protobuf::uint32 requestid_; int cleanerchattype_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; - ::std::string* playername_; - ::std::string* chatmessage_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_chatcleaner_2eproto_impl(); - #else - friend void protobuf_AddDesc_chatcleaner_2eproto(); - #endif - friend void protobuf_AssignDesc_chatcleaner_2eproto(); - friend void protobuf_ShutdownFile_chatcleaner_2eproto(); - - void InitAsDefaultInstance(); - static CleanerChatRequestMessage* default_instance_; + friend struct ::TableStruct_chatcleaner_2eproto; }; // ------------------------------------------------------------------- -class CleanerChatReplyMessage : public ::google::protobuf::MessageLite { +class CleanerChatReplyMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:CleanerChatReplyMessage) */ { public: CleanerChatReplyMessage(); virtual ~CleanerChatReplyMessage(); @@ -444,60 +566,101 @@ class CleanerChatReplyMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const CleanerChatReplyMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const CleanerChatReplyMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_CleanerChatReplyMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 3; void Swap(CleanerChatReplyMessage* other); + friend void swap(CleanerChatReplyMessage& a, CleanerChatReplyMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - CleanerChatReplyMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const CleanerChatReplyMessage& from); void MergeFrom(const CleanerChatReplyMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef CleanerChatReplyMessage_CleanerActionType CleanerActionType; - static const CleanerActionType cleanerActionNone = CleanerChatReplyMessage_CleanerActionType_cleanerActionNone; - static const CleanerActionType cleanerActionWarning = CleanerChatReplyMessage_CleanerActionType_cleanerActionWarning; - static const CleanerActionType cleanerActionKick = CleanerChatReplyMessage_CleanerActionType_cleanerActionKick; - static const CleanerActionType cleanerActionBan = CleanerChatReplyMessage_CleanerActionType_cleanerActionBan; - static const CleanerActionType cleanerActionMute = CleanerChatReplyMessage_CleanerActionType_cleanerActionMute; + static 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); } @@ -510,92 +673,78 @@ class CleanerChatReplyMessage : public ::google::protobuf::MessageLite { // 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; - inline bool has_requestid() const; - inline void clear_requestid(); + bool has_requestid() const; + void clear_requestid(); static const int kRequestIdFieldNumber = 1; - inline ::google::protobuf::uint32 requestid() const; - inline void set_requestid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 requestid() const; + void set_requestid(::google::protobuf::uint32 value); // required .CleanerChatType cleanerChatType = 2; - inline bool has_cleanerchattype() const; - inline void clear_cleanerchattype(); + bool has_cleanerchattype() const; + void clear_cleanerchattype(); static const int kCleanerChatTypeFieldNumber = 2; - inline ::CleanerChatType cleanerchattype() const; - inline void set_cleanerchattype(::CleanerChatType value); + ::CleanerChatType cleanerchattype() const; + void set_cleanerchattype(::CleanerChatType value); // optional uint32 gameId = 3 [default = 0]; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 3; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 playerId = 4; - inline bool has_playerid() const; - inline void clear_playerid(); + bool has_playerid() const; + void clear_playerid(); static const int kPlayerIdFieldNumber = 4; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playerid() const; + void set_playerid(::google::protobuf::uint32 value); // required .CleanerChatReplyMessage.CleanerActionType cleanerActionType = 5; - inline bool has_cleaneractiontype() const; - inline void clear_cleaneractiontype(); + bool has_cleaneractiontype() const; + void clear_cleaneractiontype(); static const int kCleanerActionTypeFieldNumber = 5; - inline ::CleanerChatReplyMessage_CleanerActionType cleaneractiontype() const; - inline void set_cleaneractiontype(::CleanerChatReplyMessage_CleanerActionType value); - - // optional string cleanerText = 6 [default = ""]; - inline bool has_cleanertext() const; - inline void clear_cleanertext(); - static const int kCleanerTextFieldNumber = 6; - inline const ::std::string& cleanertext() const; - inline void set_cleanertext(const ::std::string& value); - inline void set_cleanertext(const char* value); - inline void set_cleanertext(const char* value, size_t size); - inline ::std::string* mutable_cleanertext(); - inline ::std::string* release_cleanertext(); - inline void set_allocated_cleanertext(::std::string* cleanertext); + ::CleanerChatReplyMessage_CleanerActionType cleaneractiontype() const; + void set_cleaneractiontype(::CleanerChatReplyMessage_CleanerActionType value); // @@protoc_insertion_point(class_scope:CleanerChatReplyMessage) private: - inline void set_has_requestid(); - inline void clear_has_requestid(); - inline void set_has_cleanerchattype(); - inline void clear_has_cleanerchattype(); - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_cleaneractiontype(); - inline void clear_has_cleaneractiontype(); - inline void set_has_cleanertext(); - inline void clear_has_cleanertext(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::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_; ::google::protobuf::uint32 requestid_; int cleanerchattype_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; - ::std::string* cleanertext_; int cleaneractiontype_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_chatcleaner_2eproto_impl(); - #else - friend void protobuf_AddDesc_chatcleaner_2eproto(); - #endif - friend void protobuf_AssignDesc_chatcleaner_2eproto(); - friend void protobuf_ShutdownFile_chatcleaner_2eproto(); - - void InitAsDefaultInstance(); - static CleanerChatReplyMessage* default_instance_; + friend struct ::TableStruct_chatcleaner_2eproto; }; // ------------------------------------------------------------------- -class ChatCleanerMessage : public ::google::protobuf::MessageLite { +class ChatCleanerMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:ChatCleanerMessage) */ { public: ChatCleanerMessage(); virtual ~ChatCleanerMessage(); @@ -606,59 +755,99 @@ class ChatCleanerMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const ChatCleanerMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ChatCleanerMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_ChatCleanerMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 4; void Swap(ChatCleanerMessage* other); + friend void swap(ChatCleanerMessage& a, ChatCleanerMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - ChatCleanerMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const ChatCleanerMessage& from); void MergeFrom(const ChatCleanerMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef ChatCleanerMessage_ChatCleanerMessageType ChatCleanerMessageType; - static const ChatCleanerMessageType Type_CleanerInitMessage = ChatCleanerMessage_ChatCleanerMessageType_Type_CleanerInitMessage; - static const ChatCleanerMessageType Type_CleanerInitAckMessage = ChatCleanerMessage_ChatCleanerMessageType_Type_CleanerInitAckMessage; - static const ChatCleanerMessageType Type_CleanerChatRequestMessage = ChatCleanerMessage_ChatCleanerMessageType_Type_CleanerChatRequestMessage; - static const ChatCleanerMessageType Type_CleanerChatReplyMessage = ChatCleanerMessage_ChatCleanerMessageType_Type_CleanerChatReplyMessage; + static 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); } @@ -671,186 +860,149 @@ class ChatCleanerMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- - // required .ChatCleanerMessage.ChatCleanerMessageType messageType = 1; - inline bool has_messagetype() const; - inline void clear_messagetype(); - static const int kMessageTypeFieldNumber = 1; - inline ::ChatCleanerMessage_ChatCleanerMessageType messagetype() const; - inline void set_messagetype(::ChatCleanerMessage_ChatCleanerMessageType value); - // optional .CleanerInitMessage cleanerInitMessage = 2; - inline bool has_cleanerinitmessage() const; - inline void clear_cleanerinitmessage(); + bool has_cleanerinitmessage() const; + void clear_cleanerinitmessage(); static const int kCleanerInitMessageFieldNumber = 2; - inline const ::CleanerInitMessage& cleanerinitmessage() const; - inline ::CleanerInitMessage* mutable_cleanerinitmessage(); - inline ::CleanerInitMessage* release_cleanerinitmessage(); - inline void set_allocated_cleanerinitmessage(::CleanerInitMessage* cleanerinitmessage); + const ::CleanerInitMessage& cleanerinitmessage() const; + ::CleanerInitMessage* release_cleanerinitmessage(); + ::CleanerInitMessage* mutable_cleanerinitmessage(); + void set_allocated_cleanerinitmessage(::CleanerInitMessage* cleanerinitmessage); // optional .CleanerInitAckMessage cleanerInitAckMessage = 3; - inline bool has_cleanerinitackmessage() const; - inline void clear_cleanerinitackmessage(); + bool has_cleanerinitackmessage() const; + void clear_cleanerinitackmessage(); static const int kCleanerInitAckMessageFieldNumber = 3; - inline const ::CleanerInitAckMessage& cleanerinitackmessage() const; - inline ::CleanerInitAckMessage* mutable_cleanerinitackmessage(); - inline ::CleanerInitAckMessage* release_cleanerinitackmessage(); - inline void set_allocated_cleanerinitackmessage(::CleanerInitAckMessage* cleanerinitackmessage); + const ::CleanerInitAckMessage& cleanerinitackmessage() const; + ::CleanerInitAckMessage* release_cleanerinitackmessage(); + ::CleanerInitAckMessage* mutable_cleanerinitackmessage(); + void set_allocated_cleanerinitackmessage(::CleanerInitAckMessage* cleanerinitackmessage); // optional .CleanerChatRequestMessage cleanerChatRequestMessage = 4; - inline bool has_cleanerchatrequestmessage() const; - inline void clear_cleanerchatrequestmessage(); + bool has_cleanerchatrequestmessage() const; + void clear_cleanerchatrequestmessage(); static const int kCleanerChatRequestMessageFieldNumber = 4; - inline const ::CleanerChatRequestMessage& cleanerchatrequestmessage() const; - inline ::CleanerChatRequestMessage* mutable_cleanerchatrequestmessage(); - inline ::CleanerChatRequestMessage* release_cleanerchatrequestmessage(); - inline void set_allocated_cleanerchatrequestmessage(::CleanerChatRequestMessage* cleanerchatrequestmessage); + const ::CleanerChatRequestMessage& cleanerchatrequestmessage() const; + ::CleanerChatRequestMessage* release_cleanerchatrequestmessage(); + ::CleanerChatRequestMessage* mutable_cleanerchatrequestmessage(); + void set_allocated_cleanerchatrequestmessage(::CleanerChatRequestMessage* cleanerchatrequestmessage); // optional .CleanerChatReplyMessage cleanerChatReplyMessage = 5; - inline bool has_cleanerchatreplymessage() const; - inline void clear_cleanerchatreplymessage(); + bool has_cleanerchatreplymessage() const; + void clear_cleanerchatreplymessage(); static const int kCleanerChatReplyMessageFieldNumber = 5; - inline const ::CleanerChatReplyMessage& cleanerchatreplymessage() const; - inline ::CleanerChatReplyMessage* mutable_cleanerchatreplymessage(); - inline ::CleanerChatReplyMessage* release_cleanerchatreplymessage(); - inline void set_allocated_cleanerchatreplymessage(::CleanerChatReplyMessage* cleanerchatreplymessage); + 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(); + static const int kMessageTypeFieldNumber = 1; + ::ChatCleanerMessage_ChatCleanerMessageType messagetype() const; + void set_messagetype(::ChatCleanerMessage_ChatCleanerMessageType value); // @@protoc_insertion_point(class_scope:ChatCleanerMessage) private: - inline void set_has_messagetype(); - inline void clear_has_messagetype(); - inline void set_has_cleanerinitmessage(); - inline void clear_has_cleanerinitmessage(); - inline void set_has_cleanerinitackmessage(); - inline void clear_has_cleanerinitackmessage(); - inline void set_has_cleanerchatrequestmessage(); - inline void clear_has_cleanerchatrequestmessage(); - inline void set_has_cleanerchatreplymessage(); - inline void clear_has_cleanerchatreplymessage(); + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::CleanerInitMessage* cleanerinitmessage_; ::CleanerInitAckMessage* cleanerinitackmessage_; ::CleanerChatRequestMessage* cleanerchatrequestmessage_; ::CleanerChatReplyMessage* cleanerchatreplymessage_; int messagetype_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_chatcleaner_2eproto_impl(); - #else - friend void protobuf_AddDesc_chatcleaner_2eproto(); - #endif - friend void protobuf_AssignDesc_chatcleaner_2eproto(); - friend void protobuf_ShutdownFile_chatcleaner_2eproto(); - - void InitAsDefaultInstance(); - static ChatCleanerMessage* default_instance_; + friend struct ::TableStruct_chatcleaner_2eproto; }; // =================================================================== // =================================================================== +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ // CleanerInitMessage // required uint32 requestedVersion = 1; inline bool CleanerInitMessage::has_requestedversion() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void CleanerInitMessage::set_has_requestedversion() { - _has_bits_[0] |= 0x00000001u; -} -inline void CleanerInitMessage::clear_has_requestedversion() { - _has_bits_[0] &= ~0x00000001u; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void CleanerInitMessage::clear_requestedversion() { requestedversion_ = 0u; - clear_has_requestedversion(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_requestedversion(); + _has_bits_[0] |= 0x00000002u; requestedversion_ = value; // @@protoc_insertion_point(field_set:CleanerInitMessage.requestedVersion) } // required string clientSecret = 2; inline bool CleanerInitMessage::has_clientsecret() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void CleanerInitMessage::set_has_clientsecret() { - _has_bits_[0] |= 0x00000002u; -} -inline void CleanerInitMessage::clear_has_clientsecret() { - _has_bits_[0] &= ~0x00000002u; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void CleanerInitMessage::clear_clientsecret() { - if (clientsecret_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - clientsecret_->clear(); - } - clear_has_clientsecret(); + clientsecret_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } inline const ::std::string& CleanerInitMessage::clientsecret() const { // @@protoc_insertion_point(field_get:CleanerInitMessage.clientSecret) - return *clientsecret_; + return clientsecret_.GetNoArena(); } inline void CleanerInitMessage::set_clientsecret(const ::std::string& value) { - set_has_clientsecret(); - if (clientsecret_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - clientsecret_ = new ::std::string; - } - clientsecret_->assign(value); + _has_bits_[0] |= 0x00000001u; + clientsecret_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:CleanerInitMessage.clientSecret) } +#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) { - set_has_clientsecret(); - if (clientsecret_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - clientsecret_ = new ::std::string; - } - clientsecret_->assign(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) } inline void CleanerInitMessage::set_clientsecret(const char* value, size_t size) { - set_has_clientsecret(); - if (clientsecret_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - clientsecret_ = new ::std::string; - } - clientsecret_->assign(reinterpret_cast(value), 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) } inline ::std::string* CleanerInitMessage::mutable_clientsecret() { - set_has_clientsecret(); - if (clientsecret_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - clientsecret_ = new ::std::string; - } + _has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_mutable:CleanerInitMessage.clientSecret) - return clientsecret_; + return clientsecret_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* CleanerInitMessage::release_clientsecret() { - clear_has_clientsecret(); - if (clientsecret_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = clientsecret_; - clientsecret_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete clientsecret_; - } - if (clientsecret) { - set_has_clientsecret(); - clientsecret_ = clientsecret; + if (clientsecret != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_clientsecret(); - clientsecret_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } + clientsecret_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), clientsecret); // @@protoc_insertion_point(field_set_allocated:CleanerInitMessage.clientSecret) } @@ -860,101 +1012,79 @@ inline void CleanerInitMessage::set_allocated_clientsecret(::std::string* client // required uint32 serverVersion = 1; inline bool CleanerInitAckMessage::has_serverversion() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void CleanerInitAckMessage::set_has_serverversion() { - _has_bits_[0] |= 0x00000001u; -} -inline void CleanerInitAckMessage::clear_has_serverversion() { - _has_bits_[0] &= ~0x00000001u; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void CleanerInitAckMessage::clear_serverversion() { serverversion_ = 0u; - clear_has_serverversion(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_serverversion(); + _has_bits_[0] |= 0x00000002u; serverversion_ = value; // @@protoc_insertion_point(field_set:CleanerInitAckMessage.serverVersion) } // required string serverSecret = 2; inline bool CleanerInitAckMessage::has_serversecret() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void CleanerInitAckMessage::set_has_serversecret() { - _has_bits_[0] |= 0x00000002u; -} -inline void CleanerInitAckMessage::clear_has_serversecret() { - _has_bits_[0] &= ~0x00000002u; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void CleanerInitAckMessage::clear_serversecret() { - if (serversecret_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - serversecret_->clear(); - } - clear_has_serversecret(); + serversecret_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } inline const ::std::string& CleanerInitAckMessage::serversecret() const { // @@protoc_insertion_point(field_get:CleanerInitAckMessage.serverSecret) - return *serversecret_; + return serversecret_.GetNoArena(); } inline void CleanerInitAckMessage::set_serversecret(const ::std::string& value) { - set_has_serversecret(); - if (serversecret_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - serversecret_ = new ::std::string; - } - serversecret_->assign(value); + _has_bits_[0] |= 0x00000001u; + serversecret_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:CleanerInitAckMessage.serverSecret) } +#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) { - set_has_serversecret(); - if (serversecret_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - serversecret_ = new ::std::string; - } - serversecret_->assign(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) } inline void CleanerInitAckMessage::set_serversecret(const char* value, size_t size) { - set_has_serversecret(); - if (serversecret_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - serversecret_ = new ::std::string; - } - serversecret_->assign(reinterpret_cast(value), 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) } inline ::std::string* CleanerInitAckMessage::mutable_serversecret() { - set_has_serversecret(); - if (serversecret_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - serversecret_ = new ::std::string; - } + _has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_mutable:CleanerInitAckMessage.serverSecret) - return serversecret_; + return serversecret_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* CleanerInitAckMessage::release_serversecret() { - clear_has_serversecret(); - if (serversecret_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = serversecret_; - serversecret_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete serversecret_; - } - if (serversecret) { - set_has_serversecret(); - serversecret_ = serversecret; + if (serversecret != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_serversecret(); - serversecret_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } + serversecret_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), serversecret); // @@protoc_insertion_point(field_set_allocated:CleanerInitAckMessage.serverSecret) } @@ -964,41 +1094,29 @@ inline void CleanerInitAckMessage::set_allocated_serversecret(::std::string* ser // required uint32 requestId = 1; inline bool CleanerChatRequestMessage::has_requestid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void CleanerChatRequestMessage::set_has_requestid() { - _has_bits_[0] |= 0x00000001u; -} -inline void CleanerChatRequestMessage::clear_has_requestid() { - _has_bits_[0] &= ~0x00000001u; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void CleanerChatRequestMessage::clear_requestid() { requestid_ = 0u; - clear_has_requestid(); + _has_bits_[0] &= ~0x00000004u; } 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) { - set_has_requestid(); + _has_bits_[0] |= 0x00000004u; requestid_ = value; // @@protoc_insertion_point(field_set:CleanerChatRequestMessage.requestId) } // required .CleanerChatType cleanerChatType = 2; inline bool CleanerChatRequestMessage::has_cleanerchattype() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void CleanerChatRequestMessage::set_has_cleanerchattype() { - _has_bits_[0] |= 0x00000002u; -} -inline void CleanerChatRequestMessage::clear_has_cleanerchattype() { - _has_bits_[0] &= ~0x00000002u; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void CleanerChatRequestMessage::clear_cleanerchattype() { cleanerchattype_ = 0; - clear_has_cleanerchattype(); + _has_bits_[0] &= ~0x00000008u; } inline ::CleanerChatType CleanerChatRequestMessage::cleanerchattype() const { // @@protoc_insertion_point(field_get:CleanerChatRequestMessage.cleanerChatType) @@ -1006,208 +1124,164 @@ inline ::CleanerChatType CleanerChatRequestMessage::cleanerchattype() const { } inline void CleanerChatRequestMessage::set_cleanerchattype(::CleanerChatType value) { assert(::CleanerChatType_IsValid(value)); - set_has_cleanerchattype(); + _has_bits_[0] |= 0x00000008u; 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] & 0x00000004u) != 0; -} -inline void CleanerChatRequestMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000004u; -} -inline void CleanerChatRequestMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000004u; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void CleanerChatRequestMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000010u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000010u; gameid_ = value; // @@protoc_insertion_point(field_set:CleanerChatRequestMessage.gameId) } // required uint32 playerId = 4; inline bool CleanerChatRequestMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void CleanerChatRequestMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000008u; -} -inline void CleanerChatRequestMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000008u; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void CleanerChatRequestMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000020u; } 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) { - set_has_playerid(); + _has_bits_[0] |= 0x00000020u; playerid_ = value; // @@protoc_insertion_point(field_set:CleanerChatRequestMessage.playerId) } // required string playerName = 5; inline bool CleanerChatRequestMessage::has_playername() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void CleanerChatRequestMessage::set_has_playername() { - _has_bits_[0] |= 0x00000010u; -} -inline void CleanerChatRequestMessage::clear_has_playername() { - _has_bits_[0] &= ~0x00000010u; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void CleanerChatRequestMessage::clear_playername() { - if (playername_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - playername_->clear(); - } - clear_has_playername(); + playername_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } inline const ::std::string& CleanerChatRequestMessage::playername() const { // @@protoc_insertion_point(field_get:CleanerChatRequestMessage.playerName) - return *playername_; + return playername_.GetNoArena(); } inline void CleanerChatRequestMessage::set_playername(const ::std::string& value) { - set_has_playername(); - if (playername_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - playername_ = new ::std::string; - } - playername_->assign(value); + _has_bits_[0] |= 0x00000001u; + playername_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:CleanerChatRequestMessage.playerName) } +#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) { - set_has_playername(); - if (playername_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - playername_ = new ::std::string; - } - playername_->assign(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) } inline void CleanerChatRequestMessage::set_playername(const char* value, size_t size) { - set_has_playername(); - if (playername_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - playername_ = new ::std::string; - } - playername_->assign(reinterpret_cast(value), 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) } inline ::std::string* CleanerChatRequestMessage::mutable_playername() { - set_has_playername(); - if (playername_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - playername_ = new ::std::string; - } + _has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_mutable:CleanerChatRequestMessage.playerName) - return playername_; + return playername_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* CleanerChatRequestMessage::release_playername() { - clear_has_playername(); - if (playername_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = playername_; - playername_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete playername_; - } - if (playername) { - set_has_playername(); - playername_ = playername; + if (playername != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_playername(); - playername_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } + 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] & 0x00000020u) != 0; -} -inline void CleanerChatRequestMessage::set_has_chatmessage() { - _has_bits_[0] |= 0x00000020u; -} -inline void CleanerChatRequestMessage::clear_has_chatmessage() { - _has_bits_[0] &= ~0x00000020u; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void CleanerChatRequestMessage::clear_chatmessage() { - if (chatmessage_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - chatmessage_->clear(); - } - clear_has_chatmessage(); + chatmessage_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000002u; } inline const ::std::string& CleanerChatRequestMessage::chatmessage() const { // @@protoc_insertion_point(field_get:CleanerChatRequestMessage.chatMessage) - return *chatmessage_; + return chatmessage_.GetNoArena(); } inline void CleanerChatRequestMessage::set_chatmessage(const ::std::string& value) { - set_has_chatmessage(); - if (chatmessage_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - chatmessage_ = new ::std::string; - } - chatmessage_->assign(value); + _has_bits_[0] |= 0x00000002u; + chatmessage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:CleanerChatRequestMessage.chatMessage) } +#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) { - set_has_chatmessage(); - if (chatmessage_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - chatmessage_ = new ::std::string; - } - chatmessage_->assign(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) } inline void CleanerChatRequestMessage::set_chatmessage(const char* value, size_t size) { - set_has_chatmessage(); - if (chatmessage_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - chatmessage_ = new ::std::string; - } - chatmessage_->assign(reinterpret_cast(value), 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) } inline ::std::string* CleanerChatRequestMessage::mutable_chatmessage() { - set_has_chatmessage(); - if (chatmessage_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - chatmessage_ = new ::std::string; - } + _has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_mutable:CleanerChatRequestMessage.chatMessage) - return chatmessage_; + return chatmessage_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* CleanerChatRequestMessage::release_chatmessage() { - clear_has_chatmessage(); - if (chatmessage_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = chatmessage_; - chatmessage_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete chatmessage_; - } - if (chatmessage) { - set_has_chatmessage(); - chatmessage_ = chatmessage; + if (chatmessage != nullptr) { + _has_bits_[0] |= 0x00000002u; } else { - clear_has_chatmessage(); - chatmessage_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000002u; } + chatmessage_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), chatmessage); // @@protoc_insertion_point(field_set_allocated:CleanerChatRequestMessage.chatMessage) } @@ -1217,41 +1291,29 @@ inline void CleanerChatRequestMessage::set_allocated_chatmessage(::std::string* // required uint32 requestId = 1; inline bool CleanerChatReplyMessage::has_requestid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void CleanerChatReplyMessage::set_has_requestid() { - _has_bits_[0] |= 0x00000001u; -} -inline void CleanerChatReplyMessage::clear_has_requestid() { - _has_bits_[0] &= ~0x00000001u; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void CleanerChatReplyMessage::clear_requestid() { requestid_ = 0u; - clear_has_requestid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_requestid(); + _has_bits_[0] |= 0x00000002u; requestid_ = value; // @@protoc_insertion_point(field_set:CleanerChatReplyMessage.requestId) } // required .CleanerChatType cleanerChatType = 2; inline bool CleanerChatReplyMessage::has_cleanerchattype() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void CleanerChatReplyMessage::set_has_cleanerchattype() { - _has_bits_[0] |= 0x00000002u; -} -inline void CleanerChatReplyMessage::clear_has_cleanerchattype() { - _has_bits_[0] &= ~0x00000002u; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void CleanerChatReplyMessage::clear_cleanerchattype() { cleanerchattype_ = 0; - clear_has_cleanerchattype(); + _has_bits_[0] &= ~0x00000004u; } inline ::CleanerChatType CleanerChatReplyMessage::cleanerchattype() const { // @@protoc_insertion_point(field_get:CleanerChatReplyMessage.cleanerChatType) @@ -1259,72 +1321,54 @@ inline ::CleanerChatType CleanerChatReplyMessage::cleanerchattype() const { } inline void CleanerChatReplyMessage::set_cleanerchattype(::CleanerChatType value) { assert(::CleanerChatType_IsValid(value)); - set_has_cleanerchattype(); + _has_bits_[0] |= 0x00000004u; 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] & 0x00000004u) != 0; -} -inline void CleanerChatReplyMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000004u; -} -inline void CleanerChatReplyMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000004u; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void CleanerChatReplyMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000008u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000008u; gameid_ = value; // @@protoc_insertion_point(field_set:CleanerChatReplyMessage.gameId) } // required uint32 playerId = 4; inline bool CleanerChatReplyMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void CleanerChatReplyMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000008u; -} -inline void CleanerChatReplyMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000008u; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void CleanerChatReplyMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000010u; } 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) { - set_has_playerid(); + _has_bits_[0] |= 0x00000010u; playerid_ = value; // @@protoc_insertion_point(field_set:CleanerChatReplyMessage.playerId) } // required .CleanerChatReplyMessage.CleanerActionType cleanerActionType = 5; inline bool CleanerChatReplyMessage::has_cleaneractiontype() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void CleanerChatReplyMessage::set_has_cleaneractiontype() { - _has_bits_[0] |= 0x00000010u; -} -inline void CleanerChatReplyMessage::clear_has_cleaneractiontype() { - _has_bits_[0] &= ~0x00000010u; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void CleanerChatReplyMessage::clear_cleaneractiontype() { cleaneractiontype_ = 0; - clear_has_cleaneractiontype(); + _has_bits_[0] &= ~0x00000020u; } inline ::CleanerChatReplyMessage_CleanerActionType CleanerChatReplyMessage::cleaneractiontype() const { // @@protoc_insertion_point(field_get:CleanerChatReplyMessage.cleanerActionType) @@ -1332,84 +1376,68 @@ inline ::CleanerChatReplyMessage_CleanerActionType CleanerChatReplyMessage::clea } inline void CleanerChatReplyMessage::set_cleaneractiontype(::CleanerChatReplyMessage_CleanerActionType value) { assert(::CleanerChatReplyMessage_CleanerActionType_IsValid(value)); - set_has_cleaneractiontype(); + _has_bits_[0] |= 0x00000020u; cleaneractiontype_ = value; // @@protoc_insertion_point(field_set:CleanerChatReplyMessage.cleanerActionType) } // optional string cleanerText = 6 [default = ""]; inline bool CleanerChatReplyMessage::has_cleanertext() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void CleanerChatReplyMessage::set_has_cleanertext() { - _has_bits_[0] |= 0x00000020u; -} -inline void CleanerChatReplyMessage::clear_has_cleanertext() { - _has_bits_[0] &= ~0x00000020u; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void CleanerChatReplyMessage::clear_cleanertext() { - if (cleanertext_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - cleanertext_->clear(); - } - clear_has_cleanertext(); + cleanertext_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } inline const ::std::string& CleanerChatReplyMessage::cleanertext() const { // @@protoc_insertion_point(field_get:CleanerChatReplyMessage.cleanerText) - return *cleanertext_; + return cleanertext_.GetNoArena(); } inline void CleanerChatReplyMessage::set_cleanertext(const ::std::string& value) { - set_has_cleanertext(); - if (cleanertext_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - cleanertext_ = new ::std::string; - } - cleanertext_->assign(value); + _has_bits_[0] |= 0x00000001u; + cleanertext_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:CleanerChatReplyMessage.cleanerText) } +#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) { - set_has_cleanertext(); - if (cleanertext_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - cleanertext_ = new ::std::string; - } - cleanertext_->assign(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) } inline void CleanerChatReplyMessage::set_cleanertext(const char* value, size_t size) { - set_has_cleanertext(); - if (cleanertext_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - cleanertext_ = new ::std::string; - } - cleanertext_->assign(reinterpret_cast(value), 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) } inline ::std::string* CleanerChatReplyMessage::mutable_cleanertext() { - set_has_cleanertext(); - if (cleanertext_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - cleanertext_ = new ::std::string; - } + _has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_mutable:CleanerChatReplyMessage.cleanerText) - return cleanertext_; + return cleanertext_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* CleanerChatReplyMessage::release_cleanertext() { - clear_has_cleanertext(); - if (cleanertext_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = cleanertext_; - cleanertext_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete cleanertext_; - } - if (cleanertext) { - set_has_cleanertext(); - cleanertext_ = cleanertext; + if (cleanertext != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_cleanertext(); - cleanertext_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } + cleanertext_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cleanertext); // @@protoc_insertion_point(field_set_allocated:CleanerChatReplyMessage.cleanerText) } @@ -1419,17 +1447,11 @@ inline void CleanerChatReplyMessage::set_allocated_cleanertext(::std::string* cl // required .ChatCleanerMessage.ChatCleanerMessageType messageType = 1; inline bool ChatCleanerMessage::has_messagetype() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ChatCleanerMessage::set_has_messagetype() { - _has_bits_[0] |= 0x00000001u; -} -inline void ChatCleanerMessage::clear_has_messagetype() { - _has_bits_[0] &= ~0x00000001u; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void ChatCleanerMessage::clear_messagetype() { messagetype_ = 1; - clear_has_messagetype(); + _has_bits_[0] &= ~0x00000010u; } inline ::ChatCleanerMessage_ChatCleanerMessageType ChatCleanerMessage::messagetype() const { // @@protoc_insertion_point(field_get:ChatCleanerMessage.messageType) @@ -1437,194 +1459,233 @@ inline ::ChatCleanerMessage_ChatCleanerMessageType ChatCleanerMessage::messagety } inline void ChatCleanerMessage::set_messagetype(::ChatCleanerMessage_ChatCleanerMessageType value) { assert(::ChatCleanerMessage_ChatCleanerMessageType_IsValid(value)); - set_has_messagetype(); + _has_bits_[0] |= 0x00000010u; messagetype_ = value; // @@protoc_insertion_point(field_set:ChatCleanerMessage.messageType) } // optional .CleanerInitMessage cleanerInitMessage = 2; inline bool ChatCleanerMessage::has_cleanerinitmessage() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void ChatCleanerMessage::set_has_cleanerinitmessage() { - _has_bits_[0] |= 0x00000002u; -} -inline void ChatCleanerMessage::clear_has_cleanerinitmessage() { - _has_bits_[0] &= ~0x00000002u; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void ChatCleanerMessage::clear_cleanerinitmessage() { - if (cleanerinitmessage_ != NULL) cleanerinitmessage_->::CleanerInitMessage::Clear(); - clear_has_cleanerinitmessage(); + if (cleanerinitmessage_ != nullptr) cleanerinitmessage_->Clear(); + _has_bits_[0] &= ~0x00000001u; } inline const ::CleanerInitMessage& ChatCleanerMessage::cleanerinitmessage() const { + const ::CleanerInitMessage* p = cleanerinitmessage_; // @@protoc_insertion_point(field_get:ChatCleanerMessage.cleanerInitMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return cleanerinitmessage_ != NULL ? *cleanerinitmessage_ : *default_instance().cleanerinitmessage_; -#else - return cleanerinitmessage_ != NULL ? *cleanerinitmessage_ : *default_instance_->cleanerinitmessage_; -#endif + 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; } inline ::CleanerInitMessage* ChatCleanerMessage::mutable_cleanerinitmessage() { - set_has_cleanerinitmessage(); - if (cleanerinitmessage_ == NULL) cleanerinitmessage_ = new ::CleanerInitMessage; + _has_bits_[0] |= 0x00000001u; + if (cleanerinitmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::CleanerInitMessage>(GetArenaNoVirtual()); + cleanerinitmessage_ = p; + } // @@protoc_insertion_point(field_mutable:ChatCleanerMessage.cleanerInitMessage) return cleanerinitmessage_; } -inline ::CleanerInitMessage* ChatCleanerMessage::release_cleanerinitmessage() { - clear_has_cleanerinitmessage(); - ::CleanerInitMessage* temp = cleanerinitmessage_; - cleanerinitmessage_ = NULL; - return temp; -} inline void ChatCleanerMessage::set_allocated_cleanerinitmessage(::CleanerInitMessage* cleanerinitmessage) { - delete cleanerinitmessage_; - cleanerinitmessage_ = cleanerinitmessage; - if (cleanerinitmessage) { - set_has_cleanerinitmessage(); - } else { - clear_has_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) } // optional .CleanerInitAckMessage cleanerInitAckMessage = 3; inline bool ChatCleanerMessage::has_cleanerinitackmessage() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void ChatCleanerMessage::set_has_cleanerinitackmessage() { - _has_bits_[0] |= 0x00000004u; -} -inline void ChatCleanerMessage::clear_has_cleanerinitackmessage() { - _has_bits_[0] &= ~0x00000004u; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void ChatCleanerMessage::clear_cleanerinitackmessage() { - if (cleanerinitackmessage_ != NULL) cleanerinitackmessage_->::CleanerInitAckMessage::Clear(); - clear_has_cleanerinitackmessage(); + if (cleanerinitackmessage_ != nullptr) cleanerinitackmessage_->Clear(); + _has_bits_[0] &= ~0x00000002u; } inline const ::CleanerInitAckMessage& ChatCleanerMessage::cleanerinitackmessage() const { + const ::CleanerInitAckMessage* p = cleanerinitackmessage_; // @@protoc_insertion_point(field_get:ChatCleanerMessage.cleanerInitAckMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return cleanerinitackmessage_ != NULL ? *cleanerinitackmessage_ : *default_instance().cleanerinitackmessage_; -#else - return cleanerinitackmessage_ != NULL ? *cleanerinitackmessage_ : *default_instance_->cleanerinitackmessage_; -#endif + 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; } inline ::CleanerInitAckMessage* ChatCleanerMessage::mutable_cleanerinitackmessage() { - set_has_cleanerinitackmessage(); - if (cleanerinitackmessage_ == NULL) cleanerinitackmessage_ = new ::CleanerInitAckMessage; + _has_bits_[0] |= 0x00000002u; + if (cleanerinitackmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::CleanerInitAckMessage>(GetArenaNoVirtual()); + cleanerinitackmessage_ = p; + } // @@protoc_insertion_point(field_mutable:ChatCleanerMessage.cleanerInitAckMessage) return cleanerinitackmessage_; } -inline ::CleanerInitAckMessage* ChatCleanerMessage::release_cleanerinitackmessage() { - clear_has_cleanerinitackmessage(); - ::CleanerInitAckMessage* temp = cleanerinitackmessage_; - cleanerinitackmessage_ = NULL; - return temp; -} inline void ChatCleanerMessage::set_allocated_cleanerinitackmessage(::CleanerInitAckMessage* cleanerinitackmessage) { - delete cleanerinitackmessage_; - cleanerinitackmessage_ = cleanerinitackmessage; - if (cleanerinitackmessage) { - set_has_cleanerinitackmessage(); - } else { - clear_has_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) } // optional .CleanerChatRequestMessage cleanerChatRequestMessage = 4; inline bool ChatCleanerMessage::has_cleanerchatrequestmessage() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void ChatCleanerMessage::set_has_cleanerchatrequestmessage() { - _has_bits_[0] |= 0x00000008u; -} -inline void ChatCleanerMessage::clear_has_cleanerchatrequestmessage() { - _has_bits_[0] &= ~0x00000008u; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void ChatCleanerMessage::clear_cleanerchatrequestmessage() { - if (cleanerchatrequestmessage_ != NULL) cleanerchatrequestmessage_->::CleanerChatRequestMessage::Clear(); - clear_has_cleanerchatrequestmessage(); + if (cleanerchatrequestmessage_ != nullptr) cleanerchatrequestmessage_->Clear(); + _has_bits_[0] &= ~0x00000004u; } inline const ::CleanerChatRequestMessage& ChatCleanerMessage::cleanerchatrequestmessage() const { + const ::CleanerChatRequestMessage* p = cleanerchatrequestmessage_; // @@protoc_insertion_point(field_get:ChatCleanerMessage.cleanerChatRequestMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return cleanerchatrequestmessage_ != NULL ? *cleanerchatrequestmessage_ : *default_instance().cleanerchatrequestmessage_; -#else - return cleanerchatrequestmessage_ != NULL ? *cleanerchatrequestmessage_ : *default_instance_->cleanerchatrequestmessage_; -#endif + 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; } inline ::CleanerChatRequestMessage* ChatCleanerMessage::mutable_cleanerchatrequestmessage() { - set_has_cleanerchatrequestmessage(); - if (cleanerchatrequestmessage_ == NULL) cleanerchatrequestmessage_ = new ::CleanerChatRequestMessage; + _has_bits_[0] |= 0x00000004u; + if (cleanerchatrequestmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::CleanerChatRequestMessage>(GetArenaNoVirtual()); + cleanerchatrequestmessage_ = p; + } // @@protoc_insertion_point(field_mutable:ChatCleanerMessage.cleanerChatRequestMessage) return cleanerchatrequestmessage_; } -inline ::CleanerChatRequestMessage* ChatCleanerMessage::release_cleanerchatrequestmessage() { - clear_has_cleanerchatrequestmessage(); - ::CleanerChatRequestMessage* temp = cleanerchatrequestmessage_; - cleanerchatrequestmessage_ = NULL; - return temp; -} inline void ChatCleanerMessage::set_allocated_cleanerchatrequestmessage(::CleanerChatRequestMessage* cleanerchatrequestmessage) { - delete cleanerchatrequestmessage_; - cleanerchatrequestmessage_ = cleanerchatrequestmessage; - if (cleanerchatrequestmessage) { - set_has_cleanerchatrequestmessage(); - } else { - clear_has_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) } // optional .CleanerChatReplyMessage cleanerChatReplyMessage = 5; inline bool ChatCleanerMessage::has_cleanerchatreplymessage() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void ChatCleanerMessage::set_has_cleanerchatreplymessage() { - _has_bits_[0] |= 0x00000010u; -} -inline void ChatCleanerMessage::clear_has_cleanerchatreplymessage() { - _has_bits_[0] &= ~0x00000010u; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void ChatCleanerMessage::clear_cleanerchatreplymessage() { - if (cleanerchatreplymessage_ != NULL) cleanerchatreplymessage_->::CleanerChatReplyMessage::Clear(); - clear_has_cleanerchatreplymessage(); + if (cleanerchatreplymessage_ != nullptr) cleanerchatreplymessage_->Clear(); + _has_bits_[0] &= ~0x00000008u; } inline const ::CleanerChatReplyMessage& ChatCleanerMessage::cleanerchatreplymessage() const { + const ::CleanerChatReplyMessage* p = cleanerchatreplymessage_; // @@protoc_insertion_point(field_get:ChatCleanerMessage.cleanerChatReplyMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return cleanerchatreplymessage_ != NULL ? *cleanerchatreplymessage_ : *default_instance().cleanerchatreplymessage_; -#else - return cleanerchatreplymessage_ != NULL ? *cleanerchatreplymessage_ : *default_instance_->cleanerchatreplymessage_; -#endif + 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; } inline ::CleanerChatReplyMessage* ChatCleanerMessage::mutable_cleanerchatreplymessage() { - set_has_cleanerchatreplymessage(); - if (cleanerchatreplymessage_ == NULL) cleanerchatreplymessage_ = new ::CleanerChatReplyMessage; + _has_bits_[0] |= 0x00000008u; + if (cleanerchatreplymessage_ == nullptr) { + auto* p = CreateMaybeMessage<::CleanerChatReplyMessage>(GetArenaNoVirtual()); + cleanerchatreplymessage_ = p; + } // @@protoc_insertion_point(field_mutable:ChatCleanerMessage.cleanerChatReplyMessage) return cleanerchatreplymessage_; } -inline ::CleanerChatReplyMessage* ChatCleanerMessage::release_cleanerchatreplymessage() { - clear_has_cleanerchatreplymessage(); - ::CleanerChatReplyMessage* temp = cleanerchatreplymessage_; - cleanerchatreplymessage_ = NULL; - return temp; -} inline void ChatCleanerMessage::set_allocated_cleanerchatreplymessage(::CleanerChatReplyMessage* cleanerchatreplymessage) { - delete cleanerchatreplymessage_; - cleanerchatreplymessage_ = cleanerchatreplymessage; - if (cleanerchatreplymessage) { - set_has_cleanerchatreplymessage(); - } else { - clear_has_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) } +#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) -#endif // PROTOBUF_chatcleaner_2eproto__INCLUDED +#include +#endif // PROTOBUF_INCLUDED_chatcleaner_2eproto diff --git a/src/third_party/protobuf/pokerth.pb.cc b/src/third_party/protobuf/pokerth.pb.cc index d5063ed2..656e0731 100644 --- a/src/third_party/protobuf/pokerth.pb.cc +++ b/src/third_party/protobuf/pokerth.pb.cc @@ -1,401 +1,1842 @@ // 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 -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_; -} - -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -void protobuf_AddDesc_pokerth_2eproto_impl() { +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; -#else -void protobuf_AddDesc_pokerth_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; + { + 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; -#endif - NetGameInfo::default_instance_ = new NetGameInfo(); - PlayerResult::default_instance_ = new PlayerResult(); - AnnounceMessage::default_instance_ = new AnnounceMessage(); - AnnounceMessage_Version::default_instance_ = new AnnounceMessage_Version(); - InitMessage::default_instance_ = new InitMessage(); - AuthServerChallengeMessage::default_instance_ = new AuthServerChallengeMessage(); - AuthClientResponseMessage::default_instance_ = new AuthClientResponseMessage(); - AuthServerVerificationMessage::default_instance_ = new AuthServerVerificationMessage(); - InitAckMessage::default_instance_ = new InitAckMessage(); - AvatarRequestMessage::default_instance_ = new AvatarRequestMessage(); - AvatarHeaderMessage::default_instance_ = new AvatarHeaderMessage(); - AvatarDataMessage::default_instance_ = new AvatarDataMessage(); - AvatarEndMessage::default_instance_ = new AvatarEndMessage(); - UnknownAvatarMessage::default_instance_ = new UnknownAvatarMessage(); - PlayerListMessage::default_instance_ = new PlayerListMessage(); - GameListNewMessage::default_instance_ = new GameListNewMessage(); - GameListUpdateMessage::default_instance_ = new GameListUpdateMessage(); - GameListPlayerJoinedMessage::default_instance_ = new GameListPlayerJoinedMessage(); - GameListPlayerLeftMessage::default_instance_ = new GameListPlayerLeftMessage(); - GameListSpectatorJoinedMessage::default_instance_ = new GameListSpectatorJoinedMessage(); - GameListSpectatorLeftMessage::default_instance_ = new GameListSpectatorLeftMessage(); - GameListAdminChangedMessage::default_instance_ = new GameListAdminChangedMessage(); - PlayerInfoRequestMessage::default_instance_ = new PlayerInfoRequestMessage(); - PlayerInfoReplyMessage::default_instance_ = new PlayerInfoReplyMessage(); - PlayerInfoReplyMessage_PlayerInfoData::default_instance_ = new PlayerInfoReplyMessage_PlayerInfoData(); - PlayerInfoReplyMessage_PlayerInfoData_AvatarData::default_instance_ = new PlayerInfoReplyMessage_PlayerInfoData_AvatarData(); - SubscriptionRequestMessage::default_instance_ = new SubscriptionRequestMessage(); - JoinExistingGameMessage::default_instance_ = new JoinExistingGameMessage(); - JoinNewGameMessage::default_instance_ = new JoinNewGameMessage(); - RejoinExistingGameMessage::default_instance_ = new RejoinExistingGameMessage(); - JoinGameAckMessage::default_instance_ = new JoinGameAckMessage(); - JoinGameFailedMessage::default_instance_ = new JoinGameFailedMessage(); - GamePlayerJoinedMessage::default_instance_ = new GamePlayerJoinedMessage(); - GamePlayerLeftMessage::default_instance_ = new GamePlayerLeftMessage(); - GameSpectatorJoinedMessage::default_instance_ = new GameSpectatorJoinedMessage(); - GameSpectatorLeftMessage::default_instance_ = new GameSpectatorLeftMessage(); - GameAdminChangedMessage::default_instance_ = new GameAdminChangedMessage(); - RemovedFromGameMessage::default_instance_ = new RemovedFromGameMessage(); - KickPlayerRequestMessage::default_instance_ = new KickPlayerRequestMessage(); - LeaveGameRequestMessage::default_instance_ = new LeaveGameRequestMessage(); - InvitePlayerToGameMessage::default_instance_ = new InvitePlayerToGameMessage(); - InviteNotifyMessage::default_instance_ = new InviteNotifyMessage(); - RejectGameInvitationMessage::default_instance_ = new RejectGameInvitationMessage(); - RejectInvNotifyMessage::default_instance_ = new RejectInvNotifyMessage(); - StartEventMessage::default_instance_ = new StartEventMessage(); - StartEventAckMessage::default_instance_ = new StartEventAckMessage(); - GameStartInitialMessage::default_instance_ = new GameStartInitialMessage(); - GameStartRejoinMessage::default_instance_ = new GameStartRejoinMessage(); - GameStartRejoinMessage_RejoinPlayerData::default_instance_ = new GameStartRejoinMessage_RejoinPlayerData(); - 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); -} - -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_pokerth_2eproto_once_); -void protobuf_AddDesc_pokerth_2eproto() { - ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_pokerth_2eproto_once_, - &protobuf_AddDesc_pokerth_2eproto_impl); -} -#else -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_pokerth_2eproto { - StaticDescriptorInitializer_pokerth_2eproto() { - protobuf_AddDesc_pokerth_2eproto(); - } -} static_descriptor_initializer_pokerth_2eproto_; -#endif -bool NetGameMode_IsValid(int value) { - switch(value) { - case 1: - case 2: - case 3: - return true; - default: - return false; + { + void* ptr = &::_PlayerResult_default_instance_; + new (ptr) ::PlayerResult(); + ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); } + ::PlayerResult::InitAsDefaultInstance(); } -bool NetGameState_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - return true; - default: - return false; +::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(); } -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; +::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(); } -bool NetPlayerState_IsValid(int value) { - switch(value) { - case 0: - case 1: - case 2: - return true; - default: - return false; +::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(); } -bool NetPlayerInfoRights_IsValid(int value) { - switch(value) { - case 1: - case 2: - case 3: - return true; - default: - return false; +::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(); } -bool NetAvatarType_IsValid(int value) { - switch(value) { - case 1: - case 2: - case 3: - return true; - default: - return false; +::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,}}; bool NetGameInfo_NetGameType_IsValid(int value) { - switch(value) { + switch (value) { case 1: case 2: case 3: @@ -406,7 +1847,7 @@ bool NetGameInfo_NetGameType_IsValid(int value) { } } -#ifndef _MSC_VER +#if !defined(_MSC_VER) || _MSC_VER >= 1900 const NetGameInfo_NetGameType NetGameInfo::normalGame; const NetGameInfo_NetGameType NetGameInfo::registeredOnlyGame; const NetGameInfo_NetGameType NetGameInfo::inviteOnlyGame; @@ -414,9 +1855,9 @@ const NetGameInfo_NetGameType NetGameInfo::rankingGame; const NetGameInfo_NetGameType NetGameInfo::NetGameType_MIN; const NetGameInfo_NetGameType NetGameInfo::NetGameType_MAX; const int NetGameInfo::NetGameType_ARRAYSIZE; -#endif // _MSC_VER +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 bool NetGameInfo_RaiseIntervalMode_IsValid(int value) { - switch(value) { + switch (value) { case 1: case 2: return true; @@ -425,15 +1866,15 @@ bool NetGameInfo_RaiseIntervalMode_IsValid(int value) { } } -#ifndef _MSC_VER +#if !defined(_MSC_VER) || _MSC_VER >= 1900 const NetGameInfo_RaiseIntervalMode NetGameInfo::raiseOnHandNum; const NetGameInfo_RaiseIntervalMode NetGameInfo::raiseOnMinutes; const NetGameInfo_RaiseIntervalMode NetGameInfo::RaiseIntervalMode_MIN; const NetGameInfo_RaiseIntervalMode NetGameInfo::RaiseIntervalMode_MAX; const int NetGameInfo::RaiseIntervalMode_ARRAYSIZE; -#endif // _MSC_VER +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 bool NetGameInfo_EndRaiseMode_IsValid(int value) { - switch(value) { + switch (value) { case 1: case 2: case 3: @@ -443,1162 +1884,16 @@ bool NetGameInfo_EndRaiseMode_IsValid(int value) { } } -#ifndef _MSC_VER +#if !defined(_MSC_VER) || _MSC_VER >= 1900 const NetGameInfo_EndRaiseMode NetGameInfo::doubleBlinds; const NetGameInfo_EndRaiseMode NetGameInfo::raiseByEndValue; const NetGameInfo_EndRaiseMode NetGameInfo::keepLastBlind; const NetGameInfo_EndRaiseMode NetGameInfo::EndRaiseMode_MIN; const NetGameInfo_EndRaiseMode NetGameInfo::EndRaiseMode_MAX; const int NetGameInfo::EndRaiseMode_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int NetGameInfo::kGameNameFieldNumber; -const int NetGameInfo::kNetGameTypeFieldNumber; -const int NetGameInfo::kMaxNumPlayersFieldNumber; -const int NetGameInfo::kRaiseIntervalModeFieldNumber; -const int NetGameInfo::kRaiseEveryHandsFieldNumber; -const int NetGameInfo::kRaiseEveryMinutesFieldNumber; -const int NetGameInfo::kEndRaiseModeFieldNumber; -const int NetGameInfo::kEndRaiseSmallBlindValueFieldNumber; -const int NetGameInfo::kProposedGuiSpeedFieldNumber; -const int NetGameInfo::kDelayBetweenHandsFieldNumber; -const int NetGameInfo::kPlayerActionTimeoutFieldNumber; -const int NetGameInfo::kFirstSmallBlindFieldNumber; -const int NetGameInfo::kStartMoneyFieldNumber; -const int NetGameInfo::kManualBlindsFieldNumber; -const int NetGameInfo::kAllowSpectatorsFieldNumber; -#endif // !_MSC_VER - -NetGameInfo::NetGameInfo() - : ::google::protobuf::MessageLite() { - SharedCtor(); - // @@protoc_insertion_point(constructor:NetGameInfo) -} - -void NetGameInfo::InitAsDefaultInstance() { -} - -NetGameInfo::NetGameInfo(const NetGameInfo& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:NetGameInfo) -} - -void NetGameInfo::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - gamename_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - 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() { - // @@protoc_insertion_point(destructor:NetGameInfo) - SharedDtor(); -} - -void NetGameInfo::SharedDtor() { - if (gamename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete gamename_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void NetGameInfo::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const NetGameInfo& NetGameInfo::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -NetGameInfo* NetGameInfo::default_instance_ = NULL; - -NetGameInfo* NetGameInfo::New() const { - return new NetGameInfo; -} - -void NetGameInfo::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - if (_has_bits_[0 / 32] & 255) { - ZR_(raiseeveryhands_, raiseeveryminutes_); - if (has_gamename()) { - if (gamename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - gamename_->clear(); - } - } - netgametype_ = 1; - maxnumplayers_ = 0u; - raiseintervalmode_ = 1; - endraisemode_ = 1; - endraisesmallblindvalue_ = 0u; - } - if (_has_bits_[8 / 32] & 24320) { - ZR_(proposedguispeed_, startmoney_); - allowspectators_ = true; - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - manualblinds_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool NetGameInfo::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:NetGameInfo) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required string gameName = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_gamename())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_netGameType; - break; - } - - // required .NetGameInfo.NetGameType netGameType = 2; - case 2: { - if (tag == 16) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_maxNumPlayers; - break; - } - - // required uint32 maxNumPlayers = 3; - case 3: { - if (tag == 24) { - 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_unusual; - } - if (input->ExpectTag(32)) goto parse_raiseIntervalMode; - break; - } - - // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; - case 4: { - if (tag == 32) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_raiseEveryHands; - break; - } - - // optional uint32 raiseEveryHands = 5; - case 5: { - if (tag == 40) { - 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_unusual; - } - if (input->ExpectTag(48)) goto parse_raiseEveryMinutes; - break; - } - - // optional uint32 raiseEveryMinutes = 6; - case 6: { - if (tag == 48) { - 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_unusual; - } - if (input->ExpectTag(56)) goto parse_endRaiseMode; - break; - } - - // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; - case 7: { - if (tag == 56) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(64)) goto parse_endRaiseSmallBlindValue; - break; - } - - // optional uint32 endRaiseSmallBlindValue = 8; - case 8: { - if (tag == 64) { - 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_unusual; - } - if (input->ExpectTag(72)) goto parse_proposedGuiSpeed; - break; - } - - // required uint32 proposedGuiSpeed = 9; - case 9: { - if (tag == 72) { - 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_unusual; - } - if (input->ExpectTag(80)) goto parse_delayBetweenHands; - break; - } - - // required uint32 delayBetweenHands = 10; - case 10: { - if (tag == 80) { - 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_unusual; - } - if (input->ExpectTag(88)) goto parse_playerActionTimeout; - break; - } - - // required uint32 playerActionTimeout = 11; - case 11: { - if (tag == 88) { - 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_unusual; - } - if (input->ExpectTag(96)) goto parse_firstSmallBlind; - break; - } - - // required uint32 firstSmallBlind = 12; - case 12: { - if (tag == 96) { - 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_unusual; - } - if (input->ExpectTag(104)) goto parse_startMoney; - break; - } - - // required uint32 startMoney = 13; - case 13: { - if (tag == 104) { - 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_unusual; - } - if (input->ExpectTag(114)) goto parse_manualBlinds; - break; - } - - // repeated uint32 manualBlinds = 14 [packed = true]; - case 14: { - if (tag == 114) { - parse_manualBlinds: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_manualblinds()))); - } else if (tag == 112) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 114, input, this->mutable_manualblinds()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(120)) goto parse_allowSpectators; - break; - } - - // optional bool allowSpectators = 15 [default = true]; - case 15: { - if (tag == 120) { - parse_allowSpectators: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &allowspectators_))); - set_has_allowspectators(); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void NetGameInfo::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:NetGameInfo) - // required string gameName = 1; - if (has_gamename()) { - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:NetGameInfo) -} - -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); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _manualblinds_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - total_size += unknown_fields().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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:PlayerResult) -} - -void PlayerResult::InitAsDefaultInstance() { -} - -PlayerResult::PlayerResult(const PlayerResult& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:PlayerResult) -} - -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() { - // @@protoc_insertion_point(destructor:PlayerResult) - SharedDtor(); -} - -void PlayerResult::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void PlayerResult::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const PlayerResult& PlayerResult::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -PlayerResult* PlayerResult::default_instance_ = NULL; - -PlayerResult* PlayerResult::New() const { - return new PlayerResult; -} - -void PlayerResult::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - if (_has_bits_[0 / 32] & 119) { - ZR_(playerid_, resultcard1_); - ZR_(resultcard2_, cardsvalue_); - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - besthandposition_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool PlayerResult::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:PlayerResult) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 playerId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_resultCard1; - break; - } - - // required uint32 resultCard1 = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectTag(24)) goto parse_resultCard2; - break; - } - - // required uint32 resultCard2 = 3; - case 3: { - if (tag == 24) { - 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_unusual; - } - if (input->ExpectTag(34)) goto parse_bestHandPosition; - break; - } - - // repeated uint32 bestHandPosition = 4 [packed = true]; - case 4: { - if (tag == 34) { - parse_bestHandPosition: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_besthandposition()))); - } else if (tag == 32) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 34, input, this->mutable_besthandposition()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_moneyWon; - break; - } - - // required uint32 moneyWon = 5; - case 5: { - if (tag == 40) { - 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_unusual; - } - if (input->ExpectTag(48)) goto parse_playerMoney; - break; - } - - // required uint32 playerMoney = 6; - case 6: { - if (tag == 48) { - 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_unusual; - } - if (input->ExpectTag(56)) goto parse_cardsValue; - break; - } - - // optional uint32 cardsValue = 7; - case 7: { - if (tag == 56) { - 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_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void PlayerResult::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:PlayerResult) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:PlayerResult) -} - -int PlayerResult::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 playerId = 1; - if (has_playerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playerid()); - } - - // required uint32 resultCard1 = 2; - if (has_resultcard1()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->resultcard1()); - } - - // required uint32 resultCard2 = 3; - if (has_resultcard2()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->resultcard2()); - } - - // required uint32 moneyWon = 5; - if (has_moneywon()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->moneywon()); - } - - // required uint32 playerMoney = 6; - if (has_playermoney()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->playermoney()); - } - - // optional uint32 cardsValue = 7; - if (has_cardsvalue()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->cardsvalue()); - } - - } - // repeated uint32 bestHandPosition = 4 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->besthandposition_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->besthandposition(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _besthandposition_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - total_size += unknown_fields().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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string PlayerResult::GetTypeName() const { - return "PlayerResult"; -} - - -// =================================================================== - +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 bool AnnounceMessage_ServerType_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -1608,625 +1903,16 @@ bool AnnounceMessage_ServerType_IsValid(int value) { } } -#ifndef _MSC_VER +#if !defined(_MSC_VER) || _MSC_VER >= 1900 const AnnounceMessage_ServerType AnnounceMessage::serverTypeLAN; const AnnounceMessage_ServerType AnnounceMessage::serverTypeInternetNoAuth; const AnnounceMessage_ServerType AnnounceMessage::serverTypeInternetAuth; const AnnounceMessage_ServerType AnnounceMessage::ServerType_MIN; const AnnounceMessage_ServerType AnnounceMessage::ServerType_MAX; const int AnnounceMessage::ServerType_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int AnnounceMessage_Version::kMajorVersionFieldNumber; -const int AnnounceMessage_Version::kMinorVersionFieldNumber; -#endif // !_MSC_VER - -AnnounceMessage_Version::AnnounceMessage_Version() - : ::google::protobuf::MessageLite() { - SharedCtor(); - // @@protoc_insertion_point(constructor:AnnounceMessage.Version) -} - -void AnnounceMessage_Version::InitAsDefaultInstance() { -} - -AnnounceMessage_Version::AnnounceMessage_Version(const AnnounceMessage_Version& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:AnnounceMessage.Version) -} - -void AnnounceMessage_Version::SharedCtor() { - _cached_size_ = 0; - majorversion_ = 0u; - minorversion_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AnnounceMessage_Version::~AnnounceMessage_Version() { - // @@protoc_insertion_point(destructor:AnnounceMessage.Version) - SharedDtor(); -} - -void AnnounceMessage_Version::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AnnounceMessage_Version::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AnnounceMessage_Version& AnnounceMessage_Version::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AnnounceMessage_Version* AnnounceMessage_Version::default_instance_ = NULL; - -AnnounceMessage_Version* AnnounceMessage_Version::New() const { - return new AnnounceMessage_Version; -} - -void AnnounceMessage_Version::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(majorversion_, minorversion_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool AnnounceMessage_Version::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:AnnounceMessage.Version) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 majorVersion = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &majorversion_))); - set_has_majorversion(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_minorVersion; - break; - } - - // required uint32 minorVersion = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void AnnounceMessage_Version::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AnnounceMessage.Version) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:AnnounceMessage.Version) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:AnnounceMessage) -} - -void AnnounceMessage::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protocolversion_ = const_cast< ::AnnounceMessage_Version*>( - ::AnnounceMessage_Version::internal_default_instance()); -#else - protocolversion_ = const_cast< ::AnnounceMessage_Version*>(&::AnnounceMessage_Version::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - latestgameversion_ = const_cast< ::AnnounceMessage_Version*>( - ::AnnounceMessage_Version::internal_default_instance()); -#else - latestgameversion_ = const_cast< ::AnnounceMessage_Version*>(&::AnnounceMessage_Version::default_instance()); -#endif -} - -AnnounceMessage::AnnounceMessage(const AnnounceMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:AnnounceMessage) -} - -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() { - // @@protoc_insertion_point(destructor:AnnounceMessage) - SharedDtor(); -} - -void AnnounceMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete protocolversion_; - delete latestgameversion_; - } -} - -void AnnounceMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AnnounceMessage& AnnounceMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AnnounceMessage* AnnounceMessage::default_instance_ = NULL; - -AnnounceMessage* AnnounceMessage::New() const { - return new AnnounceMessage; -} - -void AnnounceMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - if (_has_bits_[0 / 32] & 31) { - ZR_(latestbetarevision_, numplayersonserver_); - if (has_protocolversion()) { - if (protocolversion_ != NULL) protocolversion_->::AnnounceMessage_Version::Clear(); - } - if (has_latestgameversion()) { - if (latestgameversion_ != NULL) latestgameversion_->::AnnounceMessage_Version::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool AnnounceMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:AnnounceMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .AnnounceMessage.Version protocolVersion = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_protocolversion())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_latestGameVersion; - break; - } - - // required .AnnounceMessage.Version latestGameVersion = 2; - case 2: { - if (tag == 18) { - parse_latestGameVersion: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_latestgameversion())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_latestBetaRevision; - break; - } - - // required uint32 latestBetaRevision = 3; - case 3: { - if (tag == 24) { - 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_unusual; - } - if (input->ExpectTag(32)) goto parse_serverType; - break; - } - - // required .AnnounceMessage.ServerType serverType = 4; - case 4: { - if (tag == 32) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_numPlayersOnServer; - break; - } - - // required uint32 numPlayersOnServer = 5; - case 5: { - if (tag == 40) { - 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_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void AnnounceMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AnnounceMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:AnnounceMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string AnnounceMessage::GetTypeName() const { - return "AnnounceMessage"; -} - - -// =================================================================== - +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 bool InitMessage_LoginType_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -2236,2550 +1922,16 @@ bool InitMessage_LoginType_IsValid(int value) { } } -#ifndef _MSC_VER +#if !defined(_MSC_VER) || _MSC_VER >= 1900 const InitMessage_LoginType InitMessage::guestLogin; const InitMessage_LoginType InitMessage::authenticatedLogin; const InitMessage_LoginType InitMessage::unauthenticatedLogin; const InitMessage_LoginType InitMessage::LoginType_MIN; const InitMessage_LoginType InitMessage::LoginType_MAX; const int InitMessage::LoginType_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int InitMessage::kRequestedVersionFieldNumber; -const int InitMessage::kBuildIdFieldNumber; -const int InitMessage::kMyLastSessionIdFieldNumber; -const int InitMessage::kAuthServerPasswordFieldNumber; -const int InitMessage::kLoginFieldNumber; -const int InitMessage::kNickNameFieldNumber; -const int InitMessage::kClientUserDataFieldNumber; -const int InitMessage::kAvatarHashFieldNumber; -#endif // !_MSC_VER - -InitMessage::InitMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); - // @@protoc_insertion_point(constructor:InitMessage) -} - -void InitMessage::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - requestedversion_ = const_cast< ::AnnounceMessage_Version*>( - ::AnnounceMessage_Version::internal_default_instance()); -#else - requestedversion_ = const_cast< ::AnnounceMessage_Version*>(&::AnnounceMessage_Version::default_instance()); -#endif -} - -InitMessage::InitMessage(const InitMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:InitMessage) -} - -void InitMessage::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - requestedversion_ = NULL; - buildid_ = 0u; - mylastsessionid_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - authserverpassword_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - login_ = 0; - nickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clientuserdata_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -InitMessage::~InitMessage() { - // @@protoc_insertion_point(destructor:InitMessage) - SharedDtor(); -} - -void InitMessage::SharedDtor() { - if (mylastsessionid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete mylastsessionid_; - } - if (authserverpassword_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete authserverpassword_; - } - if (nickname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete nickname_; - } - if (clientuserdata_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete clientuserdata_; - } - if (avatarhash_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete avatarhash_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete requestedversion_; - } -} - -void InitMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const InitMessage& InitMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -InitMessage* InitMessage::default_instance_ = NULL; - -InitMessage* InitMessage::New() const { - return new InitMessage; -} - -void InitMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - if (_has_bits_[0 / 32] & 255) { - ZR_(buildid_, login_); - if (has_requestedversion()) { - if (requestedversion_ != NULL) requestedversion_->::AnnounceMessage_Version::Clear(); - } - if (has_mylastsessionid()) { - if (mylastsessionid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - mylastsessionid_->clear(); - } - } - if (has_authserverpassword()) { - if (authserverpassword_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - authserverpassword_->clear(); - } - } - if (has_nickname()) { - if (nickname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - nickname_->clear(); - } - } - if (has_clientuserdata()) { - if (clientuserdata_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - clientuserdata_->clear(); - } - } - if (has_avatarhash()) { - if (avatarhash_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - avatarhash_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool InitMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:InitMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .AnnounceMessage.Version requestedVersion = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_requestedversion())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_buildId; - break; - } - - // required uint32 buildId = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectTag(26)) goto parse_myLastSessionId; - break; - } - - // optional bytes myLastSessionId = 3; - case 3: { - if (tag == 26) { - parse_myLastSessionId: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_mylastsessionid())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_authServerPassword; - break; - } - - // optional string authServerPassword = 4; - case 4: { - if (tag == 34) { - parse_authServerPassword: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_authserverpassword())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_login; - break; - } - - // required .InitMessage.LoginType login = 5; - case 5: { - if (tag == 40) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(50)) goto parse_nickName; - break; - } - - // optional string nickName = 6; - case 6: { - if (tag == 50) { - parse_nickName: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_nickname())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_clientUserData; - break; - } - - // optional bytes clientUserData = 7; - case 7: { - if (tag == 58) { - parse_clientUserData: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_clientuserdata())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(66)) goto parse_avatarHash; - break; - } - - // optional bytes avatarHash = 8; - case 8: { - if (tag == 66) { - parse_avatarHash: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_avatarhash())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void InitMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:InitMessage) - // 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::WriteBytesMaybeAliased( - 3, this->mylastsessionid(), output); - } - - // optional string authServerPassword = 4; - if (has_authserverpassword()) { - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 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::WriteStringMaybeAliased( - 6, this->nickname(), output); - } - - // optional bytes clientUserData = 7; - if (has_clientuserdata()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 7, this->clientuserdata(), output); - } - - // optional bytes avatarHash = 8; - if (has_avatarhash()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 8, this->avatarhash(), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:InitMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:AuthServerChallengeMessage) -} - -void AuthServerChallengeMessage::InitAsDefaultInstance() { -} - -AuthServerChallengeMessage::AuthServerChallengeMessage(const AuthServerChallengeMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:AuthServerChallengeMessage) -} - -void AuthServerChallengeMessage::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - serverchallenge_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AuthServerChallengeMessage::~AuthServerChallengeMessage() { - // @@protoc_insertion_point(destructor:AuthServerChallengeMessage) - SharedDtor(); -} - -void AuthServerChallengeMessage::SharedDtor() { - if (serverchallenge_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete serverchallenge_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AuthServerChallengeMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AuthServerChallengeMessage& AuthServerChallengeMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AuthServerChallengeMessage* AuthServerChallengeMessage::default_instance_ = NULL; - -AuthServerChallengeMessage* AuthServerChallengeMessage::New() const { - return new AuthServerChallengeMessage; -} - -void AuthServerChallengeMessage::Clear() { - if (has_serverchallenge()) { - if (serverchallenge_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - serverchallenge_->clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool AuthServerChallengeMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:AuthServerChallengeMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required bytes serverChallenge = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_serverchallenge())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void AuthServerChallengeMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AuthServerChallengeMessage) - // required bytes serverChallenge = 1; - if (has_serverchallenge()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 1, this->serverchallenge(), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:AuthServerChallengeMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:AuthClientResponseMessage) -} - -void AuthClientResponseMessage::InitAsDefaultInstance() { -} - -AuthClientResponseMessage::AuthClientResponseMessage(const AuthClientResponseMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:AuthClientResponseMessage) -} - -void AuthClientResponseMessage::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - clientresponse_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AuthClientResponseMessage::~AuthClientResponseMessage() { - // @@protoc_insertion_point(destructor:AuthClientResponseMessage) - SharedDtor(); -} - -void AuthClientResponseMessage::SharedDtor() { - if (clientresponse_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete clientresponse_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AuthClientResponseMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AuthClientResponseMessage& AuthClientResponseMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AuthClientResponseMessage* AuthClientResponseMessage::default_instance_ = NULL; - -AuthClientResponseMessage* AuthClientResponseMessage::New() const { - return new AuthClientResponseMessage; -} - -void AuthClientResponseMessage::Clear() { - if (has_clientresponse()) { - if (clientresponse_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - clientresponse_->clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool AuthClientResponseMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:AuthClientResponseMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required bytes clientResponse = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_clientresponse())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void AuthClientResponseMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AuthClientResponseMessage) - // required bytes clientResponse = 1; - if (has_clientresponse()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 1, this->clientresponse(), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:AuthClientResponseMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:AuthServerVerificationMessage) -} - -void AuthServerVerificationMessage::InitAsDefaultInstance() { -} - -AuthServerVerificationMessage::AuthServerVerificationMessage(const AuthServerVerificationMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:AuthServerVerificationMessage) -} - -void AuthServerVerificationMessage::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - serververification_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AuthServerVerificationMessage::~AuthServerVerificationMessage() { - // @@protoc_insertion_point(destructor:AuthServerVerificationMessage) - SharedDtor(); -} - -void AuthServerVerificationMessage::SharedDtor() { - if (serververification_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete serververification_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AuthServerVerificationMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AuthServerVerificationMessage& AuthServerVerificationMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AuthServerVerificationMessage* AuthServerVerificationMessage::default_instance_ = NULL; - -AuthServerVerificationMessage* AuthServerVerificationMessage::New() const { - return new AuthServerVerificationMessage; -} - -void AuthServerVerificationMessage::Clear() { - if (has_serververification()) { - if (serververification_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - serververification_->clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool AuthServerVerificationMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:AuthServerVerificationMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required bytes serverVerification = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_serververification())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void AuthServerVerificationMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AuthServerVerificationMessage) - // required bytes serverVerification = 1; - if (has_serververification()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 1, this->serververification(), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:AuthServerVerificationMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:InitAckMessage) -} - -void InitAckMessage::InitAsDefaultInstance() { -} - -InitAckMessage::InitAckMessage(const InitAckMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:InitAckMessage) -} - -void InitAckMessage::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - yoursessionid_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - yourplayerid_ = 0u; - youravatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - rejoingameid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -InitAckMessage::~InitAckMessage() { - // @@protoc_insertion_point(destructor:InitAckMessage) - SharedDtor(); -} - -void InitAckMessage::SharedDtor() { - if (yoursessionid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete yoursessionid_; - } - if (youravatarhash_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete youravatarhash_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void InitAckMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const InitAckMessage& InitAckMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -InitAckMessage* InitAckMessage::default_instance_ = NULL; - -InitAckMessage* InitAckMessage::New() const { - return new InitAckMessage; -} - -void InitAckMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - if (_has_bits_[0 / 32] & 15) { - ZR_(yourplayerid_, rejoingameid_); - if (has_yoursessionid()) { - if (yoursessionid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - yoursessionid_->clear(); - } - } - if (has_youravatarhash()) { - if (youravatarhash_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - youravatarhash_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool InitAckMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:InitAckMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required bytes yourSessionId = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_yoursessionid())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_yourPlayerId; - break; - } - - // required uint32 yourPlayerId = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectTag(26)) goto parse_yourAvatarHash; - break; - } - - // optional bytes yourAvatarHash = 3; - case 3: { - if (tag == 26) { - parse_yourAvatarHash: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_youravatarhash())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_rejoinGameId; - break; - } - - // optional uint32 rejoinGameId = 4; - case 4: { - if (tag == 32) { - 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_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void InitAckMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:InitAckMessage) - // required bytes yourSessionId = 1; - if (has_yoursessionid()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 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::WriteBytesMaybeAliased( - 3, this->youravatarhash(), output); - } - - // optional uint32 rejoinGameId = 4; - if (has_rejoingameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->rejoingameid(), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:InitAckMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:AvatarRequestMessage) -} - -void AvatarRequestMessage::InitAsDefaultInstance() { -} - -AvatarRequestMessage::AvatarRequestMessage(const AvatarRequestMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:AvatarRequestMessage) -} - -void AvatarRequestMessage::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - requestid_ = 0u; - avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AvatarRequestMessage::~AvatarRequestMessage() { - // @@protoc_insertion_point(destructor:AvatarRequestMessage) - SharedDtor(); -} - -void AvatarRequestMessage::SharedDtor() { - if (avatarhash_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete avatarhash_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AvatarRequestMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AvatarRequestMessage& AvatarRequestMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AvatarRequestMessage* AvatarRequestMessage::default_instance_ = NULL; - -AvatarRequestMessage* AvatarRequestMessage::New() const { - return new AvatarRequestMessage; -} - -void AvatarRequestMessage::Clear() { - if (_has_bits_[0 / 32] & 3) { - requestid_ = 0u; - if (has_avatarhash()) { - if (avatarhash_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - avatarhash_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool AvatarRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:AvatarRequestMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 requestId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &requestid_))); - set_has_requestid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_avatarHash; - break; - } - - // required bytes avatarHash = 2; - case 2: { - if (tag == 18) { - parse_avatarHash: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_avatarhash())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void AvatarRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AvatarRequestMessage) - // 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::WriteBytesMaybeAliased( - 2, this->avatarhash(), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:AvatarRequestMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:AvatarHeaderMessage) -} - -void AvatarHeaderMessage::InitAsDefaultInstance() { -} - -AvatarHeaderMessage::AvatarHeaderMessage(const AvatarHeaderMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:AvatarHeaderMessage) -} - -void AvatarHeaderMessage::SharedCtor() { - _cached_size_ = 0; - requestid_ = 0u; - avatartype_ = 1; - avatarsize_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AvatarHeaderMessage::~AvatarHeaderMessage() { - // @@protoc_insertion_point(destructor:AvatarHeaderMessage) - SharedDtor(); -} - -void AvatarHeaderMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AvatarHeaderMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AvatarHeaderMessage& AvatarHeaderMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AvatarHeaderMessage* AvatarHeaderMessage::default_instance_ = NULL; - -AvatarHeaderMessage* AvatarHeaderMessage::New() const { - return new AvatarHeaderMessage; -} - -void AvatarHeaderMessage::Clear() { - if (_has_bits_[0 / 32] & 7) { - requestid_ = 0u; - avatartype_ = 1; - avatarsize_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool AvatarHeaderMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:AvatarHeaderMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 requestId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &requestid_))); - set_has_requestid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_avatarType; - break; - } - - // required .NetAvatarType avatarType = 2; - case 2: { - if (tag == 16) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_avatarSize; - break; - } - - // required uint32 avatarSize = 3; - case 3: { - if (tag == 24) { - 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_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void AvatarHeaderMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AvatarHeaderMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:AvatarHeaderMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:AvatarDataMessage) -} - -void AvatarDataMessage::InitAsDefaultInstance() { -} - -AvatarDataMessage::AvatarDataMessage(const AvatarDataMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:AvatarDataMessage) -} - -void AvatarDataMessage::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - requestid_ = 0u; - avatarblock_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AvatarDataMessage::~AvatarDataMessage() { - // @@protoc_insertion_point(destructor:AvatarDataMessage) - SharedDtor(); -} - -void AvatarDataMessage::SharedDtor() { - if (avatarblock_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete avatarblock_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AvatarDataMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AvatarDataMessage& AvatarDataMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AvatarDataMessage* AvatarDataMessage::default_instance_ = NULL; - -AvatarDataMessage* AvatarDataMessage::New() const { - return new AvatarDataMessage; -} - -void AvatarDataMessage::Clear() { - if (_has_bits_[0 / 32] & 3) { - requestid_ = 0u; - if (has_avatarblock()) { - if (avatarblock_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - avatarblock_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool AvatarDataMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:AvatarDataMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 requestId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &requestid_))); - set_has_requestid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_avatarBlock; - break; - } - - // required bytes avatarBlock = 2; - case 2: { - if (tag == 18) { - parse_avatarBlock: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_avatarblock())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void AvatarDataMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AvatarDataMessage) - // 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::WriteBytesMaybeAliased( - 2, this->avatarblock(), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:AvatarDataMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:AvatarEndMessage) -} - -void AvatarEndMessage::InitAsDefaultInstance() { -} - -AvatarEndMessage::AvatarEndMessage(const AvatarEndMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:AvatarEndMessage) -} - -void AvatarEndMessage::SharedCtor() { - _cached_size_ = 0; - requestid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AvatarEndMessage::~AvatarEndMessage() { - // @@protoc_insertion_point(destructor:AvatarEndMessage) - SharedDtor(); -} - -void AvatarEndMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AvatarEndMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AvatarEndMessage& AvatarEndMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AvatarEndMessage* AvatarEndMessage::default_instance_ = NULL; - -AvatarEndMessage* AvatarEndMessage::New() const { - return new AvatarEndMessage; -} - -void AvatarEndMessage::Clear() { - requestid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool AvatarEndMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:AvatarEndMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 requestId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &requestid_))); - set_has_requestid(); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void AvatarEndMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AvatarEndMessage) - // required uint32 requestId = 1; - if (has_requestid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestid(), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:AvatarEndMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:UnknownAvatarMessage) -} - -void UnknownAvatarMessage::InitAsDefaultInstance() { -} - -UnknownAvatarMessage::UnknownAvatarMessage(const UnknownAvatarMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:UnknownAvatarMessage) -} - -void UnknownAvatarMessage::SharedCtor() { - _cached_size_ = 0; - requestid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -UnknownAvatarMessage::~UnknownAvatarMessage() { - // @@protoc_insertion_point(destructor:UnknownAvatarMessage) - SharedDtor(); -} - -void UnknownAvatarMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void UnknownAvatarMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const UnknownAvatarMessage& UnknownAvatarMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -UnknownAvatarMessage* UnknownAvatarMessage::default_instance_ = NULL; - -UnknownAvatarMessage* UnknownAvatarMessage::New() const { - return new UnknownAvatarMessage; -} - -void UnknownAvatarMessage::Clear() { - requestid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool UnknownAvatarMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:UnknownAvatarMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 requestId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &requestid_))); - set_has_requestid(); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void UnknownAvatarMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:UnknownAvatarMessage) - // required uint32 requestId = 1; - if (has_requestid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->requestid(), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:UnknownAvatarMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string UnknownAvatarMessage::GetTypeName() const { - return "UnknownAvatarMessage"; -} - - -// =================================================================== - +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 bool PlayerListMessage_PlayerListNotification_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: return true; @@ -4788,3185 +1940,15 @@ bool PlayerListMessage_PlayerListNotification_IsValid(int value) { } } -#ifndef _MSC_VER +#if !defined(_MSC_VER) || _MSC_VER >= 1900 const PlayerListMessage_PlayerListNotification PlayerListMessage::playerListNew; const PlayerListMessage_PlayerListNotification PlayerListMessage::playerListLeft; const PlayerListMessage_PlayerListNotification PlayerListMessage::PlayerListNotification_MIN; const PlayerListMessage_PlayerListNotification PlayerListMessage::PlayerListNotification_MAX; const int PlayerListMessage::PlayerListNotification_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int PlayerListMessage::kPlayerIdFieldNumber; -const int PlayerListMessage::kPlayerListNotificationFieldNumber; -#endif // !_MSC_VER - -PlayerListMessage::PlayerListMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); - // @@protoc_insertion_point(constructor:PlayerListMessage) -} - -void PlayerListMessage::InitAsDefaultInstance() { -} - -PlayerListMessage::PlayerListMessage(const PlayerListMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:PlayerListMessage) -} - -void PlayerListMessage::SharedCtor() { - _cached_size_ = 0; - playerid_ = 0u; - playerlistnotification_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -PlayerListMessage::~PlayerListMessage() { - // @@protoc_insertion_point(destructor:PlayerListMessage) - SharedDtor(); -} - -void PlayerListMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void PlayerListMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const PlayerListMessage& PlayerListMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -PlayerListMessage* PlayerListMessage::default_instance_ = NULL; - -PlayerListMessage* PlayerListMessage::New() const { - return new PlayerListMessage; -} - -void PlayerListMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(playerid_, playerlistnotification_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool PlayerListMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:PlayerListMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 playerId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_playerListNotification; - break; - } - - // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; - case 2: { - if (tag == 16) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void PlayerListMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:PlayerListMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:PlayerListMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:GameListNewMessage) -} - -void GameListNewMessage::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gameinfo_ = const_cast< ::NetGameInfo*>( - ::NetGameInfo::internal_default_instance()); -#else - gameinfo_ = const_cast< ::NetGameInfo*>(&::NetGameInfo::default_instance()); -#endif -} - -GameListNewMessage::GameListNewMessage(const GameListNewMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:GameListNewMessage) -} - -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() { - // @@protoc_insertion_point(destructor:GameListNewMessage) - SharedDtor(); -} - -void GameListNewMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete gameinfo_; - } -} - -void GameListNewMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameListNewMessage& GameListNewMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameListNewMessage* GameListNewMessage::default_instance_ = NULL; - -GameListNewMessage* GameListNewMessage::New() const { - return new GameListNewMessage; -} - -void GameListNewMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - if (_has_bits_[0 / 32] & 55) { - ZR_(isprivate_, adminplayerid_); - gameid_ = 0u; - gamemode_ = 1; - if (has_gameinfo()) { - if (gameinfo_ != NULL) gameinfo_->::NetGameInfo::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - playerids_.Clear(); - spectatorids_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool GameListNewMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:GameListNewMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_gameMode; - break; - } - - // required .NetGameMode gameMode = 2; - case 2: { - if (tag == 16) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_isPrivate; - break; - } - - // required bool isPrivate = 3; - case 3: { - if (tag == 24) { - parse_isPrivate: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &isprivate_))); - set_has_isprivate(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_playerIds; - break; - } - - // repeated uint32 playerIds = 4 [packed = true]; - case 4: { - if (tag == 34) { - parse_playerIds: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_playerids()))); - } else if (tag == 32) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 34, input, this->mutable_playerids()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_adminPlayerId; - break; - } - - // required uint32 adminPlayerId = 5; - case 5: { - if (tag == 40) { - 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_unusual; - } - if (input->ExpectTag(50)) goto parse_gameInfo; - break; - } - - // required .NetGameInfo gameInfo = 6; - case 6: { - if (tag == 50) { - parse_gameInfo: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_gameinfo())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(58)) goto parse_spectatorIds; - break; - } - - // repeated uint32 spectatorIds = 7 [packed = true]; - case 7: { - if (tag == 58) { - parse_spectatorIds: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_spectatorids()))); - } else if (tag == 56) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 58, input, this->mutable_spectatorids()))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void GameListNewMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameListNewMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:GameListNewMessage) -} - -int GameListNewMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required .NetGameMode gameMode = 2; - if (has_gamemode()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->gamemode()); - } - - // required bool isPrivate = 3; - if (has_isprivate()) { - total_size += 1 + 1; - } - - // required uint32 adminPlayerId = 5; - if (has_adminplayerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->adminplayerid()); - } - - // required .NetGameInfo gameInfo = 6; - if (has_gameinfo()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gameinfo()); - } - - } - // repeated uint32 playerIds = 4 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->playerids_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->playerids(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _playerids_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - // repeated uint32 spectatorIds = 7 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->spectatorids_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->spectatorids(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _spectatorids_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - total_size += unknown_fields().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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:GameListUpdateMessage) -} - -void GameListUpdateMessage::InitAsDefaultInstance() { -} - -GameListUpdateMessage::GameListUpdateMessage(const GameListUpdateMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:GameListUpdateMessage) -} - -void GameListUpdateMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - gamemode_ = 1; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameListUpdateMessage::~GameListUpdateMessage() { - // @@protoc_insertion_point(destructor:GameListUpdateMessage) - SharedDtor(); -} - -void GameListUpdateMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameListUpdateMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameListUpdateMessage& GameListUpdateMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameListUpdateMessage* GameListUpdateMessage::default_instance_ = NULL; - -GameListUpdateMessage* GameListUpdateMessage::New() const { - return new GameListUpdateMessage; -} - -void GameListUpdateMessage::Clear() { - if (_has_bits_[0 / 32] & 3) { - gameid_ = 0u; - gamemode_ = 1; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool GameListUpdateMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:GameListUpdateMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_gameMode; - break; - } - - // required .NetGameMode gameMode = 2; - case 2: { - if (tag == 16) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void GameListUpdateMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameListUpdateMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:GameListUpdateMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:GameListPlayerJoinedMessage) -} - -void GameListPlayerJoinedMessage::InitAsDefaultInstance() { -} - -GameListPlayerJoinedMessage::GameListPlayerJoinedMessage(const GameListPlayerJoinedMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:GameListPlayerJoinedMessage) -} - -void GameListPlayerJoinedMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameListPlayerJoinedMessage::~GameListPlayerJoinedMessage() { - // @@protoc_insertion_point(destructor:GameListPlayerJoinedMessage) - SharedDtor(); -} - -void GameListPlayerJoinedMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameListPlayerJoinedMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameListPlayerJoinedMessage& GameListPlayerJoinedMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameListPlayerJoinedMessage* GameListPlayerJoinedMessage::default_instance_ = NULL; - -GameListPlayerJoinedMessage* GameListPlayerJoinedMessage::New() const { - return new GameListPlayerJoinedMessage; -} - -void GameListPlayerJoinedMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, playerid_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool GameListPlayerJoinedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:GameListPlayerJoinedMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (tag == 16) { - 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; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void GameListPlayerJoinedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameListPlayerJoinedMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:GameListPlayerJoinedMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:GameListPlayerLeftMessage) -} - -void GameListPlayerLeftMessage::InitAsDefaultInstance() { -} - -GameListPlayerLeftMessage::GameListPlayerLeftMessage(const GameListPlayerLeftMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:GameListPlayerLeftMessage) -} - -void GameListPlayerLeftMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameListPlayerLeftMessage::~GameListPlayerLeftMessage() { - // @@protoc_insertion_point(destructor:GameListPlayerLeftMessage) - SharedDtor(); -} - -void GameListPlayerLeftMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameListPlayerLeftMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameListPlayerLeftMessage& GameListPlayerLeftMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameListPlayerLeftMessage* GameListPlayerLeftMessage::default_instance_ = NULL; - -GameListPlayerLeftMessage* GameListPlayerLeftMessage::New() const { - return new GameListPlayerLeftMessage; -} - -void GameListPlayerLeftMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, playerid_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool GameListPlayerLeftMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:GameListPlayerLeftMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (tag == 16) { - 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; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void GameListPlayerLeftMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameListPlayerLeftMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:GameListPlayerLeftMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:GameListSpectatorJoinedMessage) -} - -void GameListSpectatorJoinedMessage::InitAsDefaultInstance() { -} - -GameListSpectatorJoinedMessage::GameListSpectatorJoinedMessage(const GameListSpectatorJoinedMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:GameListSpectatorJoinedMessage) -} - -void GameListSpectatorJoinedMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameListSpectatorJoinedMessage::~GameListSpectatorJoinedMessage() { - // @@protoc_insertion_point(destructor:GameListSpectatorJoinedMessage) - SharedDtor(); -} - -void GameListSpectatorJoinedMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameListSpectatorJoinedMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameListSpectatorJoinedMessage& GameListSpectatorJoinedMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameListSpectatorJoinedMessage* GameListSpectatorJoinedMessage::default_instance_ = NULL; - -GameListSpectatorJoinedMessage* GameListSpectatorJoinedMessage::New() const { - return new GameListSpectatorJoinedMessage; -} - -void GameListSpectatorJoinedMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, playerid_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool GameListSpectatorJoinedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:GameListSpectatorJoinedMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (tag == 16) { - 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; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void GameListSpectatorJoinedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameListSpectatorJoinedMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:GameListSpectatorJoinedMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:GameListSpectatorLeftMessage) -} - -void GameListSpectatorLeftMessage::InitAsDefaultInstance() { -} - -GameListSpectatorLeftMessage::GameListSpectatorLeftMessage(const GameListSpectatorLeftMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:GameListSpectatorLeftMessage) -} - -void GameListSpectatorLeftMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameListSpectatorLeftMessage::~GameListSpectatorLeftMessage() { - // @@protoc_insertion_point(destructor:GameListSpectatorLeftMessage) - SharedDtor(); -} - -void GameListSpectatorLeftMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameListSpectatorLeftMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameListSpectatorLeftMessage& GameListSpectatorLeftMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameListSpectatorLeftMessage* GameListSpectatorLeftMessage::default_instance_ = NULL; - -GameListSpectatorLeftMessage* GameListSpectatorLeftMessage::New() const { - return new GameListSpectatorLeftMessage; -} - -void GameListSpectatorLeftMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, playerid_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool GameListSpectatorLeftMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:GameListSpectatorLeftMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (tag == 16) { - 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; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void GameListSpectatorLeftMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameListSpectatorLeftMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:GameListSpectatorLeftMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:GameListAdminChangedMessage) -} - -void GameListAdminChangedMessage::InitAsDefaultInstance() { -} - -GameListAdminChangedMessage::GameListAdminChangedMessage(const GameListAdminChangedMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:GameListAdminChangedMessage) -} - -void GameListAdminChangedMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - newadminplayerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameListAdminChangedMessage::~GameListAdminChangedMessage() { - // @@protoc_insertion_point(destructor:GameListAdminChangedMessage) - SharedDtor(); -} - -void GameListAdminChangedMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameListAdminChangedMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameListAdminChangedMessage& GameListAdminChangedMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameListAdminChangedMessage* GameListAdminChangedMessage::default_instance_ = NULL; - -GameListAdminChangedMessage* GameListAdminChangedMessage::New() const { - return new GameListAdminChangedMessage; -} - -void GameListAdminChangedMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, newadminplayerid_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool GameListAdminChangedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:GameListAdminChangedMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_newAdminPlayerId; - break; - } - - // required uint32 newAdminPlayerId = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void GameListAdminChangedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameListAdminChangedMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:GameListAdminChangedMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:PlayerInfoRequestMessage) -} - -void PlayerInfoRequestMessage::InitAsDefaultInstance() { -} - -PlayerInfoRequestMessage::PlayerInfoRequestMessage(const PlayerInfoRequestMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:PlayerInfoRequestMessage) -} - -void PlayerInfoRequestMessage::SharedCtor() { - _cached_size_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -PlayerInfoRequestMessage::~PlayerInfoRequestMessage() { - // @@protoc_insertion_point(destructor:PlayerInfoRequestMessage) - SharedDtor(); -} - -void PlayerInfoRequestMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void PlayerInfoRequestMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const PlayerInfoRequestMessage& PlayerInfoRequestMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -PlayerInfoRequestMessage* PlayerInfoRequestMessage::default_instance_ = NULL; - -PlayerInfoRequestMessage* PlayerInfoRequestMessage::New() const { - return new PlayerInfoRequestMessage; -} - -void PlayerInfoRequestMessage::Clear() { - playerid_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool PlayerInfoRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:PlayerInfoRequestMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - 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 (tag == 10) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_playerid()))); - } else if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 10, input, this->mutable_playerid()))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void PlayerInfoRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:PlayerInfoRequestMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:PlayerInfoRequestMessage) -} - -int PlayerInfoRequestMessage::ByteSize() const { - int total_size = 0; - - // repeated uint32 playerId = 1 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->playerid_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->playerid(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _playerid_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - total_size += unknown_fields().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_); - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) -} - -void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::InitAsDefaultInstance() { -} - -PlayerInfoReplyMessage_PlayerInfoData_AvatarData::PlayerInfoReplyMessage_PlayerInfoData_AvatarData(const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) -} - -void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - avatartype_ = 1; - avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -PlayerInfoReplyMessage_PlayerInfoData_AvatarData::~PlayerInfoReplyMessage_PlayerInfoData_AvatarData() { - // @@protoc_insertion_point(destructor:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) - SharedDtor(); -} - -void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::SharedDtor() { - if (avatarhash_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete avatarhash_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& PlayerInfoReplyMessage_PlayerInfoData_AvatarData::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -PlayerInfoReplyMessage_PlayerInfoData_AvatarData* PlayerInfoReplyMessage_PlayerInfoData_AvatarData::default_instance_ = NULL; - -PlayerInfoReplyMessage_PlayerInfoData_AvatarData* PlayerInfoReplyMessage_PlayerInfoData_AvatarData::New() const { - return new PlayerInfoReplyMessage_PlayerInfoData_AvatarData; -} - -void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::Clear() { - if (_has_bits_[0 / 32] & 3) { - avatartype_ = 1; - if (has_avatarhash()) { - if (avatarhash_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - avatarhash_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool PlayerInfoReplyMessage_PlayerInfoData_AvatarData::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .NetAvatarType avatarType = 1; - case 1: { - if (tag == 8) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_avatarHash; - break; - } - - // required bytes avatarHash = 2; - case 2: { - if (tag == 18) { - parse_avatarHash: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_avatarhash())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) - // 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::WriteBytesMaybeAliased( - 2, this->avatarhash(), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:PlayerInfoReplyMessage.PlayerInfoData) -} - -void PlayerInfoReplyMessage_PlayerInfoData::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - avatardata_ = const_cast< ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData*>( - ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData::internal_default_instance()); -#else - avatardata_ = const_cast< ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData*>(&::PlayerInfoReplyMessage_PlayerInfoData_AvatarData::default_instance()); -#endif -} - -PlayerInfoReplyMessage_PlayerInfoData::PlayerInfoReplyMessage_PlayerInfoData(const PlayerInfoReplyMessage_PlayerInfoData& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:PlayerInfoReplyMessage.PlayerInfoData) -} - -void PlayerInfoReplyMessage_PlayerInfoData::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - playername_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ishuman_ = false; - playerrights_ = 1; - countrycode_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - avatardata_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -PlayerInfoReplyMessage_PlayerInfoData::~PlayerInfoReplyMessage_PlayerInfoData() { - // @@protoc_insertion_point(destructor:PlayerInfoReplyMessage.PlayerInfoData) - SharedDtor(); -} - -void PlayerInfoReplyMessage_PlayerInfoData::SharedDtor() { - if (playername_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete playername_; - } - if (countrycode_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete countrycode_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete avatardata_; - } -} - -void PlayerInfoReplyMessage_PlayerInfoData::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const PlayerInfoReplyMessage_PlayerInfoData& PlayerInfoReplyMessage_PlayerInfoData::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -PlayerInfoReplyMessage_PlayerInfoData* PlayerInfoReplyMessage_PlayerInfoData::default_instance_ = NULL; - -PlayerInfoReplyMessage_PlayerInfoData* PlayerInfoReplyMessage_PlayerInfoData::New() const { - return new PlayerInfoReplyMessage_PlayerInfoData; -} - -void PlayerInfoReplyMessage_PlayerInfoData::Clear() { - if (_has_bits_[0 / 32] & 31) { - if (has_playername()) { - if (playername_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - playername_->clear(); - } - } - ishuman_ = false; - playerrights_ = 1; - if (has_countrycode()) { - if (countrycode_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - countrycode_->clear(); - } - } - if (has_avatardata()) { - if (avatardata_ != NULL) avatardata_->::PlayerInfoReplyMessage_PlayerInfoData_AvatarData::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool PlayerInfoReplyMessage_PlayerInfoData::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:PlayerInfoReplyMessage.PlayerInfoData) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required string playerName = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_playername())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_isHuman; - break; - } - - // required bool isHuman = 2; - case 2: { - if (tag == 16) { - parse_isHuman: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &ishuman_))); - set_has_ishuman(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_playerRights; - break; - } - - // required .NetPlayerInfoRights playerRights = 3; - case 3: { - if (tag == 24) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_countryCode; - break; - } - - // optional string countryCode = 4; - case 4: { - if (tag == 34) { - parse_countryCode: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_countrycode())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(42)) goto parse_avatarData; - break; - } - - // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; - case 5: { - if (tag == 42) { - parse_avatarData: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_avatardata())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void PlayerInfoReplyMessage_PlayerInfoData::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:PlayerInfoReplyMessage.PlayerInfoData) - // required string playerName = 1; - if (has_playername()) { - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 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::WriteStringMaybeAliased( - 4, this->countrycode(), output); - } - - // optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; - if (has_avatardata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 5, this->avatardata(), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:PlayerInfoReplyMessage.PlayerInfoData) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:PlayerInfoReplyMessage) -} - -void PlayerInfoReplyMessage::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - playerinfodata_ = const_cast< ::PlayerInfoReplyMessage_PlayerInfoData*>( - ::PlayerInfoReplyMessage_PlayerInfoData::internal_default_instance()); -#else - playerinfodata_ = const_cast< ::PlayerInfoReplyMessage_PlayerInfoData*>(&::PlayerInfoReplyMessage_PlayerInfoData::default_instance()); -#endif -} - -PlayerInfoReplyMessage::PlayerInfoReplyMessage(const PlayerInfoReplyMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:PlayerInfoReplyMessage) -} - -void PlayerInfoReplyMessage::SharedCtor() { - _cached_size_ = 0; - playerid_ = 0u; - playerinfodata_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -PlayerInfoReplyMessage::~PlayerInfoReplyMessage() { - // @@protoc_insertion_point(destructor:PlayerInfoReplyMessage) - SharedDtor(); -} - -void PlayerInfoReplyMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete playerinfodata_; - } -} - -void PlayerInfoReplyMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const PlayerInfoReplyMessage& PlayerInfoReplyMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -PlayerInfoReplyMessage* PlayerInfoReplyMessage::default_instance_ = NULL; - -PlayerInfoReplyMessage* PlayerInfoReplyMessage::New() const { - return new PlayerInfoReplyMessage; -} - -void PlayerInfoReplyMessage::Clear() { - if (_has_bits_[0 / 32] & 3) { - playerid_ = 0u; - if (has_playerinfodata()) { - if (playerinfodata_ != NULL) playerinfodata_->::PlayerInfoReplyMessage_PlayerInfoData::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool PlayerInfoReplyMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:PlayerInfoReplyMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 playerId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_playerInfoData; - break; - } - - // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; - case 2: { - if (tag == 18) { - parse_playerInfoData: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_playerinfodata())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void PlayerInfoReplyMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:PlayerInfoReplyMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:PlayerInfoReplyMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string PlayerInfoReplyMessage::GetTypeName() const { - return "PlayerInfoReplyMessage"; -} - - -// =================================================================== - +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 bool SubscriptionRequestMessage_SubscriptionAction_IsValid(int value) { - switch(value) { + switch (value) { case 1: case 2: return true; @@ -7975,1354 +1957,15 @@ bool SubscriptionRequestMessage_SubscriptionAction_IsValid(int value) { } } -#ifndef _MSC_VER +#if !defined(_MSC_VER) || _MSC_VER >= 1900 const SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage::unsubscribeGameList; const SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage::resubscribeGameList; const SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage::SubscriptionAction_MIN; const SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage::SubscriptionAction_MAX; const int SubscriptionRequestMessage::SubscriptionAction_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int SubscriptionRequestMessage::kSubscriptionActionFieldNumber; -#endif // !_MSC_VER - -SubscriptionRequestMessage::SubscriptionRequestMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); - // @@protoc_insertion_point(constructor:SubscriptionRequestMessage) -} - -void SubscriptionRequestMessage::InitAsDefaultInstance() { -} - -SubscriptionRequestMessage::SubscriptionRequestMessage(const SubscriptionRequestMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:SubscriptionRequestMessage) -} - -void SubscriptionRequestMessage::SharedCtor() { - _cached_size_ = 0; - subscriptionaction_ = 1; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -SubscriptionRequestMessage::~SubscriptionRequestMessage() { - // @@protoc_insertion_point(destructor:SubscriptionRequestMessage) - SharedDtor(); -} - -void SubscriptionRequestMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void SubscriptionRequestMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const SubscriptionRequestMessage& SubscriptionRequestMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -SubscriptionRequestMessage* SubscriptionRequestMessage::default_instance_ = NULL; - -SubscriptionRequestMessage* SubscriptionRequestMessage::New() const { - return new SubscriptionRequestMessage; -} - -void SubscriptionRequestMessage::Clear() { - subscriptionaction_ = 1; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool SubscriptionRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:SubscriptionRequestMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; - case 1: { - if (tag == 8) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void SubscriptionRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:SubscriptionRequestMessage) - // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; - if (has_subscriptionaction()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->subscriptionaction(), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:SubscriptionRequestMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:JoinExistingGameMessage) -} - -void JoinExistingGameMessage::InitAsDefaultInstance() { -} - -JoinExistingGameMessage::JoinExistingGameMessage(const JoinExistingGameMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:JoinExistingGameMessage) -} - -void JoinExistingGameMessage::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - gameid_ = 0u; - password_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - autoleave_ = false; - spectateonly_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -JoinExistingGameMessage::~JoinExistingGameMessage() { - // @@protoc_insertion_point(destructor:JoinExistingGameMessage) - SharedDtor(); -} - -void JoinExistingGameMessage::SharedDtor() { - if (password_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete password_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void JoinExistingGameMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const JoinExistingGameMessage& JoinExistingGameMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -JoinExistingGameMessage* JoinExistingGameMessage::default_instance_ = NULL; - -JoinExistingGameMessage* JoinExistingGameMessage::New() const { - return new JoinExistingGameMessage; -} - -void JoinExistingGameMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - if (_has_bits_[0 / 32] & 15) { - ZR_(gameid_, spectateonly_); - if (has_password()) { - if (password_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - password_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool JoinExistingGameMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:JoinExistingGameMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_password; - break; - } - - // optional string password = 2; - case 2: { - if (tag == 18) { - parse_password: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_password())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_autoLeave; - break; - } - - // optional bool autoLeave = 3 [default = false]; - case 3: { - if (tag == 24) { - parse_autoLeave: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &autoleave_))); - set_has_autoleave(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_spectateOnly; - break; - } - - // optional bool spectateOnly = 4 [default = false]; - case 4: { - if (tag == 32) { - parse_spectateOnly: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &spectateonly_))); - set_has_spectateonly(); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void JoinExistingGameMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:JoinExistingGameMessage) - // 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::WriteStringMaybeAliased( - 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:JoinExistingGameMessage) -} - -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; - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:JoinNewGameMessage) -} - -void JoinNewGameMessage::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gameinfo_ = const_cast< ::NetGameInfo*>( - ::NetGameInfo::internal_default_instance()); -#else - gameinfo_ = const_cast< ::NetGameInfo*>(&::NetGameInfo::default_instance()); -#endif -} - -JoinNewGameMessage::JoinNewGameMessage(const JoinNewGameMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:JoinNewGameMessage) -} - -void JoinNewGameMessage::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - gameinfo_ = NULL; - password_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - autoleave_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -JoinNewGameMessage::~JoinNewGameMessage() { - // @@protoc_insertion_point(destructor:JoinNewGameMessage) - SharedDtor(); -} - -void JoinNewGameMessage::SharedDtor() { - if (password_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete password_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete gameinfo_; - } -} - -void JoinNewGameMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const JoinNewGameMessage& JoinNewGameMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -JoinNewGameMessage* JoinNewGameMessage::default_instance_ = NULL; - -JoinNewGameMessage* JoinNewGameMessage::New() const { - return new JoinNewGameMessage; -} - -void JoinNewGameMessage::Clear() { - if (_has_bits_[0 / 32] & 7) { - if (has_gameinfo()) { - if (gameinfo_ != NULL) gameinfo_->::NetGameInfo::Clear(); - } - if (has_password()) { - if (password_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - password_->clear(); - } - } - autoleave_ = false; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool JoinNewGameMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:JoinNewGameMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .NetGameInfo gameInfo = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_gameinfo())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_password; - break; - } - - // optional string password = 2; - case 2: { - if (tag == 18) { - parse_password: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_password())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_autoLeave; - break; - } - - // optional bool autoLeave = 3; - case 3: { - if (tag == 24) { - parse_autoLeave: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &autoleave_))); - set_has_autoleave(); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void JoinNewGameMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:JoinNewGameMessage) - // 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::WriteStringMaybeAliased( - 2, this->password(), output); - } - - // optional bool autoLeave = 3; - if (has_autoleave()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->autoleave(), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:JoinNewGameMessage) -} - -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; - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:RejoinExistingGameMessage) -} - -void RejoinExistingGameMessage::InitAsDefaultInstance() { -} - -RejoinExistingGameMessage::RejoinExistingGameMessage(const RejoinExistingGameMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:RejoinExistingGameMessage) -} - -void RejoinExistingGameMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - autoleave_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -RejoinExistingGameMessage::~RejoinExistingGameMessage() { - // @@protoc_insertion_point(destructor:RejoinExistingGameMessage) - SharedDtor(); -} - -void RejoinExistingGameMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void RejoinExistingGameMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const RejoinExistingGameMessage& RejoinExistingGameMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -RejoinExistingGameMessage* RejoinExistingGameMessage::default_instance_ = NULL; - -RejoinExistingGameMessage* RejoinExistingGameMessage::New() const { - return new RejoinExistingGameMessage; -} - -void RejoinExistingGameMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, autoleave_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool RejoinExistingGameMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:RejoinExistingGameMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_autoLeave; - break; - } - - // optional bool autoLeave = 2; - case 2: { - if (tag == 16) { - parse_autoLeave: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &autoleave_))); - set_has_autoleave(); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void RejoinExistingGameMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:RejoinExistingGameMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:RejoinExistingGameMessage) -} - -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; - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:JoinGameAckMessage) -} - -void JoinGameAckMessage::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gameinfo_ = const_cast< ::NetGameInfo*>( - ::NetGameInfo::internal_default_instance()); -#else - gameinfo_ = const_cast< ::NetGameInfo*>(&::NetGameInfo::default_instance()); -#endif -} - -JoinGameAckMessage::JoinGameAckMessage(const JoinGameAckMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:JoinGameAckMessage) -} - -void JoinGameAckMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - areyougameadmin_ = false; - gameinfo_ = NULL; - spectateonly_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -JoinGameAckMessage::~JoinGameAckMessage() { - // @@protoc_insertion_point(destructor:JoinGameAckMessage) - SharedDtor(); -} - -void JoinGameAckMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete gameinfo_; - } -} - -void JoinGameAckMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const JoinGameAckMessage& JoinGameAckMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -JoinGameAckMessage* JoinGameAckMessage::default_instance_ = NULL; - -JoinGameAckMessage* JoinGameAckMessage::New() const { - return new JoinGameAckMessage; -} - -void JoinGameAckMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - if (_has_bits_[0 / 32] & 15) { - ZR_(gameid_, spectateonly_); - if (has_gameinfo()) { - if (gameinfo_ != NULL) gameinfo_->::NetGameInfo::Clear(); - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool JoinGameAckMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:JoinGameAckMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_areYouGameAdmin; - break; - } - - // required bool areYouGameAdmin = 2; - case 2: { - if (tag == 16) { - parse_areYouGameAdmin: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &areyougameadmin_))); - set_has_areyougameadmin(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_gameInfo; - break; - } - - // required .NetGameInfo gameInfo = 3; - case 3: { - if (tag == 26) { - parse_gameInfo: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_gameinfo())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_spectateOnly; - break; - } - - // optional bool spectateOnly = 4; - case 4: { - if (tag == 32) { - parse_spectateOnly: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &spectateonly_))); - set_has_spectateonly(); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void JoinGameAckMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:JoinGameAckMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:JoinGameAckMessage) -} - -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; - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string JoinGameAckMessage::GetTypeName() const { - return "JoinGameAckMessage"; -} - - -// =================================================================== - +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 bool JoinGameFailedMessage_JoinGameFailureReason_IsValid(int value) { - switch(value) { + switch (value) { case 1: case 2: case 3: @@ -9341,7 +1984,7 @@ bool JoinGameFailedMessage_JoinGameFailureReason_IsValid(int value) { } } -#ifndef _MSC_VER +#if !defined(_MSC_VER) || _MSC_VER >= 1900 const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::invalidGame; const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::gameIsFull; const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::gameIsRunning; @@ -9357,513 +2000,9 @@ const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::noSpect const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::JoinGameFailureReason_MIN; const JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::JoinGameFailureReason_MAX; const int JoinGameFailedMessage::JoinGameFailureReason_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int JoinGameFailedMessage::kGameIdFieldNumber; -const int JoinGameFailedMessage::kJoinGameFailureReasonFieldNumber; -#endif // !_MSC_VER - -JoinGameFailedMessage::JoinGameFailedMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); - // @@protoc_insertion_point(constructor:JoinGameFailedMessage) -} - -void JoinGameFailedMessage::InitAsDefaultInstance() { -} - -JoinGameFailedMessage::JoinGameFailedMessage(const JoinGameFailedMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:JoinGameFailedMessage) -} - -void JoinGameFailedMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - joingamefailurereason_ = 1; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -JoinGameFailedMessage::~JoinGameFailedMessage() { - // @@protoc_insertion_point(destructor:JoinGameFailedMessage) - SharedDtor(); -} - -void JoinGameFailedMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void JoinGameFailedMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const JoinGameFailedMessage& JoinGameFailedMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -JoinGameFailedMessage* JoinGameFailedMessage::default_instance_ = NULL; - -JoinGameFailedMessage* JoinGameFailedMessage::New() const { - return new JoinGameFailedMessage; -} - -void JoinGameFailedMessage::Clear() { - if (_has_bits_[0 / 32] & 3) { - gameid_ = 0u; - joingamefailurereason_ = 1; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool JoinGameFailedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:JoinGameFailedMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_joinGameFailureReason; - break; - } - - // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; - case 2: { - if (tag == 16) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void JoinGameFailedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:JoinGameFailedMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:JoinGameFailedMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:GamePlayerJoinedMessage) -} - -void GamePlayerJoinedMessage::InitAsDefaultInstance() { -} - -GamePlayerJoinedMessage::GamePlayerJoinedMessage(const GamePlayerJoinedMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:GamePlayerJoinedMessage) -} - -void GamePlayerJoinedMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - isgameadmin_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GamePlayerJoinedMessage::~GamePlayerJoinedMessage() { - // @@protoc_insertion_point(destructor:GamePlayerJoinedMessage) - SharedDtor(); -} - -void GamePlayerJoinedMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GamePlayerJoinedMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GamePlayerJoinedMessage& GamePlayerJoinedMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GamePlayerJoinedMessage* GamePlayerJoinedMessage::default_instance_ = NULL; - -GamePlayerJoinedMessage* GamePlayerJoinedMessage::New() const { - return new GamePlayerJoinedMessage; -} - -void GamePlayerJoinedMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, isgameadmin_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool GamePlayerJoinedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:GamePlayerJoinedMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (tag == 16) { - 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; - } - if (input->ExpectTag(24)) goto parse_isGameAdmin; - break; - } - - // required bool isGameAdmin = 3; - case 3: { - if (tag == 24) { - parse_isGameAdmin: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &isgameadmin_))); - set_has_isgameadmin(); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void GamePlayerJoinedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GamePlayerJoinedMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:GamePlayerJoinedMessage) -} - -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; - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string GamePlayerJoinedMessage::GetTypeName() const { - return "GamePlayerJoinedMessage"; -} - - -// =================================================================== - +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 bool GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -9873,1050 +2012,16 @@ bool GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(int value) { } } -#ifndef _MSC_VER +#if !defined(_MSC_VER) || _MSC_VER >= 1900 const GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::leftOnRequest; const GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::leftKicked; const GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::leftError; const GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::GamePlayerLeftReason_MIN; const GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::GamePlayerLeftReason_MAX; const int GamePlayerLeftMessage::GamePlayerLeftReason_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int GamePlayerLeftMessage::kGameIdFieldNumber; -const int GamePlayerLeftMessage::kPlayerIdFieldNumber; -const int GamePlayerLeftMessage::kGamePlayerLeftReasonFieldNumber; -#endif // !_MSC_VER - -GamePlayerLeftMessage::GamePlayerLeftMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); - // @@protoc_insertion_point(constructor:GamePlayerLeftMessage) -} - -void GamePlayerLeftMessage::InitAsDefaultInstance() { -} - -GamePlayerLeftMessage::GamePlayerLeftMessage(const GamePlayerLeftMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:GamePlayerLeftMessage) -} - -void GamePlayerLeftMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - gameplayerleftreason_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GamePlayerLeftMessage::~GamePlayerLeftMessage() { - // @@protoc_insertion_point(destructor:GamePlayerLeftMessage) - SharedDtor(); -} - -void GamePlayerLeftMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GamePlayerLeftMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GamePlayerLeftMessage& GamePlayerLeftMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GamePlayerLeftMessage* GamePlayerLeftMessage::default_instance_ = NULL; - -GamePlayerLeftMessage* GamePlayerLeftMessage::New() const { - return new GamePlayerLeftMessage; -} - -void GamePlayerLeftMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, gameplayerleftreason_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool GamePlayerLeftMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:GamePlayerLeftMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (tag == 16) { - 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; - } - if (input->ExpectTag(24)) goto parse_gamePlayerLeftReason; - break; - } - - // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; - case 3: { - if (tag == 24) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void GamePlayerLeftMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GamePlayerLeftMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:GamePlayerLeftMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:GameSpectatorJoinedMessage) -} - -void GameSpectatorJoinedMessage::InitAsDefaultInstance() { -} - -GameSpectatorJoinedMessage::GameSpectatorJoinedMessage(const GameSpectatorJoinedMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:GameSpectatorJoinedMessage) -} - -void GameSpectatorJoinedMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameSpectatorJoinedMessage::~GameSpectatorJoinedMessage() { - // @@protoc_insertion_point(destructor:GameSpectatorJoinedMessage) - SharedDtor(); -} - -void GameSpectatorJoinedMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameSpectatorJoinedMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameSpectatorJoinedMessage& GameSpectatorJoinedMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameSpectatorJoinedMessage* GameSpectatorJoinedMessage::default_instance_ = NULL; - -GameSpectatorJoinedMessage* GameSpectatorJoinedMessage::New() const { - return new GameSpectatorJoinedMessage; -} - -void GameSpectatorJoinedMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, playerid_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool GameSpectatorJoinedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:GameSpectatorJoinedMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (tag == 16) { - 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; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void GameSpectatorJoinedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameSpectatorJoinedMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:GameSpectatorJoinedMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:GameSpectatorLeftMessage) -} - -void GameSpectatorLeftMessage::InitAsDefaultInstance() { -} - -GameSpectatorLeftMessage::GameSpectatorLeftMessage(const GameSpectatorLeftMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:GameSpectatorLeftMessage) -} - -void GameSpectatorLeftMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - gamespectatorleftreason_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameSpectatorLeftMessage::~GameSpectatorLeftMessage() { - // @@protoc_insertion_point(destructor:GameSpectatorLeftMessage) - SharedDtor(); -} - -void GameSpectatorLeftMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameSpectatorLeftMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameSpectatorLeftMessage& GameSpectatorLeftMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameSpectatorLeftMessage* GameSpectatorLeftMessage::default_instance_ = NULL; - -GameSpectatorLeftMessage* GameSpectatorLeftMessage::New() const { - return new GameSpectatorLeftMessage; -} - -void GameSpectatorLeftMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, gamespectatorleftreason_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool GameSpectatorLeftMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:GameSpectatorLeftMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (tag == 16) { - 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; - } - if (input->ExpectTag(24)) goto parse_gameSpectatorLeftReason; - break; - } - - // required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; - case 3: { - if (tag == 24) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void GameSpectatorLeftMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameSpectatorLeftMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:GameSpectatorLeftMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:GameAdminChangedMessage) -} - -void GameAdminChangedMessage::InitAsDefaultInstance() { -} - -GameAdminChangedMessage::GameAdminChangedMessage(const GameAdminChangedMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:GameAdminChangedMessage) -} - -void GameAdminChangedMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - newadminplayerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameAdminChangedMessage::~GameAdminChangedMessage() { - // @@protoc_insertion_point(destructor:GameAdminChangedMessage) - SharedDtor(); -} - -void GameAdminChangedMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameAdminChangedMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameAdminChangedMessage& GameAdminChangedMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameAdminChangedMessage* GameAdminChangedMessage::default_instance_ = NULL; - -GameAdminChangedMessage* GameAdminChangedMessage::New() const { - return new GameAdminChangedMessage; -} - -void GameAdminChangedMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, newadminplayerid_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool GameAdminChangedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:GameAdminChangedMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_newAdminPlayerId; - break; - } - - // required uint32 newAdminPlayerId = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void GameAdminChangedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameAdminChangedMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:GameAdminChangedMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string GameAdminChangedMessage::GetTypeName() const { - return "GameAdminChangedMessage"; -} - - -// =================================================================== - +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 bool RemovedFromGameMessage_RemovedFromGameReason_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -10930,7 +2035,7 @@ bool RemovedFromGameMessage_RemovedFromGameReason_IsValid(int value) { } } -#ifndef _MSC_VER +#if !defined(_MSC_VER) || _MSC_VER >= 1900 const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::removedOnRequest; const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::kickedFromGame; const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::gameIsFull; @@ -10941,1196 +2046,9 @@ const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::gameC const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::RemovedFromGameReason_MIN; const RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::RemovedFromGameReason_MAX; const int RemovedFromGameMessage::RemovedFromGameReason_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int RemovedFromGameMessage::kGameIdFieldNumber; -const int RemovedFromGameMessage::kRemovedFromGameReasonFieldNumber; -#endif // !_MSC_VER - -RemovedFromGameMessage::RemovedFromGameMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); - // @@protoc_insertion_point(constructor:RemovedFromGameMessage) -} - -void RemovedFromGameMessage::InitAsDefaultInstance() { -} - -RemovedFromGameMessage::RemovedFromGameMessage(const RemovedFromGameMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:RemovedFromGameMessage) -} - -void RemovedFromGameMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - removedfromgamereason_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -RemovedFromGameMessage::~RemovedFromGameMessage() { - // @@protoc_insertion_point(destructor:RemovedFromGameMessage) - SharedDtor(); -} - -void RemovedFromGameMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void RemovedFromGameMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const RemovedFromGameMessage& RemovedFromGameMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -RemovedFromGameMessage* RemovedFromGameMessage::default_instance_ = NULL; - -RemovedFromGameMessage* RemovedFromGameMessage::New() const { - return new RemovedFromGameMessage; -} - -void RemovedFromGameMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, removedfromgamereason_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool RemovedFromGameMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:RemovedFromGameMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_removedFromGameReason; - break; - } - - // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; - case 2: { - if (tag == 16) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void RemovedFromGameMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:RemovedFromGameMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:RemovedFromGameMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:KickPlayerRequestMessage) -} - -void KickPlayerRequestMessage::InitAsDefaultInstance() { -} - -KickPlayerRequestMessage::KickPlayerRequestMessage(const KickPlayerRequestMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:KickPlayerRequestMessage) -} - -void KickPlayerRequestMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -KickPlayerRequestMessage::~KickPlayerRequestMessage() { - // @@protoc_insertion_point(destructor:KickPlayerRequestMessage) - SharedDtor(); -} - -void KickPlayerRequestMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void KickPlayerRequestMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const KickPlayerRequestMessage& KickPlayerRequestMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -KickPlayerRequestMessage* KickPlayerRequestMessage::default_instance_ = NULL; - -KickPlayerRequestMessage* KickPlayerRequestMessage::New() const { - return new KickPlayerRequestMessage; -} - -void KickPlayerRequestMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, playerid_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool KickPlayerRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:KickPlayerRequestMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (tag == 16) { - 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; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void KickPlayerRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:KickPlayerRequestMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:KickPlayerRequestMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:LeaveGameRequestMessage) -} - -void LeaveGameRequestMessage::InitAsDefaultInstance() { -} - -LeaveGameRequestMessage::LeaveGameRequestMessage(const LeaveGameRequestMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:LeaveGameRequestMessage) -} - -void LeaveGameRequestMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -LeaveGameRequestMessage::~LeaveGameRequestMessage() { - // @@protoc_insertion_point(destructor:LeaveGameRequestMessage) - SharedDtor(); -} - -void LeaveGameRequestMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void LeaveGameRequestMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const LeaveGameRequestMessage& LeaveGameRequestMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -LeaveGameRequestMessage* LeaveGameRequestMessage::default_instance_ = NULL; - -LeaveGameRequestMessage* LeaveGameRequestMessage::New() const { - return new LeaveGameRequestMessage; -} - -void LeaveGameRequestMessage::Clear() { - gameid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool LeaveGameRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:LeaveGameRequestMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void LeaveGameRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:LeaveGameRequestMessage) - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:LeaveGameRequestMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:InvitePlayerToGameMessage) -} - -void InvitePlayerToGameMessage::InitAsDefaultInstance() { -} - -InvitePlayerToGameMessage::InvitePlayerToGameMessage(const InvitePlayerToGameMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:InvitePlayerToGameMessage) -} - -void InvitePlayerToGameMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -InvitePlayerToGameMessage::~InvitePlayerToGameMessage() { - // @@protoc_insertion_point(destructor:InvitePlayerToGameMessage) - SharedDtor(); -} - -void InvitePlayerToGameMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void InvitePlayerToGameMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const InvitePlayerToGameMessage& InvitePlayerToGameMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -InvitePlayerToGameMessage* InvitePlayerToGameMessage::default_instance_ = NULL; - -InvitePlayerToGameMessage* InvitePlayerToGameMessage::New() const { - return new InvitePlayerToGameMessage; -} - -void InvitePlayerToGameMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, playerid_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool InvitePlayerToGameMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:InvitePlayerToGameMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (tag == 16) { - 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; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void InvitePlayerToGameMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:InvitePlayerToGameMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:InvitePlayerToGameMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:InviteNotifyMessage) -} - -void InviteNotifyMessage::InitAsDefaultInstance() { -} - -InviteNotifyMessage::InviteNotifyMessage(const InviteNotifyMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:InviteNotifyMessage) -} - -void InviteNotifyMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playeridwho_ = 0u; - playeridbywhom_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -InviteNotifyMessage::~InviteNotifyMessage() { - // @@protoc_insertion_point(destructor:InviteNotifyMessage) - SharedDtor(); -} - -void InviteNotifyMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void InviteNotifyMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const InviteNotifyMessage& InviteNotifyMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -InviteNotifyMessage* InviteNotifyMessage::default_instance_ = NULL; - -InviteNotifyMessage* InviteNotifyMessage::New() const { - return new InviteNotifyMessage; -} - -void InviteNotifyMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, playeridbywhom_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool InviteNotifyMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:InviteNotifyMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_playerIdWho; - break; - } - - // required uint32 playerIdWho = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectTag(24)) goto parse_playerIdByWhom; - break; - } - - // required uint32 playerIdByWhom = 3; - case 3: { - if (tag == 24) { - 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_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void InviteNotifyMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:InviteNotifyMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:InviteNotifyMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string InviteNotifyMessage::GetTypeName() const { - return "InviteNotifyMessage"; -} - - -// =================================================================== - +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 bool RejectGameInvitationMessage_RejectGameInvReason_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: return true; @@ -12139,538 +2057,15 @@ bool RejectGameInvitationMessage_RejectGameInvReason_IsValid(int value) { } } -#ifndef _MSC_VER +#if !defined(_MSC_VER) || _MSC_VER >= 1900 const RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage::rejectReasonNo; const RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage::rejectReasonBusy; const RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage::RejectGameInvReason_MIN; const RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage::RejectGameInvReason_MAX; const int RejectGameInvitationMessage::RejectGameInvReason_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int RejectGameInvitationMessage::kGameIdFieldNumber; -const int RejectGameInvitationMessage::kMyRejectReasonFieldNumber; -#endif // !_MSC_VER - -RejectGameInvitationMessage::RejectGameInvitationMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); - // @@protoc_insertion_point(constructor:RejectGameInvitationMessage) -} - -void RejectGameInvitationMessage::InitAsDefaultInstance() { -} - -RejectGameInvitationMessage::RejectGameInvitationMessage(const RejectGameInvitationMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:RejectGameInvitationMessage) -} - -void RejectGameInvitationMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - myrejectreason_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -RejectGameInvitationMessage::~RejectGameInvitationMessage() { - // @@protoc_insertion_point(destructor:RejectGameInvitationMessage) - SharedDtor(); -} - -void RejectGameInvitationMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void RejectGameInvitationMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const RejectGameInvitationMessage& RejectGameInvitationMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -RejectGameInvitationMessage* RejectGameInvitationMessage::default_instance_ = NULL; - -RejectGameInvitationMessage* RejectGameInvitationMessage::New() const { - return new RejectGameInvitationMessage; -} - -void RejectGameInvitationMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, myrejectreason_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool RejectGameInvitationMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:RejectGameInvitationMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_myRejectReason; - break; - } - - // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; - case 2: { - if (tag == 16) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void RejectGameInvitationMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:RejectGameInvitationMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:RejectGameInvitationMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:RejectInvNotifyMessage) -} - -void RejectInvNotifyMessage::InitAsDefaultInstance() { -} - -RejectInvNotifyMessage::RejectInvNotifyMessage(const RejectInvNotifyMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:RejectInvNotifyMessage) -} - -void RejectInvNotifyMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - playerrejectreason_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -RejectInvNotifyMessage::~RejectInvNotifyMessage() { - // @@protoc_insertion_point(destructor:RejectInvNotifyMessage) - SharedDtor(); -} - -void RejectInvNotifyMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void RejectInvNotifyMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const RejectInvNotifyMessage& RejectInvNotifyMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -RejectInvNotifyMessage* RejectInvNotifyMessage::default_instance_ = NULL; - -RejectInvNotifyMessage* RejectInvNotifyMessage::New() const { - return new RejectInvNotifyMessage; -} - -void RejectInvNotifyMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, playerrejectreason_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool RejectInvNotifyMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:RejectInvNotifyMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (tag == 16) { - 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; - } - if (input->ExpectTag(24)) goto parse_playerRejectReason; - break; - } - - // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; - case 3: { - if (tag == 24) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void RejectInvNotifyMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:RejectInvNotifyMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:RejectInvNotifyMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string RejectInvNotifyMessage::GetTypeName() const { - return "RejectInvNotifyMessage"; -} - - -// =================================================================== - +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 bool StartEventMessage_StartEventType_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: return true; @@ -12679,2595 +2074,15 @@ bool StartEventMessage_StartEventType_IsValid(int value) { } } -#ifndef _MSC_VER +#if !defined(_MSC_VER) || _MSC_VER >= 1900 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 // _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(); - // @@protoc_insertion_point(constructor:StartEventMessage) -} - -void StartEventMessage::InitAsDefaultInstance() { -} - -StartEventMessage::StartEventMessage(const StartEventMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:StartEventMessage) -} - -void StartEventMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - starteventtype_ = 0; - fillwithcomputerplayers_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -StartEventMessage::~StartEventMessage() { - // @@protoc_insertion_point(destructor:StartEventMessage) - SharedDtor(); -} - -void StartEventMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void StartEventMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const StartEventMessage& StartEventMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -StartEventMessage* StartEventMessage::default_instance_ = NULL; - -StartEventMessage* StartEventMessage::New() const { - return new StartEventMessage; -} - -void StartEventMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, fillwithcomputerplayers_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool StartEventMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:StartEventMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_startEventType; - break; - } - - // required .StartEventMessage.StartEventType startEventType = 2; - case 2: { - if (tag == 16) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_fillWithComputerPlayers; - break; - } - - // optional bool fillWithComputerPlayers = 3; - case 3: { - if (tag == 24) { - parse_fillWithComputerPlayers: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &fillwithcomputerplayers_))); - set_has_fillwithcomputerplayers(); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void StartEventMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:StartEventMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:StartEventMessage) -} - -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; - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:StartEventAckMessage) -} - -void StartEventAckMessage::InitAsDefaultInstance() { -} - -StartEventAckMessage::StartEventAckMessage(const StartEventAckMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:StartEventAckMessage) -} - -void StartEventAckMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -StartEventAckMessage::~StartEventAckMessage() { - // @@protoc_insertion_point(destructor:StartEventAckMessage) - SharedDtor(); -} - -void StartEventAckMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void StartEventAckMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const StartEventAckMessage& StartEventAckMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -StartEventAckMessage* StartEventAckMessage::default_instance_ = NULL; - -StartEventAckMessage* StartEventAckMessage::New() const { - return new StartEventAckMessage; -} - -void StartEventAckMessage::Clear() { - gameid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool StartEventAckMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:StartEventAckMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void StartEventAckMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:StartEventAckMessage) - // required uint32 gameId = 1; - if (has_gameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->gameid(), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:StartEventAckMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:GameStartInitialMessage) -} - -void GameStartInitialMessage::InitAsDefaultInstance() { -} - -GameStartInitialMessage::GameStartInitialMessage(const GameStartInitialMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:GameStartInitialMessage) -} - -void GameStartInitialMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - startdealerplayerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameStartInitialMessage::~GameStartInitialMessage() { - // @@protoc_insertion_point(destructor:GameStartInitialMessage) - SharedDtor(); -} - -void GameStartInitialMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameStartInitialMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameStartInitialMessage& GameStartInitialMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameStartInitialMessage* GameStartInitialMessage::default_instance_ = NULL; - -GameStartInitialMessage* GameStartInitialMessage::New() const { - return new GameStartInitialMessage; -} - -void GameStartInitialMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, startdealerplayerid_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - playerseats_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool GameStartInitialMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:GameStartInitialMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_startDealerPlayerId; - break; - } - - // required uint32 startDealerPlayerId = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectTag(26)) goto parse_playerSeats; - break; - } - - // repeated uint32 playerSeats = 3 [packed = true]; - case 3: { - if (tag == 26) { - parse_playerSeats: - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, this->mutable_playerseats()))); - } else if (tag == 24) { - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - 1, 26, input, this->mutable_playerseats()))); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void GameStartInitialMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameStartInitialMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:GameStartInitialMessage) -} - -int GameStartInitialMessage::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 gameId = 1; - if (has_gameid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->gameid()); - } - - // required uint32 startDealerPlayerId = 2; - if (has_startdealerplayerid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->startdealerplayerid()); - } - - } - // repeated uint32 playerSeats = 3 [packed = true]; - { - int data_size = 0; - for (int i = 0; i < this->playerseats_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt32Size(this->playerseats(i)); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _playerseats_cached_byte_size_ = data_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - total_size += data_size; - } - - total_size += unknown_fields().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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:GameStartRejoinMessage.RejoinPlayerData) -} - -void GameStartRejoinMessage_RejoinPlayerData::InitAsDefaultInstance() { -} - -GameStartRejoinMessage_RejoinPlayerData::GameStartRejoinMessage_RejoinPlayerData(const GameStartRejoinMessage_RejoinPlayerData& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:GameStartRejoinMessage.RejoinPlayerData) -} - -void GameStartRejoinMessage_RejoinPlayerData::SharedCtor() { - _cached_size_ = 0; - playerid_ = 0u; - playermoney_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameStartRejoinMessage_RejoinPlayerData::~GameStartRejoinMessage_RejoinPlayerData() { - // @@protoc_insertion_point(destructor:GameStartRejoinMessage.RejoinPlayerData) - SharedDtor(); -} - -void GameStartRejoinMessage_RejoinPlayerData::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameStartRejoinMessage_RejoinPlayerData::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameStartRejoinMessage_RejoinPlayerData& GameStartRejoinMessage_RejoinPlayerData::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameStartRejoinMessage_RejoinPlayerData* GameStartRejoinMessage_RejoinPlayerData::default_instance_ = NULL; - -GameStartRejoinMessage_RejoinPlayerData* GameStartRejoinMessage_RejoinPlayerData::New() const { - return new GameStartRejoinMessage_RejoinPlayerData; -} - -void GameStartRejoinMessage_RejoinPlayerData::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(playerid_, playermoney_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool GameStartRejoinMessage_RejoinPlayerData::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:GameStartRejoinMessage.RejoinPlayerData) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 playerId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_playerMoney; - break; - } - - // required uint32 playerMoney = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void GameStartRejoinMessage_RejoinPlayerData::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameStartRejoinMessage.RejoinPlayerData) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:GameStartRejoinMessage.RejoinPlayerData) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:GameStartRejoinMessage) -} - -void GameStartRejoinMessage::InitAsDefaultInstance() { -} - -GameStartRejoinMessage::GameStartRejoinMessage(const GameStartRejoinMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:GameStartRejoinMessage) -} - -void GameStartRejoinMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - startdealerplayerid_ = 0u; - handnum_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -GameStartRejoinMessage::~GameStartRejoinMessage() { - // @@protoc_insertion_point(destructor:GameStartRejoinMessage) - SharedDtor(); -} - -void GameStartRejoinMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void GameStartRejoinMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const GameStartRejoinMessage& GameStartRejoinMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -GameStartRejoinMessage* GameStartRejoinMessage::default_instance_ = NULL; - -GameStartRejoinMessage* GameStartRejoinMessage::New() const { - return new GameStartRejoinMessage; -} - -void GameStartRejoinMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - if (_has_bits_[0 / 32] & 7) { - ZR_(gameid_, startdealerplayerid_); - handnum_ = 0u; - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - rejoinplayerdata_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool GameStartRejoinMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:GameStartRejoinMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_startDealerPlayerId; - break; - } - - // required uint32 startDealerPlayerId = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectTag(24)) goto parse_handNum; - break; - } - - // required uint32 handNum = 3; - case 3: { - if (tag == 24) { - 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_unusual; - } - if (input->ExpectTag(34)) goto parse_rejoinPlayerData; - break; - } - - // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - case 4: { - if (tag == 34) { - parse_rejoinPlayerData: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_rejoinplayerdata())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_rejoinPlayerData; - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void GameStartRejoinMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:GameStartRejoinMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:GameStartRejoinMessage) -} - -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)); - } - - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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; - - if (!::google::protobuf::internal::AllAreInitialized(this->rejoinplayerdata())) 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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:HandStartMessage.PlainCards) -} - -void HandStartMessage_PlainCards::InitAsDefaultInstance() { -} - -HandStartMessage_PlainCards::HandStartMessage_PlainCards(const HandStartMessage_PlainCards& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:HandStartMessage.PlainCards) -} - -void HandStartMessage_PlainCards::SharedCtor() { - _cached_size_ = 0; - plaincard1_ = 0u; - plaincard2_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -HandStartMessage_PlainCards::~HandStartMessage_PlainCards() { - // @@protoc_insertion_point(destructor:HandStartMessage.PlainCards) - SharedDtor(); -} - -void HandStartMessage_PlainCards::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void HandStartMessage_PlainCards::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const HandStartMessage_PlainCards& HandStartMessage_PlainCards::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -HandStartMessage_PlainCards* HandStartMessage_PlainCards::default_instance_ = NULL; - -HandStartMessage_PlainCards* HandStartMessage_PlainCards::New() const { - return new HandStartMessage_PlainCards; -} - -void HandStartMessage_PlainCards::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(plaincard1_, plaincard2_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool HandStartMessage_PlainCards::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:HandStartMessage.PlainCards) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 plainCard1 = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &plaincard1_))); - set_has_plaincard1(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_plainCard2; - break; - } - - // required uint32 plainCard2 = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void HandStartMessage_PlainCards::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:HandStartMessage.PlainCards) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:HandStartMessage.PlainCards) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:HandStartMessage) -} - -void HandStartMessage::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - plaincards_ = const_cast< ::HandStartMessage_PlainCards*>( - ::HandStartMessage_PlainCards::internal_default_instance()); -#else - plaincards_ = const_cast< ::HandStartMessage_PlainCards*>(&::HandStartMessage_PlainCards::default_instance()); -#endif -} - -HandStartMessage::HandStartMessage(const HandStartMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:HandStartMessage) -} - -void HandStartMessage::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - gameid_ = 0u; - plaincards_ = NULL; - encryptedcards_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - smallblind_ = 0u; - dealerplayerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -HandStartMessage::~HandStartMessage() { - // @@protoc_insertion_point(destructor:HandStartMessage) - SharedDtor(); -} - -void HandStartMessage::SharedDtor() { - if (encryptedcards_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete encryptedcards_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete plaincards_; - } -} - -void HandStartMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const HandStartMessage& HandStartMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -HandStartMessage* HandStartMessage::default_instance_ = NULL; - -HandStartMessage* HandStartMessage::New() const { - return new HandStartMessage; -} - -void HandStartMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - if (_has_bits_[0 / 32] & 47) { - ZR_(gameid_, smallblind_); - if (has_plaincards()) { - if (plaincards_ != NULL) plaincards_->::HandStartMessage_PlainCards::Clear(); - } - if (has_encryptedcards()) { - if (encryptedcards_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - encryptedcards_->clear(); - } - } - dealerplayerid_ = 0u; - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - seatstates_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool HandStartMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:HandStartMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_plainCards; - break; - } - - // optional .HandStartMessage.PlainCards plainCards = 2; - case 2: { - if (tag == 18) { - parse_plainCards: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_plaincards())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(26)) goto parse_encryptedCards; - break; - } - - // optional bytes encryptedCards = 3; - case 3: { - if (tag == 26) { - parse_encryptedCards: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_encryptedcards())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_smallBlind; - break; - } - - // required uint32 smallBlind = 4; - case 4: { - if (tag == 32) { - 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_unusual; - } - if (input->ExpectTag(40)) goto parse_seatStates; - break; - } - - // repeated .NetPlayerState seatStates = 5; - case 5: { - if (tag == 40) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else if (tag == 42) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedEnumNoInline( - input, - &::NetPlayerState_IsValid, - this->mutable_seatstates()))); - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_seatStates; - if (input->ExpectTag(48)) goto parse_dealerPlayerId; - break; - } - - // optional uint32 dealerPlayerId = 6; - case 6: { - if (tag == 48) { - 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_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void HandStartMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:HandStartMessage) - // 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::WriteBytesMaybeAliased( - 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:HandStartMessage) -} - -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; - } - - total_size += unknown_fields().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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:PlayersTurnMessage) -} - -void PlayersTurnMessage::InitAsDefaultInstance() { -} - -PlayersTurnMessage::PlayersTurnMessage(const PlayersTurnMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:PlayersTurnMessage) -} - -void PlayersTurnMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - gamestate_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -PlayersTurnMessage::~PlayersTurnMessage() { - // @@protoc_insertion_point(destructor:PlayersTurnMessage) - SharedDtor(); -} - -void PlayersTurnMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void PlayersTurnMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const PlayersTurnMessage& PlayersTurnMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -PlayersTurnMessage* PlayersTurnMessage::default_instance_ = NULL; - -PlayersTurnMessage* PlayersTurnMessage::New() const { - return new PlayersTurnMessage; -} - -void PlayersTurnMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, gamestate_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool PlayersTurnMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:PlayersTurnMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (tag == 16) { - 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; - } - if (input->ExpectTag(24)) goto parse_gameState; - break; - } - - // required .NetGameState gameState = 3; - case 3: { - if (tag == 24) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void PlayersTurnMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:PlayersTurnMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:PlayersTurnMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:MyActionRequestMessage) -} - -void MyActionRequestMessage::InitAsDefaultInstance() { -} - -MyActionRequestMessage::MyActionRequestMessage(const MyActionRequestMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:MyActionRequestMessage) -} - -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() { - // @@protoc_insertion_point(destructor:MyActionRequestMessage) - SharedDtor(); -} - -void MyActionRequestMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void MyActionRequestMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const MyActionRequestMessage& MyActionRequestMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -MyActionRequestMessage* MyActionRequestMessage::default_instance_ = NULL; - -MyActionRequestMessage* MyActionRequestMessage::New() const { - return new MyActionRequestMessage; -} - -void MyActionRequestMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - if (_has_bits_[0 / 32] & 31) { - ZR_(gameid_, myrelativebet_); - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool MyActionRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:MyActionRequestMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_handNum; - break; - } - - // required uint32 handNum = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectTag(24)) goto parse_gameState; - break; - } - - // required .NetGameState gameState = 3; - case 3: { - if (tag == 24) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_myAction; - break; - } - - // required .NetPlayerAction myAction = 4; - case 4: { - if (tag == 32) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_myRelativeBet; - break; - } - - // required uint32 myRelativeBet = 5; - case 5: { - if (tag == 40) { - 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_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void MyActionRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:MyActionRequestMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:MyActionRequestMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string MyActionRequestMessage::GetTypeName() const { - return "MyActionRequestMessage"; -} - - -// =================================================================== - +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 bool YourActionRejectedMessage_RejectionReason_IsValid(int value) { - switch(value) { + switch (value) { case 1: case 2: case 3: @@ -15277,3704 +2092,16 @@ bool YourActionRejectedMessage_RejectionReason_IsValid(int value) { } } -#ifndef _MSC_VER +#if !defined(_MSC_VER) || _MSC_VER >= 1900 const YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::rejectedInvalidGameState; const YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::rejectedNotYourTurn; const YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::rejectedActionNotAllowed; const YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::RejectionReason_MIN; const YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::RejectionReason_MAX; const int YourActionRejectedMessage::RejectionReason_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int YourActionRejectedMessage::kGameIdFieldNumber; -const int YourActionRejectedMessage::kGameStateFieldNumber; -const int YourActionRejectedMessage::kYourActionFieldNumber; -const int YourActionRejectedMessage::kYourRelativeBetFieldNumber; -const int YourActionRejectedMessage::kRejectionReasonFieldNumber; -#endif // !_MSC_VER - -YourActionRejectedMessage::YourActionRejectedMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); - // @@protoc_insertion_point(constructor:YourActionRejectedMessage) -} - -void YourActionRejectedMessage::InitAsDefaultInstance() { -} - -YourActionRejectedMessage::YourActionRejectedMessage(const YourActionRejectedMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:YourActionRejectedMessage) -} - -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() { - // @@protoc_insertion_point(destructor:YourActionRejectedMessage) - SharedDtor(); -} - -void YourActionRejectedMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void YourActionRejectedMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const YourActionRejectedMessage& YourActionRejectedMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -YourActionRejectedMessage* YourActionRejectedMessage::default_instance_ = NULL; - -YourActionRejectedMessage* YourActionRejectedMessage::New() const { - return new YourActionRejectedMessage; -} - -void YourActionRejectedMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - if (_has_bits_[0 / 32] & 31) { - ZR_(gameid_, yourrelativebet_); - rejectionreason_ = 1; - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool YourActionRejectedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:YourActionRejectedMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_gameState; - break; - } - - // required .NetGameState gameState = 2; - case 2: { - if (tag == 16) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(24)) goto parse_yourAction; - break; - } - - // required .NetPlayerAction yourAction = 3; - case 3: { - if (tag == 24) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_yourRelativeBet; - break; - } - - // required uint32 yourRelativeBet = 4; - case 4: { - if (tag == 32) { - 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_unusual; - } - if (input->ExpectTag(40)) goto parse_rejectionReason; - break; - } - - // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; - case 5: { - if (tag == 40) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void YourActionRejectedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:YourActionRejectedMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:YourActionRejectedMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:PlayersActionDoneMessage) -} - -void PlayersActionDoneMessage::InitAsDefaultInstance() { -} - -PlayersActionDoneMessage::PlayersActionDoneMessage(const PlayersActionDoneMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:PlayersActionDoneMessage) -} - -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() { - // @@protoc_insertion_point(destructor:PlayersActionDoneMessage) - SharedDtor(); -} - -void PlayersActionDoneMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void PlayersActionDoneMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const PlayersActionDoneMessage& PlayersActionDoneMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -PlayersActionDoneMessage* PlayersActionDoneMessage::default_instance_ = NULL; - -PlayersActionDoneMessage* PlayersActionDoneMessage::New() const { - return new PlayersActionDoneMessage; -} - -void PlayersActionDoneMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - if (_has_bits_[0 / 32] & 255) { - ZR_(gameid_, minimumraise_); - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool PlayersActionDoneMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:PlayersActionDoneMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (tag == 16) { - 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; - } - if (input->ExpectTag(24)) goto parse_gameState; - break; - } - - // required .NetGameState gameState = 3; - case 3: { - if (tag == 24) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(32)) goto parse_playerAction; - break; - } - - // required .NetPlayerAction playerAction = 4; - case 4: { - if (tag == 32) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(40)) goto parse_totalPlayerBet; - break; - } - - // required uint32 totalPlayerBet = 5; - case 5: { - if (tag == 40) { - 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_unusual; - } - if (input->ExpectTag(48)) goto parse_playerMoney; - break; - } - - // required uint32 playerMoney = 6; - case 6: { - if (tag == 48) { - 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_unusual; - } - if (input->ExpectTag(56)) goto parse_highestSet; - break; - } - - // required uint32 highestSet = 7; - case 7: { - if (tag == 56) { - 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_unusual; - } - if (input->ExpectTag(64)) goto parse_minimumRaise; - break; - } - - // required uint32 minimumRaise = 8; - case 8: { - if (tag == 64) { - 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_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void PlayersActionDoneMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:PlayersActionDoneMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:PlayersActionDoneMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:DealFlopCardsMessage) -} - -void DealFlopCardsMessage::InitAsDefaultInstance() { -} - -DealFlopCardsMessage::DealFlopCardsMessage(const DealFlopCardsMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:DealFlopCardsMessage) -} - -void DealFlopCardsMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - flopcard1_ = 0u; - flopcard2_ = 0u; - flopcard3_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -DealFlopCardsMessage::~DealFlopCardsMessage() { - // @@protoc_insertion_point(destructor:DealFlopCardsMessage) - SharedDtor(); -} - -void DealFlopCardsMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void DealFlopCardsMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const DealFlopCardsMessage& DealFlopCardsMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -DealFlopCardsMessage* DealFlopCardsMessage::default_instance_ = NULL; - -DealFlopCardsMessage* DealFlopCardsMessage::New() const { - return new DealFlopCardsMessage; -} - -void DealFlopCardsMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, flopcard3_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool DealFlopCardsMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:DealFlopCardsMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_flopCard1; - break; - } - - // required uint32 flopCard1 = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectTag(24)) goto parse_flopCard2; - break; - } - - // required uint32 flopCard2 = 3; - case 3: { - if (tag == 24) { - 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_unusual; - } - if (input->ExpectTag(32)) goto parse_flopCard3; - break; - } - - // required uint32 flopCard3 = 4; - case 4: { - if (tag == 32) { - 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_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void DealFlopCardsMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:DealFlopCardsMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:DealFlopCardsMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:DealTurnCardMessage) -} - -void DealTurnCardMessage::InitAsDefaultInstance() { -} - -DealTurnCardMessage::DealTurnCardMessage(const DealTurnCardMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:DealTurnCardMessage) -} - -void DealTurnCardMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - turncard_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -DealTurnCardMessage::~DealTurnCardMessage() { - // @@protoc_insertion_point(destructor:DealTurnCardMessage) - SharedDtor(); -} - -void DealTurnCardMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void DealTurnCardMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const DealTurnCardMessage& DealTurnCardMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -DealTurnCardMessage* DealTurnCardMessage::default_instance_ = NULL; - -DealTurnCardMessage* DealTurnCardMessage::New() const { - return new DealTurnCardMessage; -} - -void DealTurnCardMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, turncard_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool DealTurnCardMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:DealTurnCardMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_turnCard; - break; - } - - // required uint32 turnCard = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void DealTurnCardMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:DealTurnCardMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:DealTurnCardMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:DealRiverCardMessage) -} - -void DealRiverCardMessage::InitAsDefaultInstance() { -} - -DealRiverCardMessage::DealRiverCardMessage(const DealRiverCardMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:DealRiverCardMessage) -} - -void DealRiverCardMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - rivercard_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -DealRiverCardMessage::~DealRiverCardMessage() { - // @@protoc_insertion_point(destructor:DealRiverCardMessage) - SharedDtor(); -} - -void DealRiverCardMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void DealRiverCardMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const DealRiverCardMessage& DealRiverCardMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -DealRiverCardMessage* DealRiverCardMessage::default_instance_ = NULL; - -DealRiverCardMessage* DealRiverCardMessage::New() const { - return new DealRiverCardMessage; -} - -void DealRiverCardMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, rivercard_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool DealRiverCardMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:DealRiverCardMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_riverCard; - break; - } - - // required uint32 riverCard = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void DealRiverCardMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:DealRiverCardMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:DealRiverCardMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:AllInShowCardsMessage.PlayerAllIn) -} - -void AllInShowCardsMessage_PlayerAllIn::InitAsDefaultInstance() { -} - -AllInShowCardsMessage_PlayerAllIn::AllInShowCardsMessage_PlayerAllIn(const AllInShowCardsMessage_PlayerAllIn& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:AllInShowCardsMessage.PlayerAllIn) -} - -void AllInShowCardsMessage_PlayerAllIn::SharedCtor() { - _cached_size_ = 0; - playerid_ = 0u; - allincard1_ = 0u; - allincard2_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AllInShowCardsMessage_PlayerAllIn::~AllInShowCardsMessage_PlayerAllIn() { - // @@protoc_insertion_point(destructor:AllInShowCardsMessage.PlayerAllIn) - SharedDtor(); -} - -void AllInShowCardsMessage_PlayerAllIn::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AllInShowCardsMessage_PlayerAllIn::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AllInShowCardsMessage_PlayerAllIn& AllInShowCardsMessage_PlayerAllIn::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AllInShowCardsMessage_PlayerAllIn* AllInShowCardsMessage_PlayerAllIn::default_instance_ = NULL; - -AllInShowCardsMessage_PlayerAllIn* AllInShowCardsMessage_PlayerAllIn::New() const { - return new AllInShowCardsMessage_PlayerAllIn; -} - -void AllInShowCardsMessage_PlayerAllIn::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(playerid_, allincard2_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool AllInShowCardsMessage_PlayerAllIn::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:AllInShowCardsMessage.PlayerAllIn) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 playerId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &playerid_))); - set_has_playerid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_allInCard1; - break; - } - - // required uint32 allInCard1 = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectTag(24)) goto parse_allInCard2; - break; - } - - // required uint32 allInCard2 = 3; - case 3: { - if (tag == 24) { - 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_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void AllInShowCardsMessage_PlayerAllIn::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AllInShowCardsMessage.PlayerAllIn) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:AllInShowCardsMessage.PlayerAllIn) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:AllInShowCardsMessage) -} - -void AllInShowCardsMessage::InitAsDefaultInstance() { -} - -AllInShowCardsMessage::AllInShowCardsMessage(const AllInShowCardsMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:AllInShowCardsMessage) -} - -void AllInShowCardsMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AllInShowCardsMessage::~AllInShowCardsMessage() { - // @@protoc_insertion_point(destructor:AllInShowCardsMessage) - SharedDtor(); -} - -void AllInShowCardsMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AllInShowCardsMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AllInShowCardsMessage& AllInShowCardsMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AllInShowCardsMessage* AllInShowCardsMessage::default_instance_ = NULL; - -AllInShowCardsMessage* AllInShowCardsMessage::New() const { - return new AllInShowCardsMessage; -} - -void AllInShowCardsMessage::Clear() { - gameid_ = 0u; - playersallin_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool AllInShowCardsMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:AllInShowCardsMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_playersAllIn; - break; - } - - // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - case 2: { - if (tag == 18) { - parse_playersAllIn: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_playersallin())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_playersAllIn; - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void AllInShowCardsMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AllInShowCardsMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:AllInShowCardsMessage) -} - -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)); - } - - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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; - - if (!::google::protobuf::internal::AllAreInitialized(this->playersallin())) 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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:EndOfHandShowCardsMessage) -} - -void EndOfHandShowCardsMessage::InitAsDefaultInstance() { -} - -EndOfHandShowCardsMessage::EndOfHandShowCardsMessage(const EndOfHandShowCardsMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:EndOfHandShowCardsMessage) -} - -void EndOfHandShowCardsMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -EndOfHandShowCardsMessage::~EndOfHandShowCardsMessage() { - // @@protoc_insertion_point(destructor:EndOfHandShowCardsMessage) - SharedDtor(); -} - -void EndOfHandShowCardsMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void EndOfHandShowCardsMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const EndOfHandShowCardsMessage& EndOfHandShowCardsMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -EndOfHandShowCardsMessage* EndOfHandShowCardsMessage::default_instance_ = NULL; - -EndOfHandShowCardsMessage* EndOfHandShowCardsMessage::New() const { - return new EndOfHandShowCardsMessage; -} - -void EndOfHandShowCardsMessage::Clear() { - gameid_ = 0u; - playerresults_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool EndOfHandShowCardsMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:EndOfHandShowCardsMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_playerResults; - break; - } - - // repeated .PlayerResult playerResults = 2; - case 2: { - if (tag == 18) { - parse_playerResults: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_playerresults())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_playerResults; - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void EndOfHandShowCardsMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:EndOfHandShowCardsMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:EndOfHandShowCardsMessage) -} - -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)); - } - - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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; - - if (!::google::protobuf::internal::AllAreInitialized(this->playerresults())) 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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:EndOfHandHideCardsMessage) -} - -void EndOfHandHideCardsMessage::InitAsDefaultInstance() { -} - -EndOfHandHideCardsMessage::EndOfHandHideCardsMessage(const EndOfHandHideCardsMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:EndOfHandHideCardsMessage) -} - -void EndOfHandHideCardsMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - moneywon_ = 0u; - playermoney_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -EndOfHandHideCardsMessage::~EndOfHandHideCardsMessage() { - // @@protoc_insertion_point(destructor:EndOfHandHideCardsMessage) - SharedDtor(); -} - -void EndOfHandHideCardsMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void EndOfHandHideCardsMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const EndOfHandHideCardsMessage& EndOfHandHideCardsMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -EndOfHandHideCardsMessage* EndOfHandHideCardsMessage::default_instance_ = NULL; - -EndOfHandHideCardsMessage* EndOfHandHideCardsMessage::New() const { - return new EndOfHandHideCardsMessage; -} - -void EndOfHandHideCardsMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, playermoney_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool EndOfHandHideCardsMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:EndOfHandHideCardsMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (tag == 16) { - 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; - } - if (input->ExpectTag(24)) goto parse_moneyWon; - break; - } - - // required uint32 moneyWon = 3; - case 3: { - if (tag == 24) { - 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_unusual; - } - if (input->ExpectTag(32)) goto parse_playerMoney; - break; - } - - // required uint32 playerMoney = 4; - case 4: { - if (tag == 32) { - 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_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void EndOfHandHideCardsMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:EndOfHandHideCardsMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:EndOfHandHideCardsMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:ShowMyCardsRequestMessage) -} - -void ShowMyCardsRequestMessage::InitAsDefaultInstance() { -} - -ShowMyCardsRequestMessage::ShowMyCardsRequestMessage(const ShowMyCardsRequestMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:ShowMyCardsRequestMessage) -} - -void ShowMyCardsRequestMessage::SharedCtor() { - _cached_size_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ShowMyCardsRequestMessage::~ShowMyCardsRequestMessage() { - // @@protoc_insertion_point(destructor:ShowMyCardsRequestMessage) - SharedDtor(); -} - -void ShowMyCardsRequestMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void ShowMyCardsRequestMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ShowMyCardsRequestMessage& ShowMyCardsRequestMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -ShowMyCardsRequestMessage* ShowMyCardsRequestMessage::default_instance_ = NULL; - -ShowMyCardsRequestMessage* ShowMyCardsRequestMessage::New() const { - return new ShowMyCardsRequestMessage; -} - -void ShowMyCardsRequestMessage::Clear() { - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool ShowMyCardsRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:ShowMyCardsRequestMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void ShowMyCardsRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:ShowMyCardsRequestMessage) - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:ShowMyCardsRequestMessage) -} - -int ShowMyCardsRequestMessage::ByteSize() const { - int total_size = 0; - - total_size += unknown_fields().size(); - - 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); - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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) { - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:AfterHandShowCardsMessage) -} - -void AfterHandShowCardsMessage::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - playerresult_ = const_cast< ::PlayerResult*>( - ::PlayerResult::internal_default_instance()); -#else - playerresult_ = const_cast< ::PlayerResult*>(&::PlayerResult::default_instance()); -#endif -} - -AfterHandShowCardsMessage::AfterHandShowCardsMessage(const AfterHandShowCardsMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:AfterHandShowCardsMessage) -} - -void AfterHandShowCardsMessage::SharedCtor() { - _cached_size_ = 0; - playerresult_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AfterHandShowCardsMessage::~AfterHandShowCardsMessage() { - // @@protoc_insertion_point(destructor:AfterHandShowCardsMessage) - SharedDtor(); -} - -void AfterHandShowCardsMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete playerresult_; - } -} - -void AfterHandShowCardsMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AfterHandShowCardsMessage& AfterHandShowCardsMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AfterHandShowCardsMessage* AfterHandShowCardsMessage::default_instance_ = NULL; - -AfterHandShowCardsMessage* AfterHandShowCardsMessage::New() const { - return new AfterHandShowCardsMessage; -} - -void AfterHandShowCardsMessage::Clear() { - if (has_playerresult()) { - if (playerresult_ != NULL) playerresult_->::PlayerResult::Clear(); - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool AfterHandShowCardsMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:AfterHandShowCardsMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .PlayerResult playerResult = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_playerresult())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void AfterHandShowCardsMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AfterHandShowCardsMessage) - // required .PlayerResult playerResult = 1; - if (has_playerresult()) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 1, this->playerresult(), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:AfterHandShowCardsMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:EndOfGameMessage) -} - -void EndOfGameMessage::InitAsDefaultInstance() { -} - -EndOfGameMessage::EndOfGameMessage(const EndOfGameMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:EndOfGameMessage) -} - -void EndOfGameMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - winnerplayerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -EndOfGameMessage::~EndOfGameMessage() { - // @@protoc_insertion_point(destructor:EndOfGameMessage) - SharedDtor(); -} - -void EndOfGameMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void EndOfGameMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const EndOfGameMessage& EndOfGameMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -EndOfGameMessage* EndOfGameMessage::default_instance_ = NULL; - -EndOfGameMessage* EndOfGameMessage::New() const { - return new EndOfGameMessage; -} - -void EndOfGameMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, winnerplayerid_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool EndOfGameMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:EndOfGameMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_winnerPlayerId; - break; - } - - // required uint32 winnerPlayerId = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void EndOfGameMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:EndOfGameMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:EndOfGameMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:PlayerIdChangedMessage) -} - -void PlayerIdChangedMessage::InitAsDefaultInstance() { -} - -PlayerIdChangedMessage::PlayerIdChangedMessage(const PlayerIdChangedMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:PlayerIdChangedMessage) -} - -void PlayerIdChangedMessage::SharedCtor() { - _cached_size_ = 0; - oldplayerid_ = 0u; - newplayerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -PlayerIdChangedMessage::~PlayerIdChangedMessage() { - // @@protoc_insertion_point(destructor:PlayerIdChangedMessage) - SharedDtor(); -} - -void PlayerIdChangedMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void PlayerIdChangedMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const PlayerIdChangedMessage& PlayerIdChangedMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -PlayerIdChangedMessage* PlayerIdChangedMessage::default_instance_ = NULL; - -PlayerIdChangedMessage* PlayerIdChangedMessage::New() const { - return new PlayerIdChangedMessage; -} - -void PlayerIdChangedMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(oldplayerid_, newplayerid_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool PlayerIdChangedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:PlayerIdChangedMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 oldPlayerId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &oldplayerid_))); - set_has_oldplayerid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_newPlayerId; - break; - } - - // required uint32 newPlayerId = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void PlayerIdChangedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:PlayerIdChangedMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:PlayerIdChangedMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:AskKickPlayerMessage) -} - -void AskKickPlayerMessage::InitAsDefaultInstance() { -} - -AskKickPlayerMessage::AskKickPlayerMessage(const AskKickPlayerMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:AskKickPlayerMessage) -} - -void AskKickPlayerMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AskKickPlayerMessage::~AskKickPlayerMessage() { - // @@protoc_insertion_point(destructor:AskKickPlayerMessage) - SharedDtor(); -} - -void AskKickPlayerMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AskKickPlayerMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AskKickPlayerMessage& AskKickPlayerMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AskKickPlayerMessage* AskKickPlayerMessage::default_instance_ = NULL; - -AskKickPlayerMessage* AskKickPlayerMessage::New() const { - return new AskKickPlayerMessage; -} - -void AskKickPlayerMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, playerid_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool AskKickPlayerMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:AskKickPlayerMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (tag == 16) { - 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; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void AskKickPlayerMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AskKickPlayerMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:AskKickPlayerMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string AskKickPlayerMessage::GetTypeName() const { - return "AskKickPlayerMessage"; -} - - -// =================================================================== - +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 bool AskKickDeniedMessage_KickDeniedReason_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -18986,7 +2113,7 @@ bool AskKickDeniedMessage_KickDeniedReason_IsValid(int value) { } } -#ifndef _MSC_VER +#if !defined(_MSC_VER) || _MSC_VER >= 1900 const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickDeniedInvalidGameState; const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickDeniedNotPossible; const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickDeniedTryAgainLater; @@ -18995,930 +2122,9 @@ const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickDeniedInva const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::KickDeniedReason_MIN; const AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::KickDeniedReason_MAX; const int AskKickDeniedMessage::KickDeniedReason_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int AskKickDeniedMessage::kGameIdFieldNumber; -const int AskKickDeniedMessage::kPlayerIdFieldNumber; -const int AskKickDeniedMessage::kKickDeniedReasonFieldNumber; -#endif // !_MSC_VER - -AskKickDeniedMessage::AskKickDeniedMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); - // @@protoc_insertion_point(constructor:AskKickDeniedMessage) -} - -void AskKickDeniedMessage::InitAsDefaultInstance() { -} - -AskKickDeniedMessage::AskKickDeniedMessage(const AskKickDeniedMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:AskKickDeniedMessage) -} - -void AskKickDeniedMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - kickdeniedreason_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AskKickDeniedMessage::~AskKickDeniedMessage() { - // @@protoc_insertion_point(destructor:AskKickDeniedMessage) - SharedDtor(); -} - -void AskKickDeniedMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AskKickDeniedMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AskKickDeniedMessage& AskKickDeniedMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AskKickDeniedMessage* AskKickDeniedMessage::default_instance_ = NULL; - -AskKickDeniedMessage* AskKickDeniedMessage::New() const { - return new AskKickDeniedMessage; -} - -void AskKickDeniedMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, kickdeniedreason_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool AskKickDeniedMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:AskKickDeniedMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // required uint32 playerId = 2; - case 2: { - if (tag == 16) { - 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; - } - if (input->ExpectTag(24)) goto parse_kickDeniedReason; - break; - } - - // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; - case 3: { - if (tag == 24) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void AskKickDeniedMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AskKickDeniedMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:AskKickDeniedMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:StartKickPetitionMessage) -} - -void StartKickPetitionMessage::InitAsDefaultInstance() { -} - -StartKickPetitionMessage::StartKickPetitionMessage(const StartKickPetitionMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:StartKickPetitionMessage) -} - -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() { - // @@protoc_insertion_point(destructor:StartKickPetitionMessage) - SharedDtor(); -} - -void StartKickPetitionMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void StartKickPetitionMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const StartKickPetitionMessage& StartKickPetitionMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -StartKickPetitionMessage* StartKickPetitionMessage::default_instance_ = NULL; - -StartKickPetitionMessage* StartKickPetitionMessage::New() const { - return new StartKickPetitionMessage; -} - -void StartKickPetitionMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - if (_has_bits_[0 / 32] & 63) { - ZR_(gameid_, numvotesneededtokick_); - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool StartKickPetitionMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:StartKickPetitionMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_petitionId; - break; - } - - // required uint32 petitionId = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectTag(24)) goto parse_proposingPlayerId; - break; - } - - // required uint32 proposingPlayerId = 3; - case 3: { - if (tag == 24) { - 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_unusual; - } - if (input->ExpectTag(32)) goto parse_kickPlayerId; - break; - } - - // required uint32 kickPlayerId = 4; - case 4: { - if (tag == 32) { - 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_unusual; - } - if (input->ExpectTag(40)) goto parse_kickTimeoutSec; - break; - } - - // required uint32 kickTimeoutSec = 5; - case 5: { - if (tag == 40) { - 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_unusual; - } - if (input->ExpectTag(48)) goto parse_numVotesNeededToKick; - break; - } - - // required uint32 numVotesNeededToKick = 6; - case 6: { - if (tag == 48) { - 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_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void StartKickPetitionMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:StartKickPetitionMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:StartKickPetitionMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:VoteKickRequestMessage) -} - -void VoteKickRequestMessage::InitAsDefaultInstance() { -} - -VoteKickRequestMessage::VoteKickRequestMessage(const VoteKickRequestMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:VoteKickRequestMessage) -} - -void VoteKickRequestMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - petitionid_ = 0u; - votekick_ = false; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -VoteKickRequestMessage::~VoteKickRequestMessage() { - // @@protoc_insertion_point(destructor:VoteKickRequestMessage) - SharedDtor(); -} - -void VoteKickRequestMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void VoteKickRequestMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const VoteKickRequestMessage& VoteKickRequestMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -VoteKickRequestMessage* VoteKickRequestMessage::default_instance_ = NULL; - -VoteKickRequestMessage* VoteKickRequestMessage::New() const { - return new VoteKickRequestMessage; -} - -void VoteKickRequestMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, votekick_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool VoteKickRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:VoteKickRequestMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_petitionId; - break; - } - - // required uint32 petitionId = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectTag(24)) goto parse_voteKick; - break; - } - - // required bool voteKick = 3; - case 3: { - if (tag == 24) { - parse_voteKick: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &votekick_))); - set_has_votekick(); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void VoteKickRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:VoteKickRequestMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:VoteKickRequestMessage) -} - -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; - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string VoteKickRequestMessage::GetTypeName() const { - return "VoteKickRequestMessage"; -} - - -// =================================================================== - +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 bool VoteKickReplyMessage_VoteKickReplyType_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -19928,634 +2134,16 @@ bool VoteKickReplyMessage_VoteKickReplyType_IsValid(int value) { } } -#ifndef _MSC_VER +#if !defined(_MSC_VER) || _MSC_VER >= 1900 const VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::voteKickAck; const VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::voteKickDeniedInvalid; const VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::voteKickDeniedAlreadyVoted; const VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::VoteKickReplyType_MIN; const VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::VoteKickReplyType_MAX; const int VoteKickReplyMessage::VoteKickReplyType_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int VoteKickReplyMessage::kGameIdFieldNumber; -const int VoteKickReplyMessage::kPetitionIdFieldNumber; -const int VoteKickReplyMessage::kVoteKickReplyTypeFieldNumber; -#endif // !_MSC_VER - -VoteKickReplyMessage::VoteKickReplyMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); - // @@protoc_insertion_point(constructor:VoteKickReplyMessage) -} - -void VoteKickReplyMessage::InitAsDefaultInstance() { -} - -VoteKickReplyMessage::VoteKickReplyMessage(const VoteKickReplyMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:VoteKickReplyMessage) -} - -void VoteKickReplyMessage::SharedCtor() { - _cached_size_ = 0; - gameid_ = 0u; - petitionid_ = 0u; - votekickreplytype_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -VoteKickReplyMessage::~VoteKickReplyMessage() { - // @@protoc_insertion_point(destructor:VoteKickReplyMessage) - SharedDtor(); -} - -void VoteKickReplyMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void VoteKickReplyMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const VoteKickReplyMessage& VoteKickReplyMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -VoteKickReplyMessage* VoteKickReplyMessage::default_instance_ = NULL; - -VoteKickReplyMessage* VoteKickReplyMessage::New() const { - return new VoteKickReplyMessage; -} - -void VoteKickReplyMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(gameid_, votekickreplytype_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool VoteKickReplyMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:VoteKickReplyMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_petitionId; - break; - } - - // required uint32 petitionId = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectTag(24)) goto parse_voteKickReplyType; - break; - } - - // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; - case 3: { - if (tag == 24) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void VoteKickReplyMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:VoteKickReplyMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:VoteKickReplyMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:KickPetitionUpdateMessage) -} - -void KickPetitionUpdateMessage::InitAsDefaultInstance() { -} - -KickPetitionUpdateMessage::KickPetitionUpdateMessage(const KickPetitionUpdateMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:KickPetitionUpdateMessage) -} - -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() { - // @@protoc_insertion_point(destructor:KickPetitionUpdateMessage) - SharedDtor(); -} - -void KickPetitionUpdateMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void KickPetitionUpdateMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const KickPetitionUpdateMessage& KickPetitionUpdateMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -KickPetitionUpdateMessage* KickPetitionUpdateMessage::default_instance_ = NULL; - -KickPetitionUpdateMessage* KickPetitionUpdateMessage::New() const { - return new KickPetitionUpdateMessage; -} - -void KickPetitionUpdateMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - if (_has_bits_[0 / 32] & 31) { - ZR_(gameid_, numvotesneededtokick_); - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool KickPetitionUpdateMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:KickPetitionUpdateMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_petitionId; - break; - } - - // required uint32 petitionId = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectTag(24)) goto parse_numVotesAgainstKicking; - break; - } - - // required uint32 numVotesAgainstKicking = 3; - case 3: { - if (tag == 24) { - 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_unusual; - } - if (input->ExpectTag(32)) goto parse_numVotesInFavourOfKicking; - break; - } - - // required uint32 numVotesInFavourOfKicking = 4; - case 4: { - if (tag == 32) { - 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_unusual; - } - if (input->ExpectTag(40)) goto parse_numVotesNeededToKick; - break; - } - - // required uint32 numVotesNeededToKick = 5; - case 5: { - if (tag == 40) { - 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_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void KickPetitionUpdateMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:KickPetitionUpdateMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:KickPetitionUpdateMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string KickPetitionUpdateMessage::GetTypeName() const { - return "KickPetitionUpdateMessage"; -} - - -// =================================================================== - +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 bool EndKickPetitionMessage_PetitionEndReason_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -20566,7 +2154,7 @@ bool EndKickPetitionMessage_PetitionEndReason_IsValid(int value) { } } -#ifndef _MSC_VER +#if !defined(_MSC_VER) || _MSC_VER >= 1900 const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petitionEndEnoughVotes; const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petitionEndTooFewPlayers; const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petitionEndPlayerLeft; @@ -20574,388 +2162,9 @@ const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petitionE const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::PetitionEndReason_MIN; const EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::PetitionEndReason_MAX; const int EndKickPetitionMessage::PetitionEndReason_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int EndKickPetitionMessage::kGameIdFieldNumber; -const int EndKickPetitionMessage::kPetitionIdFieldNumber; -const int EndKickPetitionMessage::kNumVotesAgainstKickingFieldNumber; -const int EndKickPetitionMessage::kNumVotesInFavourOfKickingFieldNumber; -const int EndKickPetitionMessage::kResultPlayerKickedFieldNumber; -const int EndKickPetitionMessage::kPetitionEndReasonFieldNumber; -#endif // !_MSC_VER - -EndKickPetitionMessage::EndKickPetitionMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); - // @@protoc_insertion_point(constructor:EndKickPetitionMessage) -} - -void EndKickPetitionMessage::InitAsDefaultInstance() { -} - -EndKickPetitionMessage::EndKickPetitionMessage(const EndKickPetitionMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:EndKickPetitionMessage) -} - -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() { - // @@protoc_insertion_point(destructor:EndKickPetitionMessage) - SharedDtor(); -} - -void EndKickPetitionMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void EndKickPetitionMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const EndKickPetitionMessage& EndKickPetitionMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -EndKickPetitionMessage* EndKickPetitionMessage::default_instance_ = NULL; - -EndKickPetitionMessage* EndKickPetitionMessage::New() const { - return new EndKickPetitionMessage; -} - -void EndKickPetitionMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - if (_has_bits_[0 / 32] & 63) { - ZR_(gameid_, petitionendreason_); - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool EndKickPetitionMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:EndKickPetitionMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_petitionId; - break; - } - - // required uint32 petitionId = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectTag(24)) goto parse_numVotesAgainstKicking; - break; - } - - // required uint32 numVotesAgainstKicking = 3; - case 3: { - if (tag == 24) { - 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_unusual; - } - if (input->ExpectTag(32)) goto parse_numVotesInFavourOfKicking; - break; - } - - // required uint32 numVotesInFavourOfKicking = 4; - case 4: { - if (tag == 32) { - 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_unusual; - } - if (input->ExpectTag(40)) goto parse_resultPlayerKicked; - break; - } - - // required uint32 resultPlayerKicked = 5; - case 5: { - if (tag == 40) { - 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_unusual; - } - if (input->ExpectTag(48)) goto parse_petitionEndReason; - break; - } - - // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; - case 6: { - if (tag == 48) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void EndKickPetitionMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:EndKickPetitionMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:EndKickPetitionMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string EndKickPetitionMessage::GetTypeName() const { - return "EndKickPetitionMessage"; -} - - -// =================================================================== - +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 bool StatisticsMessage_StatisticsData_StatisticsType_IsValid(int value) { - switch(value) { + switch (value) { case 1: return true; default: @@ -20963,717 +2172,14 @@ bool StatisticsMessage_StatisticsData_StatisticsType_IsValid(int value) { } } -#ifndef _MSC_VER +#if !defined(_MSC_VER) || _MSC_VER >= 1900 const StatisticsMessage_StatisticsData_StatisticsType StatisticsMessage_StatisticsData::statNumberOfPlayers; const StatisticsMessage_StatisticsData_StatisticsType StatisticsMessage_StatisticsData::StatisticsType_MIN; const StatisticsMessage_StatisticsData_StatisticsType StatisticsMessage_StatisticsData::StatisticsType_MAX; const int StatisticsMessage_StatisticsData::StatisticsType_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int StatisticsMessage_StatisticsData::kStatisticsTypeFieldNumber; -const int StatisticsMessage_StatisticsData::kStatisticsValueFieldNumber; -#endif // !_MSC_VER - -StatisticsMessage_StatisticsData::StatisticsMessage_StatisticsData() - : ::google::protobuf::MessageLite() { - SharedCtor(); - // @@protoc_insertion_point(constructor:StatisticsMessage.StatisticsData) -} - -void StatisticsMessage_StatisticsData::InitAsDefaultInstance() { -} - -StatisticsMessage_StatisticsData::StatisticsMessage_StatisticsData(const StatisticsMessage_StatisticsData& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:StatisticsMessage.StatisticsData) -} - -void StatisticsMessage_StatisticsData::SharedCtor() { - _cached_size_ = 0; - statisticstype_ = 1; - statisticsvalue_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -StatisticsMessage_StatisticsData::~StatisticsMessage_StatisticsData() { - // @@protoc_insertion_point(destructor:StatisticsMessage.StatisticsData) - SharedDtor(); -} - -void StatisticsMessage_StatisticsData::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void StatisticsMessage_StatisticsData::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const StatisticsMessage_StatisticsData& StatisticsMessage_StatisticsData::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -StatisticsMessage_StatisticsData* StatisticsMessage_StatisticsData::default_instance_ = NULL; - -StatisticsMessage_StatisticsData* StatisticsMessage_StatisticsData::New() const { - return new StatisticsMessage_StatisticsData; -} - -void StatisticsMessage_StatisticsData::Clear() { - if (_has_bits_[0 / 32] & 3) { - statisticstype_ = 1; - statisticsvalue_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool StatisticsMessage_StatisticsData::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:StatisticsMessage.StatisticsData) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - 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 (tag == 8) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_statisticsValue; - break; - } - - // required uint32 statisticsValue = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void StatisticsMessage_StatisticsData::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:StatisticsMessage.StatisticsData) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:StatisticsMessage.StatisticsData) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:StatisticsMessage) -} - -void StatisticsMessage::InitAsDefaultInstance() { -} - -StatisticsMessage::StatisticsMessage(const StatisticsMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:StatisticsMessage) -} - -void StatisticsMessage::SharedCtor() { - _cached_size_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -StatisticsMessage::~StatisticsMessage() { - // @@protoc_insertion_point(destructor:StatisticsMessage) - SharedDtor(); -} - -void StatisticsMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void StatisticsMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const StatisticsMessage& StatisticsMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -StatisticsMessage* StatisticsMessage::default_instance_ = NULL; - -StatisticsMessage* StatisticsMessage::New() const { - return new StatisticsMessage; -} - -void StatisticsMessage::Clear() { - statisticsdata_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool StatisticsMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:StatisticsMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // repeated .StatisticsMessage.StatisticsData statisticsData = 1; - case 1: { - if (tag == 10) { - parse_statisticsData: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_statisticsdata())); - } else { - goto handle_unusual; - } - if (input->ExpectTag(10)) goto parse_statisticsData; - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void StatisticsMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:StatisticsMessage) - // repeated .StatisticsMessage.StatisticsData statisticsData = 1; - for (int i = 0; i < this->statisticsdata_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessage( - 1, this->statisticsdata(i), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:StatisticsMessage) -} - -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)); - } - - total_size += unknown_fields().size(); - - 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_); - mutable_unknown_fields()->append(from.unknown_fields()); -} - -void StatisticsMessage::CopyFrom(const StatisticsMessage& from) { - 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) { - statisticsdata_.Swap(&other->statisticsdata_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:ChatRequestMessage) -} - -void ChatRequestMessage::InitAsDefaultInstance() { -} - -ChatRequestMessage::ChatRequestMessage(const ChatRequestMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:ChatRequestMessage) -} - -void ChatRequestMessage::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - targetgameid_ = 0u; - targetplayerid_ = 0u; - chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ChatRequestMessage::~ChatRequestMessage() { - // @@protoc_insertion_point(destructor:ChatRequestMessage) - SharedDtor(); -} - -void ChatRequestMessage::SharedDtor() { - if (chattext_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete chattext_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void ChatRequestMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ChatRequestMessage& ChatRequestMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -ChatRequestMessage* ChatRequestMessage::default_instance_ = NULL; - -ChatRequestMessage* ChatRequestMessage::New() const { - return new ChatRequestMessage; -} - -void ChatRequestMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - if (_has_bits_[0 / 32] & 7) { - ZR_(targetgameid_, targetplayerid_); - if (has_chattext()) { - if (chattext_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - chattext_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool ChatRequestMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:ChatRequestMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 targetGameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &targetgameid_))); - set_has_targetgameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_targetPlayerId; - break; - } - - // optional uint32 targetPlayerId = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectTag(26)) goto parse_chatText; - break; - } - - // required string chatText = 3; - case 3: { - if (tag == 26) { - parse_chatText: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_chattext())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void ChatRequestMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:ChatRequestMessage) - // 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::WriteStringMaybeAliased( - 3, this->chattext(), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:ChatRequestMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string ChatRequestMessage::GetTypeName() const { - return "ChatRequestMessage"; -} - - -// =================================================================== - +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 bool ChatMessage_ChatType_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -21685,7 +2191,7 @@ bool ChatMessage_ChatType_IsValid(int value) { } } -#ifndef _MSC_VER +#if !defined(_MSC_VER) || _MSC_VER >= 1900 const ChatMessage_ChatType ChatMessage::chatTypeLobby; const ChatMessage_ChatType ChatMessage::chatTypeGame; const ChatMessage_ChatType ChatMessage::chatTypeBot; @@ -21694,729 +2200,9 @@ const ChatMessage_ChatType ChatMessage::chatTypePrivate; const ChatMessage_ChatType ChatMessage::ChatType_MIN; const ChatMessage_ChatType ChatMessage::ChatType_MAX; const int ChatMessage::ChatType_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int ChatMessage::kGameIdFieldNumber; -const int ChatMessage::kPlayerIdFieldNumber; -const int ChatMessage::kChatTypeFieldNumber; -const int ChatMessage::kChatTextFieldNumber; -#endif // !_MSC_VER - -ChatMessage::ChatMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); - // @@protoc_insertion_point(constructor:ChatMessage) -} - -void ChatMessage::InitAsDefaultInstance() { -} - -ChatMessage::ChatMessage(const ChatMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:ChatMessage) -} - -void ChatMessage::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - gameid_ = 0u; - playerid_ = 0u; - chattype_ = 0; - chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ChatMessage::~ChatMessage() { - // @@protoc_insertion_point(destructor:ChatMessage) - SharedDtor(); -} - -void ChatMessage::SharedDtor() { - if (chattext_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete chattext_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void ChatMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ChatMessage& ChatMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -ChatMessage* ChatMessage::default_instance_ = NULL; - -ChatMessage* ChatMessage::New() const { - return new ChatMessage; -} - -void ChatMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - if (_has_bits_[0 / 32] & 15) { - ZR_(gameid_, playerid_); - chattype_ = 0; - if (has_chattext()) { - if (chattext_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - chattext_->clear(); - } - } - } - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool ChatMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:ChatMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // optional uint32 gameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &gameid_))); - set_has_gameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_playerId; - break; - } - - // optional uint32 playerId = 2; - case 2: { - if (tag == 16) { - 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; - } - if (input->ExpectTag(24)) goto parse_chatType; - break; - } - - // required .ChatMessage.ChatType chatType = 3; - case 3: { - if (tag == 24) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(34)) goto parse_chatText; - break; - } - - // required string chatText = 4; - case 4: { - if (tag == 34) { - parse_chatText: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_chattext())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void ChatMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:ChatMessage) - // 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::WriteStringMaybeAliased( - 4, this->chattext(), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:ChatMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:ChatRejectMessage) -} - -void ChatRejectMessage::InitAsDefaultInstance() { -} - -ChatRejectMessage::ChatRejectMessage(const ChatRejectMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:ChatRejectMessage) -} - -void ChatRejectMessage::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ChatRejectMessage::~ChatRejectMessage() { - // @@protoc_insertion_point(destructor:ChatRejectMessage) - SharedDtor(); -} - -void ChatRejectMessage::SharedDtor() { - if (chattext_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete chattext_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void ChatRejectMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ChatRejectMessage& ChatRejectMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -ChatRejectMessage* ChatRejectMessage::default_instance_ = NULL; - -ChatRejectMessage* ChatRejectMessage::New() const { - return new ChatRejectMessage; -} - -void ChatRejectMessage::Clear() { - if (has_chattext()) { - if (chattext_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - chattext_->clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool ChatRejectMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:ChatRejectMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required string chatText = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_chattext())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void ChatRejectMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:ChatRejectMessage) - // required string chatText = 1; - if (has_chattext()) { - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->chattext(), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:ChatRejectMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:DialogMessage) -} - -void DialogMessage::InitAsDefaultInstance() { -} - -DialogMessage::DialogMessage(const DialogMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:DialogMessage) -} - -void DialogMessage::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - notificationtext_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -DialogMessage::~DialogMessage() { - // @@protoc_insertion_point(destructor:DialogMessage) - SharedDtor(); -} - -void DialogMessage::SharedDtor() { - if (notificationtext_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete notificationtext_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void DialogMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const DialogMessage& DialogMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -DialogMessage* DialogMessage::default_instance_ = NULL; - -DialogMessage* DialogMessage::New() const { - return new DialogMessage; -} - -void DialogMessage::Clear() { - if (has_notificationtext()) { - if (notificationtext_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - notificationtext_->clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool DialogMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:DialogMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required string notificationText = 1; - case 1: { - if (tag == 10) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_notificationtext())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void DialogMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:DialogMessage) - // required string notificationText = 1; - if (has_notificationtext()) { - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->notificationtext(), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:DialogMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string DialogMessage::GetTypeName() const { - return "DialogMessage"; -} - - -// =================================================================== - +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 bool TimeoutWarningMessage_TimeoutReason_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -22426,644 +2212,16 @@ bool TimeoutWarningMessage_TimeoutReason_IsValid(int value) { } } -#ifndef _MSC_VER +#if !defined(_MSC_VER) || _MSC_VER >= 1900 const TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::timeoutNoDataReceived; const TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::timeoutInactiveGame; const TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::timeoutKickAfterAutofold; const TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::TimeoutReason_MIN; const TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::TimeoutReason_MAX; const int TimeoutWarningMessage::TimeoutReason_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int TimeoutWarningMessage::kTimeoutReasonFieldNumber; -const int TimeoutWarningMessage::kRemainingSecondsFieldNumber; -#endif // !_MSC_VER - -TimeoutWarningMessage::TimeoutWarningMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); - // @@protoc_insertion_point(constructor:TimeoutWarningMessage) -} - -void TimeoutWarningMessage::InitAsDefaultInstance() { -} - -TimeoutWarningMessage::TimeoutWarningMessage(const TimeoutWarningMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:TimeoutWarningMessage) -} - -void TimeoutWarningMessage::SharedCtor() { - _cached_size_ = 0; - timeoutreason_ = 0; - remainingseconds_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -TimeoutWarningMessage::~TimeoutWarningMessage() { - // @@protoc_insertion_point(destructor:TimeoutWarningMessage) - SharedDtor(); -} - -void TimeoutWarningMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void TimeoutWarningMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const TimeoutWarningMessage& TimeoutWarningMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -TimeoutWarningMessage* TimeoutWarningMessage::default_instance_ = NULL; - -TimeoutWarningMessage* TimeoutWarningMessage::New() const { - return new TimeoutWarningMessage; -} - -void TimeoutWarningMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(timeoutreason_, remainingseconds_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool TimeoutWarningMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:TimeoutWarningMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; - case 1: { - if (tag == 8) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_remainingSeconds; - break; - } - - // required uint32 remainingSeconds = 2; - case 2: { - if (tag == 16) { - 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_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void TimeoutWarningMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:TimeoutWarningMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:TimeoutWarningMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:ResetTimeoutMessage) -} - -void ResetTimeoutMessage::InitAsDefaultInstance() { -} - -ResetTimeoutMessage::ResetTimeoutMessage(const ResetTimeoutMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:ResetTimeoutMessage) -} - -void ResetTimeoutMessage::SharedCtor() { - _cached_size_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ResetTimeoutMessage::~ResetTimeoutMessage() { - // @@protoc_insertion_point(destructor:ResetTimeoutMessage) - SharedDtor(); -} - -void ResetTimeoutMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void ResetTimeoutMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ResetTimeoutMessage& ResetTimeoutMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -ResetTimeoutMessage* ResetTimeoutMessage::default_instance_ = NULL; - -ResetTimeoutMessage* ResetTimeoutMessage::New() const { - return new ResetTimeoutMessage; -} - -void ResetTimeoutMessage::Clear() { - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool ResetTimeoutMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:ResetTimeoutMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void ResetTimeoutMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:ResetTimeoutMessage) - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:ResetTimeoutMessage) -} - -int ResetTimeoutMessage::ByteSize() const { - int total_size = 0; - - total_size += unknown_fields().size(); - - 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); - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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) { - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:ReportAvatarMessage) -} - -void ReportAvatarMessage::InitAsDefaultInstance() { -} - -ReportAvatarMessage::ReportAvatarMessage(const ReportAvatarMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:ReportAvatarMessage) -} - -void ReportAvatarMessage::SharedCtor() { - ::google::protobuf::internal::GetEmptyString(); - _cached_size_ = 0; - reportedplayerid_ = 0u; - reportedavatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ReportAvatarMessage::~ReportAvatarMessage() { - // @@protoc_insertion_point(destructor:ReportAvatarMessage) - SharedDtor(); -} - -void ReportAvatarMessage::SharedDtor() { - if (reportedavatarhash_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete reportedavatarhash_; - } - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void ReportAvatarMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ReportAvatarMessage& ReportAvatarMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -ReportAvatarMessage* ReportAvatarMessage::default_instance_ = NULL; - -ReportAvatarMessage* ReportAvatarMessage::New() const { - return new ReportAvatarMessage; -} - -void ReportAvatarMessage::Clear() { - if (_has_bits_[0 / 32] & 3) { - reportedplayerid_ = 0u; - if (has_reportedavatarhash()) { - if (reportedavatarhash_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - reportedavatarhash_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool ReportAvatarMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:ReportAvatarMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 reportedPlayerId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &reportedplayerid_))); - set_has_reportedplayerid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(18)) goto parse_reportedAvatarHash; - break; - } - - // required bytes reportedAvatarHash = 2; - case 2: { - if (tag == 18) { - parse_reportedAvatarHash: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_reportedavatarhash())); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void ReportAvatarMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:ReportAvatarMessage) - // 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::WriteBytesMaybeAliased( - 2, this->reportedavatarhash(), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:ReportAvatarMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string ReportAvatarMessage::GetTypeName() const { - return "ReportAvatarMessage"; -} - - -// =================================================================== - +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 bool ReportAvatarAckMessage_ReportAvatarResult_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -23073,453 +2231,16 @@ bool ReportAvatarAckMessage_ReportAvatarResult_IsValid(int value) { } } -#ifndef _MSC_VER +#if !defined(_MSC_VER) || _MSC_VER >= 1900 const ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::avatarReportAccepted; const ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::avatarReportDuplicate; const ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::avatarReportInvalid; const ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::ReportAvatarResult_MIN; const ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::ReportAvatarResult_MAX; const int ReportAvatarAckMessage::ReportAvatarResult_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int ReportAvatarAckMessage::kReportedPlayerIdFieldNumber; -const int ReportAvatarAckMessage::kReportAvatarResultFieldNumber; -#endif // !_MSC_VER - -ReportAvatarAckMessage::ReportAvatarAckMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); - // @@protoc_insertion_point(constructor:ReportAvatarAckMessage) -} - -void ReportAvatarAckMessage::InitAsDefaultInstance() { -} - -ReportAvatarAckMessage::ReportAvatarAckMessage(const ReportAvatarAckMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:ReportAvatarAckMessage) -} - -void ReportAvatarAckMessage::SharedCtor() { - _cached_size_ = 0; - reportedplayerid_ = 0u; - reportavatarresult_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ReportAvatarAckMessage::~ReportAvatarAckMessage() { - // @@protoc_insertion_point(destructor:ReportAvatarAckMessage) - SharedDtor(); -} - -void ReportAvatarAckMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void ReportAvatarAckMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ReportAvatarAckMessage& ReportAvatarAckMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -ReportAvatarAckMessage* ReportAvatarAckMessage::default_instance_ = NULL; - -ReportAvatarAckMessage* ReportAvatarAckMessage::New() const { - return new ReportAvatarAckMessage; -} - -void ReportAvatarAckMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(reportedplayerid_, reportavatarresult_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool ReportAvatarAckMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:ReportAvatarAckMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 reportedPlayerId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &reportedplayerid_))); - set_has_reportedplayerid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_reportAvatarResult; - break; - } - - // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; - case 2: { - if (tag == 16) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void ReportAvatarAckMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:ReportAvatarAckMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:ReportAvatarAckMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:ReportGameMessage) -} - -void ReportGameMessage::InitAsDefaultInstance() { -} - -ReportGameMessage::ReportGameMessage(const ReportGameMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:ReportGameMessage) -} - -void ReportGameMessage::SharedCtor() { - _cached_size_ = 0; - reportedgameid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ReportGameMessage::~ReportGameMessage() { - // @@protoc_insertion_point(destructor:ReportGameMessage) - SharedDtor(); -} - -void ReportGameMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void ReportGameMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ReportGameMessage& ReportGameMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -ReportGameMessage* ReportGameMessage::default_instance_ = NULL; - -ReportGameMessage* ReportGameMessage::New() const { - return new ReportGameMessage; -} - -void ReportGameMessage::Clear() { - reportedgameid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool ReportGameMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:ReportGameMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 reportedGameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &reportedgameid_))); - set_has_reportedgameid(); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void ReportGameMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:ReportGameMessage) - // required uint32 reportedGameId = 1; - if (has_reportedgameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->reportedgameid(), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:ReportGameMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string ReportGameMessage::GetTypeName() const { - return "ReportGameMessage"; -} - - -// =================================================================== - +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 bool ReportGameAckMessage_ReportGameResult_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -23529,261 +2250,16 @@ bool ReportGameAckMessage_ReportGameResult_IsValid(int value) { } } -#ifndef _MSC_VER +#if !defined(_MSC_VER) || _MSC_VER >= 1900 const ReportGameAckMessage_ReportGameResult ReportGameAckMessage::gameReportAccepted; const ReportGameAckMessage_ReportGameResult ReportGameAckMessage::gameReportDuplicate; const ReportGameAckMessage_ReportGameResult ReportGameAckMessage::gameReportInvalid; const ReportGameAckMessage_ReportGameResult ReportGameAckMessage::ReportGameResult_MIN; const ReportGameAckMessage_ReportGameResult ReportGameAckMessage::ReportGameResult_MAX; const int ReportGameAckMessage::ReportGameResult_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int ReportGameAckMessage::kReportedGameIdFieldNumber; -const int ReportGameAckMessage::kReportGameResultFieldNumber; -#endif // !_MSC_VER - -ReportGameAckMessage::ReportGameAckMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); - // @@protoc_insertion_point(constructor:ReportGameAckMessage) -} - -void ReportGameAckMessage::InitAsDefaultInstance() { -} - -ReportGameAckMessage::ReportGameAckMessage(const ReportGameAckMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:ReportGameAckMessage) -} - -void ReportGameAckMessage::SharedCtor() { - _cached_size_ = 0; - reportedgameid_ = 0u; - reportgameresult_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ReportGameAckMessage::~ReportGameAckMessage() { - // @@protoc_insertion_point(destructor:ReportGameAckMessage) - SharedDtor(); -} - -void ReportGameAckMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void ReportGameAckMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ReportGameAckMessage& ReportGameAckMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -ReportGameAckMessage* ReportGameAckMessage::default_instance_ = NULL; - -ReportGameAckMessage* ReportGameAckMessage::New() const { - return new ReportGameAckMessage; -} - -void ReportGameAckMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(reportedgameid_, reportgameresult_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool ReportGameAckMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:ReportGameAckMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 reportedGameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &reportedgameid_))); - set_has_reportedgameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_reportGameResult; - break; - } - - // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; - case 2: { - if (tag == 16) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void ReportGameAckMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:ReportGameAckMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:ReportGameAckMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string ReportGameAckMessage::GetTypeName() const { - return "ReportGameAckMessage"; -} - - -// =================================================================== - +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 bool ErrorMessage_ErrorReason_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -23805,8 +2281,8 @@ bool ErrorMessage_ErrorReason_IsValid(int value) { } } -#ifndef _MSC_VER -const ErrorMessage_ErrorReason ErrorMessage::reserved; +#if !defined(_MSC_VER) || _MSC_VER >= 1900 +const ErrorMessage_ErrorReason ErrorMessage::custReserved; const ErrorMessage_ErrorReason ErrorMessage::initVersionNotSupported; const ErrorMessage_ErrorReason ErrorMessage::initServerFull; const ErrorMessage_ErrorReason ErrorMessage::initAuthFailure; @@ -23824,399 +2300,9 @@ const ErrorMessage_ErrorReason ErrorMessage::sessionTimeout; const ErrorMessage_ErrorReason ErrorMessage::ErrorReason_MIN; const ErrorMessage_ErrorReason ErrorMessage::ErrorReason_MAX; const int ErrorMessage::ErrorReason_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int ErrorMessage::kErrorReasonFieldNumber; -#endif // !_MSC_VER - -ErrorMessage::ErrorMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); - // @@protoc_insertion_point(constructor:ErrorMessage) -} - -void ErrorMessage::InitAsDefaultInstance() { -} - -ErrorMessage::ErrorMessage(const ErrorMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:ErrorMessage) -} - -void ErrorMessage::SharedCtor() { - _cached_size_ = 0; - errorreason_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -ErrorMessage::~ErrorMessage() { - // @@protoc_insertion_point(destructor:ErrorMessage) - SharedDtor(); -} - -void ErrorMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void ErrorMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ErrorMessage& ErrorMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -ErrorMessage* ErrorMessage::default_instance_ = NULL; - -ErrorMessage* ErrorMessage::New() const { - return new ErrorMessage; -} - -void ErrorMessage::Clear() { - errorreason_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool ErrorMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:ErrorMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .ErrorMessage.ErrorReason errorReason = 1; - case 1: { - if (tag == 8) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void ErrorMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:ErrorMessage) - // required .ErrorMessage.ErrorReason errorReason = 1; - if (has_errorreason()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->errorreason(), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:ErrorMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:AdminRemoveGameMessage) -} - -void AdminRemoveGameMessage::InitAsDefaultInstance() { -} - -AdminRemoveGameMessage::AdminRemoveGameMessage(const AdminRemoveGameMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:AdminRemoveGameMessage) -} - -void AdminRemoveGameMessage::SharedCtor() { - _cached_size_ = 0; - removegameid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AdminRemoveGameMessage::~AdminRemoveGameMessage() { - // @@protoc_insertion_point(destructor:AdminRemoveGameMessage) - SharedDtor(); -} - -void AdminRemoveGameMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AdminRemoveGameMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AdminRemoveGameMessage& AdminRemoveGameMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AdminRemoveGameMessage* AdminRemoveGameMessage::default_instance_ = NULL; - -AdminRemoveGameMessage* AdminRemoveGameMessage::New() const { - return new AdminRemoveGameMessage; -} - -void AdminRemoveGameMessage::Clear() { - removegameid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool AdminRemoveGameMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:AdminRemoveGameMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 removeGameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &removegameid_))); - set_has_removegameid(); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void AdminRemoveGameMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AdminRemoveGameMessage) - // required uint32 removeGameId = 1; - if (has_removegameid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->removegameid(), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:AdminRemoveGameMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string AdminRemoveGameMessage::GetTypeName() const { - return "AdminRemoveGameMessage"; -} - - -// =================================================================== - +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 bool AdminRemoveGameAckMessage_AdminRemoveGameResult_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: return true; @@ -24225,452 +2311,15 @@ bool AdminRemoveGameAckMessage_AdminRemoveGameResult_IsValid(int value) { } } -#ifndef _MSC_VER +#if !defined(_MSC_VER) || _MSC_VER >= 1900 const AdminRemoveGameAckMessage_AdminRemoveGameResult AdminRemoveGameAckMessage::gameRemoveAccepted; const AdminRemoveGameAckMessage_AdminRemoveGameResult AdminRemoveGameAckMessage::gameRemoveInvalid; const AdminRemoveGameAckMessage_AdminRemoveGameResult AdminRemoveGameAckMessage::AdminRemoveGameResult_MIN; const AdminRemoveGameAckMessage_AdminRemoveGameResult AdminRemoveGameAckMessage::AdminRemoveGameResult_MAX; const int AdminRemoveGameAckMessage::AdminRemoveGameResult_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int AdminRemoveGameAckMessage::kRemoveGameIdFieldNumber; -const int AdminRemoveGameAckMessage::kRemoveGameResultFieldNumber; -#endif // !_MSC_VER - -AdminRemoveGameAckMessage::AdminRemoveGameAckMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); - // @@protoc_insertion_point(constructor:AdminRemoveGameAckMessage) -} - -void AdminRemoveGameAckMessage::InitAsDefaultInstance() { -} - -AdminRemoveGameAckMessage::AdminRemoveGameAckMessage(const AdminRemoveGameAckMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:AdminRemoveGameAckMessage) -} - -void AdminRemoveGameAckMessage::SharedCtor() { - _cached_size_ = 0; - removegameid_ = 0u; - removegameresult_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AdminRemoveGameAckMessage::~AdminRemoveGameAckMessage() { - // @@protoc_insertion_point(destructor:AdminRemoveGameAckMessage) - SharedDtor(); -} - -void AdminRemoveGameAckMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AdminRemoveGameAckMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AdminRemoveGameAckMessage& AdminRemoveGameAckMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AdminRemoveGameAckMessage* AdminRemoveGameAckMessage::default_instance_ = NULL; - -AdminRemoveGameAckMessage* AdminRemoveGameAckMessage::New() const { - return new AdminRemoveGameAckMessage; -} - -void AdminRemoveGameAckMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(removegameid_, removegameresult_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool AdminRemoveGameAckMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:AdminRemoveGameAckMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 removeGameId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &removegameid_))); - set_has_removegameid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_removeGameResult; - break; - } - - // required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; - case 2: { - if (tag == 16) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void AdminRemoveGameAckMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AdminRemoveGameAckMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:AdminRemoveGameAckMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - 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(); - // @@protoc_insertion_point(constructor:AdminBanPlayerMessage) -} - -void AdminBanPlayerMessage::InitAsDefaultInstance() { -} - -AdminBanPlayerMessage::AdminBanPlayerMessage(const AdminBanPlayerMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:AdminBanPlayerMessage) -} - -void AdminBanPlayerMessage::SharedCtor() { - _cached_size_ = 0; - banplayerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AdminBanPlayerMessage::~AdminBanPlayerMessage() { - // @@protoc_insertion_point(destructor:AdminBanPlayerMessage) - SharedDtor(); -} - -void AdminBanPlayerMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AdminBanPlayerMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AdminBanPlayerMessage& AdminBanPlayerMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AdminBanPlayerMessage* AdminBanPlayerMessage::default_instance_ = NULL; - -AdminBanPlayerMessage* AdminBanPlayerMessage::New() const { - return new AdminBanPlayerMessage; -} - -void AdminBanPlayerMessage::Clear() { - banplayerid_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool AdminBanPlayerMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:AdminBanPlayerMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 banPlayerId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &banplayerid_))); - set_has_banplayerid(); - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void AdminBanPlayerMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AdminBanPlayerMessage) - // required uint32 banPlayerId = 1; - if (has_banplayerid()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->banplayerid(), output); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:AdminBanPlayerMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string AdminBanPlayerMessage::GetTypeName() const { - return "AdminBanPlayerMessage"; -} - - -// =================================================================== - +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 bool AdminBanPlayerAckMessage_AdminBanPlayerResult_IsValid(int value) { - switch(value) { + switch (value) { case 0: case 1: case 2: @@ -24682,7 +2331,7 @@ bool AdminBanPlayerAckMessage_AdminBanPlayerResult_IsValid(int value) { } } -#ifndef _MSC_VER +#if !defined(_MSC_VER) || _MSC_VER >= 1900 const AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::banPlayerAccepted; const AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::banPlayerPending; const AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::banPlayerNoDB; @@ -24691,254 +2340,9 @@ const AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::ba const AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::AdminBanPlayerResult_MIN; const AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::AdminBanPlayerResult_MAX; const int AdminBanPlayerAckMessage::AdminBanPlayerResult_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int AdminBanPlayerAckMessage::kBanPlayerIdFieldNumber; -const int AdminBanPlayerAckMessage::kBanPlayerResultFieldNumber; -#endif // !_MSC_VER - -AdminBanPlayerAckMessage::AdminBanPlayerAckMessage() - : ::google::protobuf::MessageLite() { - SharedCtor(); - // @@protoc_insertion_point(constructor:AdminBanPlayerAckMessage) -} - -void AdminBanPlayerAckMessage::InitAsDefaultInstance() { -} - -AdminBanPlayerAckMessage::AdminBanPlayerAckMessage(const AdminBanPlayerAckMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(from); - // @@protoc_insertion_point(copy_constructor:AdminBanPlayerAckMessage) -} - -void AdminBanPlayerAckMessage::SharedCtor() { - _cached_size_ = 0; - banplayerid_ = 0u; - banplayerresult_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AdminBanPlayerAckMessage::~AdminBanPlayerAckMessage() { - // @@protoc_insertion_point(destructor:AdminBanPlayerAckMessage) - SharedDtor(); -} - -void AdminBanPlayerAckMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - } -} - -void AdminBanPlayerAckMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const AdminBanPlayerAckMessage& AdminBanPlayerAckMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; -} - -AdminBanPlayerAckMessage* AdminBanPlayerAckMessage::default_instance_ = NULL; - -AdminBanPlayerAckMessage* AdminBanPlayerAckMessage::New() const { - return new AdminBanPlayerAckMessage; -} - -void AdminBanPlayerAckMessage::Clear() { -#define OFFSET_OF_FIELD_(f) (reinterpret_cast( \ - &reinterpret_cast(16)->f) - \ - reinterpret_cast(16)) - -#define ZR_(first, last) do { \ - size_t f = OFFSET_OF_FIELD_(first); \ - size_t n = OFFSET_OF_FIELD_(last) - f + sizeof(last); \ - ::memset(&first, 0, n); \ - } while (0) - - ZR_(banplayerid_, banplayerresult_); - -#undef OFFSET_OF_FIELD_ -#undef ZR_ - - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->clear(); -} - -bool AdminBanPlayerAckMessage::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure - ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); - ::google::protobuf::io::CodedOutputStream unknown_fields_stream( - &unknown_fields_string); - // @@protoc_insertion_point(parse_start:AdminBanPlayerAckMessage) - for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required uint32 banPlayerId = 1; - case 1: { - if (tag == 8) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &banplayerid_))); - set_has_banplayerid(); - } else { - goto handle_unusual; - } - if (input->ExpectTag(16)) goto parse_banPlayerResult; - break; - } - - // required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; - case 2: { - if (tag == 16) { - 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 { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); - } - } else { - goto handle_unusual; - } - if (input->ExpectAtEnd()) goto success; - break; - } - - default: { - handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - 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_ -} - -void AdminBanPlayerAckMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:AdminBanPlayerAckMessage) - // 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); - } - - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); - // @@protoc_insertion_point(serialize_end:AdminBanPlayerAckMessage) -} - -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()); - } - - } - total_size += unknown_fields().size(); - - 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()); - } - } - mutable_unknown_fields()->append(from.unknown_fields()); -} - -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]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::std::string AdminBanPlayerAckMessage::GetTypeName() const { - return "AdminBanPlayerAckMessage"; -} - - -// =================================================================== - +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 bool PokerTHMessage_PokerTHMessageType_IsValid(int value) { - switch(value) { + switch (value) { case 1: case 2: case 3: @@ -25026,7 +2430,7 @@ bool PokerTHMessage_PokerTHMessageType_IsValid(int value) { } } -#ifndef _MSC_VER +#if !defined(_MSC_VER) || _MSC_VER >= 1900 const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AnnounceMessage; const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_InitMessage; const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_AuthServerChallengeMessage; @@ -25111,8 +2515,32136 @@ const PokerTHMessage_PokerTHMessageType PokerTHMessage::Type_GameSpectatorLeftMe const PokerTHMessage_PokerTHMessageType PokerTHMessage::PokerTHMessageType_MIN; const PokerTHMessage_PokerTHMessageType PokerTHMessage::PokerTHMessageType_MAX; const int PokerTHMessage::PokerTHMessageType_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER +#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 const int PokerTHMessage::kMessageTypeFieldNumber; const int PokerTHMessage::kAnnounceMessageFieldNumber; const int PokerTHMessage::kInitMessageFieldNumber; @@ -25195,595 +34727,434 @@ const int PokerTHMessage::kGameListSpectatorJoinedMessageFieldNumber; const int PokerTHMessage::kGameListSpectatorLeftMessageFieldNumber; const int PokerTHMessage::kGameSpectatorJoinedMessageFieldNumber; const int PokerTHMessage::kGameSpectatorLeftMessageFieldNumber; -#endif // !_MSC_VER +#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 PokerTHMessage::PokerTHMessage() - : ::google::protobuf::MessageLite() { + : ::google::protobuf::MessageLite(), _internal_metadata_(nullptr) { SharedCtor(); // @@protoc_insertion_point(constructor:PokerTHMessage) } - -void PokerTHMessage::InitAsDefaultInstance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - announcemessage_ = const_cast< ::AnnounceMessage*>( - ::AnnounceMessage::internal_default_instance()); -#else - announcemessage_ = const_cast< ::AnnounceMessage*>(&::AnnounceMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - initmessage_ = const_cast< ::InitMessage*>( - ::InitMessage::internal_default_instance()); -#else - initmessage_ = const_cast< ::InitMessage*>(&::InitMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - authserverchallengemessage_ = const_cast< ::AuthServerChallengeMessage*>( - ::AuthServerChallengeMessage::internal_default_instance()); -#else - authserverchallengemessage_ = const_cast< ::AuthServerChallengeMessage*>(&::AuthServerChallengeMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - authclientresponsemessage_ = const_cast< ::AuthClientResponseMessage*>( - ::AuthClientResponseMessage::internal_default_instance()); -#else - authclientresponsemessage_ = const_cast< ::AuthClientResponseMessage*>(&::AuthClientResponseMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - authserververificationmessage_ = const_cast< ::AuthServerVerificationMessage*>( - ::AuthServerVerificationMessage::internal_default_instance()); -#else - authserververificationmessage_ = const_cast< ::AuthServerVerificationMessage*>(&::AuthServerVerificationMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - initackmessage_ = const_cast< ::InitAckMessage*>( - ::InitAckMessage::internal_default_instance()); -#else - initackmessage_ = const_cast< ::InitAckMessage*>(&::InitAckMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - avatarrequestmessage_ = const_cast< ::AvatarRequestMessage*>( - ::AvatarRequestMessage::internal_default_instance()); -#else - avatarrequestmessage_ = const_cast< ::AvatarRequestMessage*>(&::AvatarRequestMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - avatarheadermessage_ = const_cast< ::AvatarHeaderMessage*>( - ::AvatarHeaderMessage::internal_default_instance()); -#else - avatarheadermessage_ = const_cast< ::AvatarHeaderMessage*>(&::AvatarHeaderMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - avatardatamessage_ = const_cast< ::AvatarDataMessage*>( - ::AvatarDataMessage::internal_default_instance()); -#else - avatardatamessage_ = const_cast< ::AvatarDataMessage*>(&::AvatarDataMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - avatarendmessage_ = const_cast< ::AvatarEndMessage*>( - ::AvatarEndMessage::internal_default_instance()); -#else - avatarendmessage_ = const_cast< ::AvatarEndMessage*>(&::AvatarEndMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - unknownavatarmessage_ = const_cast< ::UnknownAvatarMessage*>( - ::UnknownAvatarMessage::internal_default_instance()); -#else - unknownavatarmessage_ = const_cast< ::UnknownAvatarMessage*>(&::UnknownAvatarMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - playerlistmessage_ = const_cast< ::PlayerListMessage*>( - ::PlayerListMessage::internal_default_instance()); -#else - playerlistmessage_ = const_cast< ::PlayerListMessage*>(&::PlayerListMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gamelistnewmessage_ = const_cast< ::GameListNewMessage*>( - ::GameListNewMessage::internal_default_instance()); -#else - gamelistnewmessage_ = const_cast< ::GameListNewMessage*>(&::GameListNewMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gamelistupdatemessage_ = const_cast< ::GameListUpdateMessage*>( - ::GameListUpdateMessage::internal_default_instance()); -#else - gamelistupdatemessage_ = const_cast< ::GameListUpdateMessage*>(&::GameListUpdateMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gamelistplayerjoinedmessage_ = const_cast< ::GameListPlayerJoinedMessage*>( - ::GameListPlayerJoinedMessage::internal_default_instance()); -#else - gamelistplayerjoinedmessage_ = const_cast< ::GameListPlayerJoinedMessage*>(&::GameListPlayerJoinedMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gamelistplayerleftmessage_ = const_cast< ::GameListPlayerLeftMessage*>( - ::GameListPlayerLeftMessage::internal_default_instance()); -#else - gamelistplayerleftmessage_ = const_cast< ::GameListPlayerLeftMessage*>(&::GameListPlayerLeftMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gamelistadminchangedmessage_ = const_cast< ::GameListAdminChangedMessage*>( - ::GameListAdminChangedMessage::internal_default_instance()); -#else - gamelistadminchangedmessage_ = const_cast< ::GameListAdminChangedMessage*>(&::GameListAdminChangedMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - playerinforequestmessage_ = const_cast< ::PlayerInfoRequestMessage*>( - ::PlayerInfoRequestMessage::internal_default_instance()); -#else - playerinforequestmessage_ = const_cast< ::PlayerInfoRequestMessage*>(&::PlayerInfoRequestMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - playerinforeplymessage_ = const_cast< ::PlayerInfoReplyMessage*>( - ::PlayerInfoReplyMessage::internal_default_instance()); -#else - playerinforeplymessage_ = const_cast< ::PlayerInfoReplyMessage*>(&::PlayerInfoReplyMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - subscriptionrequestmessage_ = const_cast< ::SubscriptionRequestMessage*>( - ::SubscriptionRequestMessage::internal_default_instance()); -#else - subscriptionrequestmessage_ = const_cast< ::SubscriptionRequestMessage*>(&::SubscriptionRequestMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - joinexistinggamemessage_ = const_cast< ::JoinExistingGameMessage*>( - ::JoinExistingGameMessage::internal_default_instance()); -#else - joinexistinggamemessage_ = const_cast< ::JoinExistingGameMessage*>(&::JoinExistingGameMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - joinnewgamemessage_ = const_cast< ::JoinNewGameMessage*>( - ::JoinNewGameMessage::internal_default_instance()); -#else - joinnewgamemessage_ = const_cast< ::JoinNewGameMessage*>(&::JoinNewGameMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - rejoinexistinggamemessage_ = const_cast< ::RejoinExistingGameMessage*>( - ::RejoinExistingGameMessage::internal_default_instance()); -#else - rejoinexistinggamemessage_ = const_cast< ::RejoinExistingGameMessage*>(&::RejoinExistingGameMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - joingameackmessage_ = const_cast< ::JoinGameAckMessage*>( - ::JoinGameAckMessage::internal_default_instance()); -#else - joingameackmessage_ = const_cast< ::JoinGameAckMessage*>(&::JoinGameAckMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - joingamefailedmessage_ = const_cast< ::JoinGameFailedMessage*>( - ::JoinGameFailedMessage::internal_default_instance()); -#else - joingamefailedmessage_ = const_cast< ::JoinGameFailedMessage*>(&::JoinGameFailedMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gameplayerjoinedmessage_ = const_cast< ::GamePlayerJoinedMessage*>( - ::GamePlayerJoinedMessage::internal_default_instance()); -#else - gameplayerjoinedmessage_ = const_cast< ::GamePlayerJoinedMessage*>(&::GamePlayerJoinedMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gameplayerleftmessage_ = const_cast< ::GamePlayerLeftMessage*>( - ::GamePlayerLeftMessage::internal_default_instance()); -#else - gameplayerleftmessage_ = const_cast< ::GamePlayerLeftMessage*>(&::GamePlayerLeftMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gameadminchangedmessage_ = const_cast< ::GameAdminChangedMessage*>( - ::GameAdminChangedMessage::internal_default_instance()); -#else - gameadminchangedmessage_ = const_cast< ::GameAdminChangedMessage*>(&::GameAdminChangedMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - removedfromgamemessage_ = const_cast< ::RemovedFromGameMessage*>( - ::RemovedFromGameMessage::internal_default_instance()); -#else - removedfromgamemessage_ = const_cast< ::RemovedFromGameMessage*>(&::RemovedFromGameMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - kickplayerrequestmessage_ = const_cast< ::KickPlayerRequestMessage*>( - ::KickPlayerRequestMessage::internal_default_instance()); -#else - kickplayerrequestmessage_ = const_cast< ::KickPlayerRequestMessage*>(&::KickPlayerRequestMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - leavegamerequestmessage_ = const_cast< ::LeaveGameRequestMessage*>( - ::LeaveGameRequestMessage::internal_default_instance()); -#else - leavegamerequestmessage_ = const_cast< ::LeaveGameRequestMessage*>(&::LeaveGameRequestMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - inviteplayertogamemessage_ = const_cast< ::InvitePlayerToGameMessage*>( - ::InvitePlayerToGameMessage::internal_default_instance()); -#else - inviteplayertogamemessage_ = const_cast< ::InvitePlayerToGameMessage*>(&::InvitePlayerToGameMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - invitenotifymessage_ = const_cast< ::InviteNotifyMessage*>( - ::InviteNotifyMessage::internal_default_instance()); -#else - invitenotifymessage_ = const_cast< ::InviteNotifyMessage*>(&::InviteNotifyMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - rejectgameinvitationmessage_ = const_cast< ::RejectGameInvitationMessage*>( - ::RejectGameInvitationMessage::internal_default_instance()); -#else - rejectgameinvitationmessage_ = const_cast< ::RejectGameInvitationMessage*>(&::RejectGameInvitationMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - rejectinvnotifymessage_ = const_cast< ::RejectInvNotifyMessage*>( - ::RejectInvNotifyMessage::internal_default_instance()); -#else - rejectinvnotifymessage_ = const_cast< ::RejectInvNotifyMessage*>(&::RejectInvNotifyMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - starteventmessage_ = const_cast< ::StartEventMessage*>( - ::StartEventMessage::internal_default_instance()); -#else - starteventmessage_ = const_cast< ::StartEventMessage*>(&::StartEventMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - starteventackmessage_ = const_cast< ::StartEventAckMessage*>( - ::StartEventAckMessage::internal_default_instance()); -#else - starteventackmessage_ = const_cast< ::StartEventAckMessage*>(&::StartEventAckMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gamestartinitialmessage_ = const_cast< ::GameStartInitialMessage*>( - ::GameStartInitialMessage::internal_default_instance()); -#else - gamestartinitialmessage_ = const_cast< ::GameStartInitialMessage*>(&::GameStartInitialMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gamestartrejoinmessage_ = const_cast< ::GameStartRejoinMessage*>( - ::GameStartRejoinMessage::internal_default_instance()); -#else - gamestartrejoinmessage_ = const_cast< ::GameStartRejoinMessage*>(&::GameStartRejoinMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - handstartmessage_ = const_cast< ::HandStartMessage*>( - ::HandStartMessage::internal_default_instance()); -#else - handstartmessage_ = const_cast< ::HandStartMessage*>(&::HandStartMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - playersturnmessage_ = const_cast< ::PlayersTurnMessage*>( - ::PlayersTurnMessage::internal_default_instance()); -#else - playersturnmessage_ = const_cast< ::PlayersTurnMessage*>(&::PlayersTurnMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - myactionrequestmessage_ = const_cast< ::MyActionRequestMessage*>( - ::MyActionRequestMessage::internal_default_instance()); -#else - myactionrequestmessage_ = const_cast< ::MyActionRequestMessage*>(&::MyActionRequestMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - youractionrejectedmessage_ = const_cast< ::YourActionRejectedMessage*>( - ::YourActionRejectedMessage::internal_default_instance()); -#else - youractionrejectedmessage_ = const_cast< ::YourActionRejectedMessage*>(&::YourActionRejectedMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - playersactiondonemessage_ = const_cast< ::PlayersActionDoneMessage*>( - ::PlayersActionDoneMessage::internal_default_instance()); -#else - playersactiondonemessage_ = const_cast< ::PlayersActionDoneMessage*>(&::PlayersActionDoneMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - dealflopcardsmessage_ = const_cast< ::DealFlopCardsMessage*>( - ::DealFlopCardsMessage::internal_default_instance()); -#else - dealflopcardsmessage_ = const_cast< ::DealFlopCardsMessage*>(&::DealFlopCardsMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - dealturncardmessage_ = const_cast< ::DealTurnCardMessage*>( - ::DealTurnCardMessage::internal_default_instance()); -#else - dealturncardmessage_ = const_cast< ::DealTurnCardMessage*>(&::DealTurnCardMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - dealrivercardmessage_ = const_cast< ::DealRiverCardMessage*>( - ::DealRiverCardMessage::internal_default_instance()); -#else - dealrivercardmessage_ = const_cast< ::DealRiverCardMessage*>(&::DealRiverCardMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - allinshowcardsmessage_ = const_cast< ::AllInShowCardsMessage*>( - ::AllInShowCardsMessage::internal_default_instance()); -#else - allinshowcardsmessage_ = const_cast< ::AllInShowCardsMessage*>(&::AllInShowCardsMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - endofhandshowcardsmessage_ = const_cast< ::EndOfHandShowCardsMessage*>( - ::EndOfHandShowCardsMessage::internal_default_instance()); -#else - endofhandshowcardsmessage_ = const_cast< ::EndOfHandShowCardsMessage*>(&::EndOfHandShowCardsMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - endofhandhidecardsmessage_ = const_cast< ::EndOfHandHideCardsMessage*>( - ::EndOfHandHideCardsMessage::internal_default_instance()); -#else - endofhandhidecardsmessage_ = const_cast< ::EndOfHandHideCardsMessage*>(&::EndOfHandHideCardsMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - showmycardsrequestmessage_ = const_cast< ::ShowMyCardsRequestMessage*>( - ::ShowMyCardsRequestMessage::internal_default_instance()); -#else - showmycardsrequestmessage_ = const_cast< ::ShowMyCardsRequestMessage*>(&::ShowMyCardsRequestMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - afterhandshowcardsmessage_ = const_cast< ::AfterHandShowCardsMessage*>( - ::AfterHandShowCardsMessage::internal_default_instance()); -#else - afterhandshowcardsmessage_ = const_cast< ::AfterHandShowCardsMessage*>(&::AfterHandShowCardsMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - endofgamemessage_ = const_cast< ::EndOfGameMessage*>( - ::EndOfGameMessage::internal_default_instance()); -#else - endofgamemessage_ = const_cast< ::EndOfGameMessage*>(&::EndOfGameMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - playeridchangedmessage_ = const_cast< ::PlayerIdChangedMessage*>( - ::PlayerIdChangedMessage::internal_default_instance()); -#else - playeridchangedmessage_ = const_cast< ::PlayerIdChangedMessage*>(&::PlayerIdChangedMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - askkickplayermessage_ = const_cast< ::AskKickPlayerMessage*>( - ::AskKickPlayerMessage::internal_default_instance()); -#else - askkickplayermessage_ = const_cast< ::AskKickPlayerMessage*>(&::AskKickPlayerMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - askkickdeniedmessage_ = const_cast< ::AskKickDeniedMessage*>( - ::AskKickDeniedMessage::internal_default_instance()); -#else - askkickdeniedmessage_ = const_cast< ::AskKickDeniedMessage*>(&::AskKickDeniedMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - startkickpetitionmessage_ = const_cast< ::StartKickPetitionMessage*>( - ::StartKickPetitionMessage::internal_default_instance()); -#else - startkickpetitionmessage_ = const_cast< ::StartKickPetitionMessage*>(&::StartKickPetitionMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - votekickrequestmessage_ = const_cast< ::VoteKickRequestMessage*>( - ::VoteKickRequestMessage::internal_default_instance()); -#else - votekickrequestmessage_ = const_cast< ::VoteKickRequestMessage*>(&::VoteKickRequestMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - votekickreplymessage_ = const_cast< ::VoteKickReplyMessage*>( - ::VoteKickReplyMessage::internal_default_instance()); -#else - votekickreplymessage_ = const_cast< ::VoteKickReplyMessage*>(&::VoteKickReplyMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - kickpetitionupdatemessage_ = const_cast< ::KickPetitionUpdateMessage*>( - ::KickPetitionUpdateMessage::internal_default_instance()); -#else - kickpetitionupdatemessage_ = const_cast< ::KickPetitionUpdateMessage*>(&::KickPetitionUpdateMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - endkickpetitionmessage_ = const_cast< ::EndKickPetitionMessage*>( - ::EndKickPetitionMessage::internal_default_instance()); -#else - endkickpetitionmessage_ = const_cast< ::EndKickPetitionMessage*>(&::EndKickPetitionMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - statisticsmessage_ = const_cast< ::StatisticsMessage*>( - ::StatisticsMessage::internal_default_instance()); -#else - statisticsmessage_ = const_cast< ::StatisticsMessage*>(&::StatisticsMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - chatrequestmessage_ = const_cast< ::ChatRequestMessage*>( - ::ChatRequestMessage::internal_default_instance()); -#else - chatrequestmessage_ = const_cast< ::ChatRequestMessage*>(&::ChatRequestMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - chatmessage_ = const_cast< ::ChatMessage*>( - ::ChatMessage::internal_default_instance()); -#else - chatmessage_ = const_cast< ::ChatMessage*>(&::ChatMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - chatrejectmessage_ = const_cast< ::ChatRejectMessage*>( - ::ChatRejectMessage::internal_default_instance()); -#else - chatrejectmessage_ = const_cast< ::ChatRejectMessage*>(&::ChatRejectMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - dialogmessage_ = const_cast< ::DialogMessage*>( - ::DialogMessage::internal_default_instance()); -#else - dialogmessage_ = const_cast< ::DialogMessage*>(&::DialogMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - timeoutwarningmessage_ = const_cast< ::TimeoutWarningMessage*>( - ::TimeoutWarningMessage::internal_default_instance()); -#else - timeoutwarningmessage_ = const_cast< ::TimeoutWarningMessage*>(&::TimeoutWarningMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - resettimeoutmessage_ = const_cast< ::ResetTimeoutMessage*>( - ::ResetTimeoutMessage::internal_default_instance()); -#else - resettimeoutmessage_ = const_cast< ::ResetTimeoutMessage*>(&::ResetTimeoutMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - reportavatarmessage_ = const_cast< ::ReportAvatarMessage*>( - ::ReportAvatarMessage::internal_default_instance()); -#else - reportavatarmessage_ = const_cast< ::ReportAvatarMessage*>(&::ReportAvatarMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - reportavatarackmessage_ = const_cast< ::ReportAvatarAckMessage*>( - ::ReportAvatarAckMessage::internal_default_instance()); -#else - reportavatarackmessage_ = const_cast< ::ReportAvatarAckMessage*>(&::ReportAvatarAckMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - reportgamemessage_ = const_cast< ::ReportGameMessage*>( - ::ReportGameMessage::internal_default_instance()); -#else - reportgamemessage_ = const_cast< ::ReportGameMessage*>(&::ReportGameMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - reportgameackmessage_ = const_cast< ::ReportGameAckMessage*>( - ::ReportGameAckMessage::internal_default_instance()); -#else - reportgameackmessage_ = const_cast< ::ReportGameAckMessage*>(&::ReportGameAckMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - errormessage_ = const_cast< ::ErrorMessage*>( - ::ErrorMessage::internal_default_instance()); -#else - errormessage_ = const_cast< ::ErrorMessage*>(&::ErrorMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - adminremovegamemessage_ = const_cast< ::AdminRemoveGameMessage*>( - ::AdminRemoveGameMessage::internal_default_instance()); -#else - adminremovegamemessage_ = const_cast< ::AdminRemoveGameMessage*>(&::AdminRemoveGameMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - adminremovegameackmessage_ = const_cast< ::AdminRemoveGameAckMessage*>( - ::AdminRemoveGameAckMessage::internal_default_instance()); -#else - adminremovegameackmessage_ = const_cast< ::AdminRemoveGameAckMessage*>(&::AdminRemoveGameAckMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - adminbanplayermessage_ = const_cast< ::AdminBanPlayerMessage*>( - ::AdminBanPlayerMessage::internal_default_instance()); -#else - adminbanplayermessage_ = const_cast< ::AdminBanPlayerMessage*>(&::AdminBanPlayerMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - adminbanplayerackmessage_ = const_cast< ::AdminBanPlayerAckMessage*>( - ::AdminBanPlayerAckMessage::internal_default_instance()); -#else - adminbanplayerackmessage_ = const_cast< ::AdminBanPlayerAckMessage*>(&::AdminBanPlayerAckMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gamelistspectatorjoinedmessage_ = const_cast< ::GameListSpectatorJoinedMessage*>( - ::GameListSpectatorJoinedMessage::internal_default_instance()); -#else - gamelistspectatorjoinedmessage_ = const_cast< ::GameListSpectatorJoinedMessage*>(&::GameListSpectatorJoinedMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gamelistspectatorleftmessage_ = const_cast< ::GameListSpectatorLeftMessage*>( - ::GameListSpectatorLeftMessage::internal_default_instance()); -#else - gamelistspectatorleftmessage_ = const_cast< ::GameListSpectatorLeftMessage*>(&::GameListSpectatorLeftMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gamespectatorjoinedmessage_ = const_cast< ::GameSpectatorJoinedMessage*>( - ::GameSpectatorJoinedMessage::internal_default_instance()); -#else - gamespectatorjoinedmessage_ = const_cast< ::GameSpectatorJoinedMessage*>(&::GameSpectatorJoinedMessage::default_instance()); -#endif -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - gamespectatorleftmessage_ = const_cast< ::GameSpectatorLeftMessage*>( - ::GameSpectatorLeftMessage::internal_default_instance()); -#else - gamespectatorleftmessage_ = const_cast< ::GameSpectatorLeftMessage*>(&::GameSpectatorLeftMessage::default_instance()); -#endif -} - PokerTHMessage::PokerTHMessage(const PokerTHMessage& from) - : ::google::protobuf::MessageLite() { - SharedCtor(); - MergeFrom(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) } void PokerTHMessage::SharedCtor() { - _cached_size_ = 0; + ::google::protobuf::internal::InitSCC( + &scc_info_PokerTHMessage_pokerth_2eproto.base); + ::memset(&announcemessage_, 0, static_cast( + reinterpret_cast(&gamespectatorleftmessage_) - + reinterpret_cast(&announcemessage_)) + sizeof(gamespectatorleftmessage_)); messagetype_ = 1; - announcemessage_ = NULL; - initmessage_ = NULL; - authserverchallengemessage_ = NULL; - authclientresponsemessage_ = NULL; - authserververificationmessage_ = NULL; - initackmessage_ = NULL; - avatarrequestmessage_ = NULL; - avatarheadermessage_ = NULL; - avatardatamessage_ = NULL; - avatarendmessage_ = NULL; - unknownavatarmessage_ = NULL; - playerlistmessage_ = NULL; - gamelistnewmessage_ = NULL; - gamelistupdatemessage_ = NULL; - gamelistplayerjoinedmessage_ = NULL; - gamelistplayerleftmessage_ = NULL; - gamelistadminchangedmessage_ = NULL; - playerinforequestmessage_ = NULL; - playerinforeplymessage_ = NULL; - subscriptionrequestmessage_ = NULL; - joinexistinggamemessage_ = NULL; - joinnewgamemessage_ = NULL; - rejoinexistinggamemessage_ = NULL; - joingameackmessage_ = NULL; - joingamefailedmessage_ = NULL; - gameplayerjoinedmessage_ = NULL; - gameplayerleftmessage_ = NULL; - gameadminchangedmessage_ = NULL; - removedfromgamemessage_ = NULL; - kickplayerrequestmessage_ = NULL; - leavegamerequestmessage_ = NULL; - inviteplayertogamemessage_ = NULL; - invitenotifymessage_ = NULL; - rejectgameinvitationmessage_ = NULL; - rejectinvnotifymessage_ = NULL; - starteventmessage_ = NULL; - starteventackmessage_ = NULL; - gamestartinitialmessage_ = NULL; - gamestartrejoinmessage_ = NULL; - handstartmessage_ = NULL; - playersturnmessage_ = NULL; - myactionrequestmessage_ = NULL; - youractionrejectedmessage_ = NULL; - playersactiondonemessage_ = NULL; - dealflopcardsmessage_ = NULL; - dealturncardmessage_ = NULL; - dealrivercardmessage_ = NULL; - allinshowcardsmessage_ = NULL; - endofhandshowcardsmessage_ = NULL; - endofhandhidecardsmessage_ = NULL; - showmycardsrequestmessage_ = NULL; - afterhandshowcardsmessage_ = NULL; - endofgamemessage_ = NULL; - playeridchangedmessage_ = NULL; - askkickplayermessage_ = NULL; - askkickdeniedmessage_ = NULL; - startkickpetitionmessage_ = NULL; - votekickrequestmessage_ = NULL; - votekickreplymessage_ = NULL; - kickpetitionupdatemessage_ = NULL; - endkickpetitionmessage_ = NULL; - statisticsmessage_ = NULL; - chatrequestmessage_ = NULL; - chatmessage_ = NULL; - chatrejectmessage_ = NULL; - dialogmessage_ = NULL; - timeoutwarningmessage_ = NULL; - resettimeoutmessage_ = NULL; - reportavatarmessage_ = NULL; - reportavatarackmessage_ = NULL; - reportgamemessage_ = NULL; - reportgameackmessage_ = NULL; - errormessage_ = NULL; - adminremovegamemessage_ = NULL; - adminremovegameackmessage_ = NULL; - adminbanplayermessage_ = NULL; - adminbanplayerackmessage_ = NULL; - gamelistspectatorjoinedmessage_ = NULL; - gamelistspectatorleftmessage_ = NULL; - gamespectatorjoinedmessage_ = NULL; - gamespectatorleftmessage_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); } PokerTHMessage::~PokerTHMessage() { @@ -25792,1478 +35163,2486 @@ PokerTHMessage::~PokerTHMessage() { } void PokerTHMessage::SharedDtor() { - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - if (this != &default_instance()) { - #else - if (this != default_instance_) { - #endif - delete announcemessage_; - delete initmessage_; - delete authserverchallengemessage_; - delete authclientresponsemessage_; - delete authserververificationmessage_; - delete initackmessage_; - delete avatarrequestmessage_; - delete avatarheadermessage_; - delete avatardatamessage_; - delete avatarendmessage_; - delete unknownavatarmessage_; - delete playerlistmessage_; - delete gamelistnewmessage_; - delete gamelistupdatemessage_; - delete gamelistplayerjoinedmessage_; - delete gamelistplayerleftmessage_; - delete gamelistadminchangedmessage_; - delete playerinforequestmessage_; - delete playerinforeplymessage_; - delete subscriptionrequestmessage_; - delete joinexistinggamemessage_; - delete joinnewgamemessage_; - delete rejoinexistinggamemessage_; - delete joingameackmessage_; - delete joingamefailedmessage_; - delete gameplayerjoinedmessage_; - delete gameplayerleftmessage_; - delete gameadminchangedmessage_; - delete removedfromgamemessage_; - delete kickplayerrequestmessage_; - delete leavegamerequestmessage_; - delete inviteplayertogamemessage_; - delete invitenotifymessage_; - delete rejectgameinvitationmessage_; - delete rejectinvnotifymessage_; - delete starteventmessage_; - delete starteventackmessage_; - delete gamestartinitialmessage_; - delete gamestartrejoinmessage_; - delete handstartmessage_; - delete playersturnmessage_; - delete myactionrequestmessage_; - delete youractionrejectedmessage_; - delete playersactiondonemessage_; - delete dealflopcardsmessage_; - delete dealturncardmessage_; - delete dealrivercardmessage_; - delete allinshowcardsmessage_; - delete endofhandshowcardsmessage_; - delete endofhandhidecardsmessage_; - delete showmycardsrequestmessage_; - delete afterhandshowcardsmessage_; - delete endofgamemessage_; - delete playeridchangedmessage_; - delete askkickplayermessage_; - delete askkickdeniedmessage_; - delete startkickpetitionmessage_; - delete votekickrequestmessage_; - delete votekickreplymessage_; - delete kickpetitionupdatemessage_; - delete endkickpetitionmessage_; - delete statisticsmessage_; - delete chatrequestmessage_; - delete chatmessage_; - delete chatrejectmessage_; - delete dialogmessage_; - delete timeoutwarningmessage_; - delete resettimeoutmessage_; - delete reportavatarmessage_; - delete reportavatarackmessage_; - delete reportgamemessage_; - delete reportgameackmessage_; - delete errormessage_; - delete adminremovegamemessage_; - delete adminremovegameackmessage_; - delete adminbanplayermessage_; - delete adminbanplayerackmessage_; - delete gamelistspectatorjoinedmessage_; - delete gamelistspectatorleftmessage_; - delete gamespectatorjoinedmessage_; - delete gamespectatorleftmessage_; - } + if (this != internal_default_instance()) delete announcemessage_; + if (this != internal_default_instance()) delete initmessage_; + if (this != internal_default_instance()) delete authserverchallengemessage_; + if (this != internal_default_instance()) delete authclientresponsemessage_; + if (this != internal_default_instance()) delete authserververificationmessage_; + if (this != internal_default_instance()) delete initackmessage_; + if (this != internal_default_instance()) delete avatarrequestmessage_; + if (this != internal_default_instance()) delete avatarheadermessage_; + if (this != internal_default_instance()) delete avatardatamessage_; + if (this != internal_default_instance()) delete avatarendmessage_; + if (this != internal_default_instance()) delete unknownavatarmessage_; + if (this != internal_default_instance()) delete playerlistmessage_; + if (this != internal_default_instance()) delete gamelistnewmessage_; + if (this != internal_default_instance()) delete gamelistupdatemessage_; + if (this != internal_default_instance()) delete gamelistplayerjoinedmessage_; + if (this != internal_default_instance()) delete gamelistplayerleftmessage_; + if (this != internal_default_instance()) delete gamelistadminchangedmessage_; + if (this != internal_default_instance()) delete playerinforequestmessage_; + if (this != internal_default_instance()) delete playerinforeplymessage_; + if (this != internal_default_instance()) delete subscriptionrequestmessage_; + if (this != internal_default_instance()) delete joinexistinggamemessage_; + if (this != internal_default_instance()) delete joinnewgamemessage_; + if (this != internal_default_instance()) delete rejoinexistinggamemessage_; + if (this != internal_default_instance()) delete joingameackmessage_; + if (this != internal_default_instance()) delete joingamefailedmessage_; + if (this != internal_default_instance()) delete gameplayerjoinedmessage_; + if (this != internal_default_instance()) delete gameplayerleftmessage_; + if (this != internal_default_instance()) delete gameadminchangedmessage_; + if (this != internal_default_instance()) delete removedfromgamemessage_; + if (this != internal_default_instance()) delete kickplayerrequestmessage_; + if (this != internal_default_instance()) delete leavegamerequestmessage_; + if (this != internal_default_instance()) delete inviteplayertogamemessage_; + if (this != internal_default_instance()) delete invitenotifymessage_; + if (this != internal_default_instance()) delete rejectgameinvitationmessage_; + if (this != internal_default_instance()) delete rejectinvnotifymessage_; + if (this != internal_default_instance()) delete starteventmessage_; + if (this != internal_default_instance()) delete starteventackmessage_; + if (this != internal_default_instance()) delete gamestartinitialmessage_; + if (this != internal_default_instance()) delete gamestartrejoinmessage_; + if (this != internal_default_instance()) delete handstartmessage_; + if (this != internal_default_instance()) delete playersturnmessage_; + if (this != internal_default_instance()) delete myactionrequestmessage_; + if (this != internal_default_instance()) delete youractionrejectedmessage_; + if (this != internal_default_instance()) delete playersactiondonemessage_; + if (this != internal_default_instance()) delete dealflopcardsmessage_; + if (this != internal_default_instance()) delete dealturncardmessage_; + if (this != internal_default_instance()) delete dealrivercardmessage_; + if (this != internal_default_instance()) delete allinshowcardsmessage_; + if (this != internal_default_instance()) delete endofhandshowcardsmessage_; + if (this != internal_default_instance()) delete endofhandhidecardsmessage_; + if (this != internal_default_instance()) delete showmycardsrequestmessage_; + if (this != internal_default_instance()) delete afterhandshowcardsmessage_; + if (this != internal_default_instance()) delete endofgamemessage_; + if (this != internal_default_instance()) delete playeridchangedmessage_; + if (this != internal_default_instance()) delete askkickplayermessage_; + if (this != internal_default_instance()) delete askkickdeniedmessage_; + if (this != internal_default_instance()) delete startkickpetitionmessage_; + if (this != internal_default_instance()) delete votekickrequestmessage_; + if (this != internal_default_instance()) delete votekickreplymessage_; + if (this != internal_default_instance()) delete kickpetitionupdatemessage_; + if (this != internal_default_instance()) delete endkickpetitionmessage_; + if (this != internal_default_instance()) delete statisticsmessage_; + if (this != internal_default_instance()) delete chatrequestmessage_; + if (this != internal_default_instance()) delete chatmessage_; + if (this != internal_default_instance()) delete chatrejectmessage_; + if (this != internal_default_instance()) delete dialogmessage_; + if (this != internal_default_instance()) delete timeoutwarningmessage_; + if (this != internal_default_instance()) delete resettimeoutmessage_; + if (this != internal_default_instance()) delete reportavatarmessage_; + if (this != internal_default_instance()) delete reportavatarackmessage_; + if (this != internal_default_instance()) delete reportgamemessage_; + if (this != internal_default_instance()) delete reportgameackmessage_; + if (this != internal_default_instance()) delete errormessage_; + if (this != internal_default_instance()) delete adminremovegamemessage_; + if (this != internal_default_instance()) delete adminremovegameackmessage_; + if (this != internal_default_instance()) delete adminbanplayermessage_; + if (this != internal_default_instance()) delete adminbanplayerackmessage_; + if (this != internal_default_instance()) delete gamelistspectatorjoinedmessage_; + if (this != internal_default_instance()) delete gamelistspectatorleftmessage_; + if (this != internal_default_instance()) delete gamespectatorjoinedmessage_; + if (this != internal_default_instance()) delete gamespectatorleftmessage_; } void PokerTHMessage::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + _cached_size_.Set(size); } const PokerTHMessage& PokerTHMessage::default_instance() { -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - protobuf_AddDesc_pokerth_2eproto(); -#else - if (default_instance_ == NULL) protobuf_AddDesc_pokerth_2eproto(); -#endif - return *default_instance_; + ::google::protobuf::internal::InitSCC(&::scc_info_PokerTHMessage_pokerth_2eproto.base); + return *internal_default_instance(); } -PokerTHMessage* PokerTHMessage::default_instance_ = NULL; - -PokerTHMessage* PokerTHMessage::New() const { - return new PokerTHMessage; -} void PokerTHMessage::Clear() { - if (_has_bits_[0 / 32] & 255) { +// @@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(); + } messagetype_ = 1; - if (has_announcemessage()) { - if (announcemessage_ != NULL) announcemessage_->::AnnounceMessage::Clear(); - } - if (has_initmessage()) { - if (initmessage_ != NULL) initmessage_->::InitMessage::Clear(); - } - if (has_authserverchallengemessage()) { - if (authserverchallengemessage_ != NULL) authserverchallengemessage_->::AuthServerChallengeMessage::Clear(); - } - if (has_authclientresponsemessage()) { - if (authclientresponsemessage_ != NULL) authclientresponsemessage_->::AuthClientResponseMessage::Clear(); - } - if (has_authserververificationmessage()) { - if (authserververificationmessage_ != NULL) authserververificationmessage_->::AuthServerVerificationMessage::Clear(); - } - if (has_initackmessage()) { - if (initackmessage_ != NULL) initackmessage_->::InitAckMessage::Clear(); - } - if (has_avatarrequestmessage()) { - if (avatarrequestmessage_ != NULL) avatarrequestmessage_->::AvatarRequestMessage::Clear(); - } } - if (_has_bits_[8 / 32] & 65280) { - 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] & 16711680) { - 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] & 4278190080) { - 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] & 255) { - 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] & 65280) { - 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] & 16711680) { - 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] & 4278190080) { - 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] & 255) { - 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] & 65280) { - 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] & 196608) { - 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_)); - mutable_unknown_fields()->clear(); + _has_bits_.Clear(); + _internal_metadata_.Clear(); } +#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 (!(EXPRESSION)) goto failure +#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; - ::google::protobuf::io::StringOutputStream unknown_fields_string( - mutable_unknown_fields()); + ::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_string); + &unknown_fields_output, false); // @@protoc_insertion_point(parse_start:PokerTHMessage) for (;;) { - ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(16383); + ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required .PokerTHMessage.PokerTHMessageType messageType = 1; case 1: { - if (tag == 8) { - int value; + 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 (::PokerTHMessage_PokerTHMessageType_IsValid(value)) { set_messagetype(static_cast< ::PokerTHMessage_PokerTHMessageType >(value)); } else { - unknown_fields_stream.WriteVarint32(tag); - unknown_fields_stream.WriteVarint32(value); + unknown_fields_stream.WriteVarint32(8u); + unknown_fields_stream.WriteVarint32( + static_cast<::google::protobuf::uint32>(value)); } } else { goto handle_unusual; } - if (input->ExpectTag(18)) goto parse_announceMessage; break; } // optional .AnnounceMessage announceMessage = 2; case 2: { - if (tag == 18) { - parse_announceMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_announcemessage())); } else { goto handle_unusual; } - if (input->ExpectTag(26)) goto parse_initMessage; break; } // optional .InitMessage initMessage = 3; case 3: { - if (tag == 26) { - parse_initMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_initmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(34)) goto parse_authServerChallengeMessage; break; } // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; case 4: { - if (tag == 34) { - parse_authServerChallengeMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_authserverchallengemessage())); } else { goto handle_unusual; } - if (input->ExpectTag(42)) goto parse_authClientResponseMessage; break; } // optional .AuthClientResponseMessage authClientResponseMessage = 5; case 5: { - if (tag == 42) { - parse_authClientResponseMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_authclientresponsemessage())); } else { goto handle_unusual; } - if (input->ExpectTag(50)) goto parse_authServerVerificationMessage; break; } // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; case 6: { - if (tag == 50) { - parse_authServerVerificationMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_authserververificationmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(58)) goto parse_initAckMessage; break; } // optional .InitAckMessage initAckMessage = 7; case 7: { - if (tag == 58) { - parse_initAckMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_initackmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(66)) goto parse_avatarRequestMessage; break; } // optional .AvatarRequestMessage avatarRequestMessage = 8; case 8: { - if (tag == 66) { - parse_avatarRequestMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_avatarrequestmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(74)) goto parse_avatarHeaderMessage; break; } // optional .AvatarHeaderMessage avatarHeaderMessage = 9; case 9: { - if (tag == 74) { - parse_avatarHeaderMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_avatarheadermessage())); } else { goto handle_unusual; } - if (input->ExpectTag(82)) goto parse_avatarDataMessage; break; } // optional .AvatarDataMessage avatarDataMessage = 10; case 10: { - if (tag == 82) { - parse_avatarDataMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_avatardatamessage())); } else { goto handle_unusual; } - if (input->ExpectTag(90)) goto parse_avatarEndMessage; break; } // optional .AvatarEndMessage avatarEndMessage = 11; case 11: { - if (tag == 90) { - parse_avatarEndMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_avatarendmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(98)) goto parse_unknownAvatarMessage; break; } // optional .UnknownAvatarMessage unknownAvatarMessage = 12; case 12: { - if (tag == 98) { - parse_unknownAvatarMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (98 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_unknownavatarmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(106)) goto parse_playerListMessage; break; } // optional .PlayerListMessage playerListMessage = 13; case 13: { - if (tag == 106) { - parse_playerListMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (106 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_playerlistmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(114)) goto parse_gameListNewMessage; break; } // optional .GameListNewMessage gameListNewMessage = 14; case 14: { - if (tag == 114) { - parse_gameListNewMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (114 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_gamelistnewmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(122)) goto parse_gameListUpdateMessage; break; } // optional .GameListUpdateMessage gameListUpdateMessage = 15; case 15: { - if (tag == 122) { - parse_gameListUpdateMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (122 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_gamelistupdatemessage())); } else { goto handle_unusual; } - if (input->ExpectTag(130)) goto parse_gameListPlayerJoinedMessage; break; } // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; case 16: { - if (tag == 130) { - parse_gameListPlayerJoinedMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_gamelistplayerjoinedmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(138)) goto parse_gameListPlayerLeftMessage; break; } // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; case 17: { - if (tag == 138) { - parse_gameListPlayerLeftMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (138 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_gamelistplayerleftmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(146)) goto parse_gameListAdminChangedMessage; break; } // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; case 18: { - if (tag == 146) { - parse_gameListAdminChangedMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (146 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_gamelistadminchangedmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(154)) goto parse_playerInfoRequestMessage; break; } // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; case 19: { - if (tag == 154) { - parse_playerInfoRequestMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (154 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_playerinforequestmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(162)) goto parse_playerInfoReplyMessage; break; } // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; case 20: { - if (tag == 162) { - parse_playerInfoReplyMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (162 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_playerinforeplymessage())); } else { goto handle_unusual; } - if (input->ExpectTag(170)) goto parse_subscriptionRequestMessage; break; } // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; case 21: { - if (tag == 170) { - parse_subscriptionRequestMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (170 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_subscriptionrequestmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(178)) goto parse_joinExistingGameMessage; break; } // optional .JoinExistingGameMessage joinExistingGameMessage = 22; case 22: { - if (tag == 178) { - parse_joinExistingGameMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (178 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_joinexistinggamemessage())); } else { goto handle_unusual; } - if (input->ExpectTag(186)) goto parse_joinNewGameMessage; break; } // optional .JoinNewGameMessage joinNewGameMessage = 23; case 23: { - if (tag == 186) { - parse_joinNewGameMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (186 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_joinnewgamemessage())); } else { goto handle_unusual; } - if (input->ExpectTag(194)) goto parse_rejoinExistingGameMessage; break; } // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; case 24: { - if (tag == 194) { - parse_rejoinExistingGameMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (194 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_rejoinexistinggamemessage())); } else { goto handle_unusual; } - if (input->ExpectTag(202)) goto parse_joinGameAckMessage; break; } // optional .JoinGameAckMessage joinGameAckMessage = 25; case 25: { - if (tag == 202) { - parse_joinGameAckMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (202 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_joingameackmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(210)) goto parse_joinGameFailedMessage; break; } // optional .JoinGameFailedMessage joinGameFailedMessage = 26; case 26: { - if (tag == 210) { - parse_joinGameFailedMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (210 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_joingamefailedmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(218)) goto parse_gamePlayerJoinedMessage; break; } // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; case 27: { - if (tag == 218) { - parse_gamePlayerJoinedMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (218 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_gameplayerjoinedmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(226)) goto parse_gamePlayerLeftMessage; break; } // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; case 28: { - if (tag == 226) { - parse_gamePlayerLeftMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (226 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_gameplayerleftmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(234)) goto parse_gameAdminChangedMessage; break; } // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; case 29: { - if (tag == 234) { - parse_gameAdminChangedMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (234 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_gameadminchangedmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(242)) goto parse_removedFromGameMessage; break; } // optional .RemovedFromGameMessage removedFromGameMessage = 30; case 30: { - if (tag == 242) { - parse_removedFromGameMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (242 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_removedfromgamemessage())); } else { goto handle_unusual; } - if (input->ExpectTag(250)) goto parse_kickPlayerRequestMessage; break; } // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; case 31: { - if (tag == 250) { - parse_kickPlayerRequestMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (250 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_kickplayerrequestmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(258)) goto parse_leaveGameRequestMessage; break; } // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; case 32: { - if (tag == 258) { - parse_leaveGameRequestMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (258 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_leavegamerequestmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(266)) goto parse_invitePlayerToGameMessage; break; } // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; case 33: { - if (tag == 266) { - parse_invitePlayerToGameMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (266 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_inviteplayertogamemessage())); } else { goto handle_unusual; } - if (input->ExpectTag(274)) goto parse_inviteNotifyMessage; break; } // optional .InviteNotifyMessage inviteNotifyMessage = 34; case 34: { - if (tag == 274) { - parse_inviteNotifyMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (274 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_invitenotifymessage())); } else { goto handle_unusual; } - if (input->ExpectTag(282)) goto parse_rejectGameInvitationMessage; break; } // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; case 35: { - if (tag == 282) { - parse_rejectGameInvitationMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (282 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_rejectgameinvitationmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(290)) goto parse_rejectInvNotifyMessage; break; } // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; case 36: { - if (tag == 290) { - parse_rejectInvNotifyMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (290 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_rejectinvnotifymessage())); } else { goto handle_unusual; } - if (input->ExpectTag(298)) goto parse_startEventMessage; break; } // optional .StartEventMessage startEventMessage = 37; case 37: { - if (tag == 298) { - parse_startEventMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (298 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_starteventmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(306)) goto parse_startEventAckMessage; break; } // optional .StartEventAckMessage startEventAckMessage = 38; case 38: { - if (tag == 306) { - parse_startEventAckMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (306 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_starteventackmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(314)) goto parse_gameStartInitialMessage; break; } // optional .GameStartInitialMessage gameStartInitialMessage = 39; case 39: { - if (tag == 314) { - parse_gameStartInitialMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (314 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_gamestartinitialmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(322)) goto parse_gameStartRejoinMessage; break; } // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; case 40: { - if (tag == 322) { - parse_gameStartRejoinMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (322 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_gamestartrejoinmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(330)) goto parse_handStartMessage; break; } // optional .HandStartMessage handStartMessage = 41; case 41: { - if (tag == 330) { - parse_handStartMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (330 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_handstartmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(338)) goto parse_playersTurnMessage; break; } // optional .PlayersTurnMessage playersTurnMessage = 42; case 42: { - if (tag == 338) { - parse_playersTurnMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (338 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_playersturnmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(346)) goto parse_myActionRequestMessage; break; } // optional .MyActionRequestMessage myActionRequestMessage = 43; case 43: { - if (tag == 346) { - parse_myActionRequestMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (346 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_myactionrequestmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(354)) goto parse_yourActionRejectedMessage; break; } // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; case 44: { - if (tag == 354) { - parse_yourActionRejectedMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (354 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_youractionrejectedmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(362)) goto parse_playersActionDoneMessage; break; } // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; case 45: { - if (tag == 362) { - parse_playersActionDoneMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (362 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_playersactiondonemessage())); } else { goto handle_unusual; } - if (input->ExpectTag(370)) goto parse_dealFlopCardsMessage; break; } // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; case 46: { - if (tag == 370) { - parse_dealFlopCardsMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (370 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_dealflopcardsmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(378)) goto parse_dealTurnCardMessage; break; } // optional .DealTurnCardMessage dealTurnCardMessage = 47; case 47: { - if (tag == 378) { - parse_dealTurnCardMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (378 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_dealturncardmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(386)) goto parse_dealRiverCardMessage; break; } // optional .DealRiverCardMessage dealRiverCardMessage = 48; case 48: { - if (tag == 386) { - parse_dealRiverCardMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (386 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_dealrivercardmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(394)) goto parse_allInShowCardsMessage; break; } // optional .AllInShowCardsMessage allInShowCardsMessage = 49; case 49: { - if (tag == 394) { - parse_allInShowCardsMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (394 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_allinshowcardsmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(402)) goto parse_endOfHandShowCardsMessage; break; } // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; case 50: { - if (tag == 402) { - parse_endOfHandShowCardsMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (402 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_endofhandshowcardsmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(410)) goto parse_endOfHandHideCardsMessage; break; } // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; case 51: { - if (tag == 410) { - parse_endOfHandHideCardsMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (410 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_endofhandhidecardsmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(418)) goto parse_showMyCardsRequestMessage; break; } // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; case 52: { - if (tag == 418) { - parse_showMyCardsRequestMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (418 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_showmycardsrequestmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(426)) goto parse_afterHandShowCardsMessage; break; } // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; case 53: { - if (tag == 426) { - parse_afterHandShowCardsMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (426 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_afterhandshowcardsmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(434)) goto parse_endOfGameMessage; break; } // optional .EndOfGameMessage endOfGameMessage = 54; case 54: { - if (tag == 434) { - parse_endOfGameMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (434 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_endofgamemessage())); } else { goto handle_unusual; } - if (input->ExpectTag(442)) goto parse_playerIdChangedMessage; break; } // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; case 55: { - if (tag == 442) { - parse_playerIdChangedMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (442 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_playeridchangedmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(450)) goto parse_askKickPlayerMessage; break; } // optional .AskKickPlayerMessage askKickPlayerMessage = 56; case 56: { - if (tag == 450) { - parse_askKickPlayerMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (450 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_askkickplayermessage())); } else { goto handle_unusual; } - if (input->ExpectTag(458)) goto parse_askKickDeniedMessage; break; } // optional .AskKickDeniedMessage askKickDeniedMessage = 57; case 57: { - if (tag == 458) { - parse_askKickDeniedMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (458 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_askkickdeniedmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(466)) goto parse_startKickPetitionMessage; break; } // optional .StartKickPetitionMessage startKickPetitionMessage = 58; case 58: { - if (tag == 466) { - parse_startKickPetitionMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (466 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_startkickpetitionmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(474)) goto parse_voteKickRequestMessage; break; } // optional .VoteKickRequestMessage voteKickRequestMessage = 59; case 59: { - if (tag == 474) { - parse_voteKickRequestMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (474 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_votekickrequestmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(482)) goto parse_voteKickReplyMessage; break; } // optional .VoteKickReplyMessage voteKickReplyMessage = 60; case 60: { - if (tag == 482) { - parse_voteKickReplyMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (482 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_votekickreplymessage())); } else { goto handle_unusual; } - if (input->ExpectTag(490)) goto parse_kickPetitionUpdateMessage; break; } // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; case 61: { - if (tag == 490) { - parse_kickPetitionUpdateMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (490 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_kickpetitionupdatemessage())); } else { goto handle_unusual; } - if (input->ExpectTag(498)) goto parse_endKickPetitionMessage; break; } // optional .EndKickPetitionMessage endKickPetitionMessage = 62; case 62: { - if (tag == 498) { - parse_endKickPetitionMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (498 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_endkickpetitionmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(506)) goto parse_statisticsMessage; break; } // optional .StatisticsMessage statisticsMessage = 63; case 63: { - if (tag == 506) { - parse_statisticsMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (506 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_statisticsmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(514)) goto parse_chatRequestMessage; break; } // optional .ChatRequestMessage chatRequestMessage = 64; case 64: { - if (tag == 514) { - parse_chatRequestMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (514 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_chatrequestmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(522)) goto parse_chatMessage; break; } // optional .ChatMessage chatMessage = 65; case 65: { - if (tag == 522) { - parse_chatMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (522 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_chatmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(530)) goto parse_chatRejectMessage; break; } // optional .ChatRejectMessage chatRejectMessage = 66; case 66: { - if (tag == 530) { - parse_chatRejectMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (530 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_chatrejectmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(538)) goto parse_dialogMessage; break; } // optional .DialogMessage dialogMessage = 67; case 67: { - if (tag == 538) { - parse_dialogMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (538 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_dialogmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(546)) goto parse_timeoutWarningMessage; break; } // optional .TimeoutWarningMessage timeoutWarningMessage = 68; case 68: { - if (tag == 546) { - parse_timeoutWarningMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (546 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_timeoutwarningmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(554)) goto parse_resetTimeoutMessage; break; } // optional .ResetTimeoutMessage resetTimeoutMessage = 69; case 69: { - if (tag == 554) { - parse_resetTimeoutMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (554 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_resettimeoutmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(562)) goto parse_reportAvatarMessage; break; } // optional .ReportAvatarMessage reportAvatarMessage = 70; case 70: { - if (tag == 562) { - parse_reportAvatarMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (562 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_reportavatarmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(570)) goto parse_reportAvatarAckMessage; break; } // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; case 71: { - if (tag == 570) { - parse_reportAvatarAckMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (570 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_reportavatarackmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(578)) goto parse_reportGameMessage; break; } // optional .ReportGameMessage reportGameMessage = 72; case 72: { - if (tag == 578) { - parse_reportGameMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (578 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_reportgamemessage())); } else { goto handle_unusual; } - if (input->ExpectTag(586)) goto parse_reportGameAckMessage; break; } // optional .ReportGameAckMessage reportGameAckMessage = 73; case 73: { - if (tag == 586) { - parse_reportGameAckMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (586 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_reportgameackmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(594)) goto parse_errorMessage; break; } // optional .ErrorMessage errorMessage = 74; case 74: { - if (tag == 594) { - parse_errorMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (594 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_errormessage())); } else { goto handle_unusual; } - if (input->ExpectTag(602)) goto parse_adminRemoveGameMessage; break; } // optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; case 75: { - if (tag == 602) { - parse_adminRemoveGameMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (602 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_adminremovegamemessage())); } else { goto handle_unusual; } - if (input->ExpectTag(610)) goto parse_adminRemoveGameAckMessage; break; } // optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; case 76: { - if (tag == 610) { - parse_adminRemoveGameAckMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (610 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_adminremovegameackmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(618)) goto parse_adminBanPlayerMessage; break; } // optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; case 77: { - if (tag == 618) { - parse_adminBanPlayerMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (618 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_adminbanplayermessage())); } else { goto handle_unusual; } - if (input->ExpectTag(626)) goto parse_adminBanPlayerAckMessage; break; } // optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; case 78: { - if (tag == 626) { - parse_adminBanPlayerAckMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (626 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_adminbanplayerackmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(634)) goto parse_gameListSpectatorJoinedMessage; break; } // optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; case 79: { - if (tag == 634) { - parse_gameListSpectatorJoinedMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (634 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_gamelistspectatorjoinedmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(642)) goto parse_gameListSpectatorLeftMessage; break; } // optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; case 80: { - if (tag == 642) { - parse_gameListSpectatorLeftMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (642 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_gamelistspectatorleftmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(650)) goto parse_gameSpectatorJoinedMessage; break; } // optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; case 81: { - if (tag == 650) { - parse_gameSpectatorJoinedMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (650 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_gamespectatorjoinedmessage())); } else { goto handle_unusual; } - if (input->ExpectTag(658)) goto parse_gameSpectatorLeftMessage; break; } // optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; case 82: { - if (tag == 658) { - parse_gameSpectatorLeftMessage: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + if (static_cast< ::google::protobuf::uint8>(tag) == (658 & 0xFF)) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( input, mutable_gamespectatorleftmessage())); } else { goto handle_unusual; } - if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: - if (tag == 0 || - ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { + if (tag == 0) { goto success; } DO_(::google::protobuf::internal::WireFormatLite::SkipField( @@ -27280,1110 +37659,1122 @@ failure: 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 (has_messagetype()) { + if (cached_has_bits & 0x00020000u) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->messagetype(), output); } + cached_has_bits = _has_bits_[0]; // optional .AnnounceMessage announceMessage = 2; - if (has_announcemessage()) { + if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 2, this->announcemessage(), output); + 2, HasBitSetters::announcemessage(this), output); } // optional .InitMessage initMessage = 3; - if (has_initmessage()) { + if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 3, this->initmessage(), output); + 3, HasBitSetters::initmessage(this), output); } // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; - if (has_authserverchallengemessage()) { + if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 4, this->authserverchallengemessage(), output); + 4, HasBitSetters::authserverchallengemessage(this), output); } // optional .AuthClientResponseMessage authClientResponseMessage = 5; - if (has_authclientresponsemessage()) { + if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 5, this->authclientresponsemessage(), output); + 5, HasBitSetters::authclientresponsemessage(this), output); } // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; - if (has_authserververificationmessage()) { + if (cached_has_bits & 0x00000010u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 6, this->authserververificationmessage(), output); + 6, HasBitSetters::authserververificationmessage(this), output); } // optional .InitAckMessage initAckMessage = 7; - if (has_initackmessage()) { + if (cached_has_bits & 0x00000020u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 7, this->initackmessage(), output); + 7, HasBitSetters::initackmessage(this), output); } // optional .AvatarRequestMessage avatarRequestMessage = 8; - if (has_avatarrequestmessage()) { + if (cached_has_bits & 0x00000040u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 8, this->avatarrequestmessage(), output); + 8, HasBitSetters::avatarrequestmessage(this), output); } // optional .AvatarHeaderMessage avatarHeaderMessage = 9; - if (has_avatarheadermessage()) { + if (cached_has_bits & 0x00000080u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 9, this->avatarheadermessage(), output); + 9, HasBitSetters::avatarheadermessage(this), output); } // optional .AvatarDataMessage avatarDataMessage = 10; - if (has_avatardatamessage()) { + if (cached_has_bits & 0x00000100u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 10, this->avatardatamessage(), output); + 10, HasBitSetters::avatardatamessage(this), output); } // optional .AvatarEndMessage avatarEndMessage = 11; - if (has_avatarendmessage()) { + if (cached_has_bits & 0x00000200u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 11, this->avatarendmessage(), output); + 11, HasBitSetters::avatarendmessage(this), output); } // optional .UnknownAvatarMessage unknownAvatarMessage = 12; - if (has_unknownavatarmessage()) { + if (cached_has_bits & 0x00000400u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 12, this->unknownavatarmessage(), output); + 12, HasBitSetters::unknownavatarmessage(this), output); } // optional .PlayerListMessage playerListMessage = 13; - if (has_playerlistmessage()) { + if (cached_has_bits & 0x00000800u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 13, this->playerlistmessage(), output); + 13, HasBitSetters::playerlistmessage(this), output); } // optional .GameListNewMessage gameListNewMessage = 14; - if (has_gamelistnewmessage()) { + if (cached_has_bits & 0x00001000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 14, this->gamelistnewmessage(), output); + 14, HasBitSetters::gamelistnewmessage(this), output); } // optional .GameListUpdateMessage gameListUpdateMessage = 15; - if (has_gamelistupdatemessage()) { + if (cached_has_bits & 0x00002000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 15, this->gamelistupdatemessage(), output); + 15, HasBitSetters::gamelistupdatemessage(this), output); } // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; - if (has_gamelistplayerjoinedmessage()) { + if (cached_has_bits & 0x00004000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 16, this->gamelistplayerjoinedmessage(), output); + 16, HasBitSetters::gamelistplayerjoinedmessage(this), output); } // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; - if (has_gamelistplayerleftmessage()) { + if (cached_has_bits & 0x00008000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 17, this->gamelistplayerleftmessage(), output); + 17, HasBitSetters::gamelistplayerleftmessage(this), output); } // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; - if (has_gamelistadminchangedmessage()) { + if (cached_has_bits & 0x00010000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 18, this->gamelistadminchangedmessage(), output); + 18, HasBitSetters::gamelistadminchangedmessage(this), output); } // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; - if (has_playerinforequestmessage()) { + if (cached_has_bits & 0x00020000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 19, this->playerinforequestmessage(), output); + 19, HasBitSetters::playerinforequestmessage(this), output); } // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; - if (has_playerinforeplymessage()) { + if (cached_has_bits & 0x00040000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 20, this->playerinforeplymessage(), output); + 20, HasBitSetters::playerinforeplymessage(this), output); } // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; - if (has_subscriptionrequestmessage()) { + if (cached_has_bits & 0x00080000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 21, this->subscriptionrequestmessage(), output); + 21, HasBitSetters::subscriptionrequestmessage(this), output); } // optional .JoinExistingGameMessage joinExistingGameMessage = 22; - if (has_joinexistinggamemessage()) { + if (cached_has_bits & 0x00100000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 22, this->joinexistinggamemessage(), output); + 22, HasBitSetters::joinexistinggamemessage(this), output); } // optional .JoinNewGameMessage joinNewGameMessage = 23; - if (has_joinnewgamemessage()) { + if (cached_has_bits & 0x00200000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 23, this->joinnewgamemessage(), output); + 23, HasBitSetters::joinnewgamemessage(this), output); } // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; - if (has_rejoinexistinggamemessage()) { + if (cached_has_bits & 0x00400000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 24, this->rejoinexistinggamemessage(), output); + 24, HasBitSetters::rejoinexistinggamemessage(this), output); } // optional .JoinGameAckMessage joinGameAckMessage = 25; - if (has_joingameackmessage()) { + if (cached_has_bits & 0x00800000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 25, this->joingameackmessage(), output); + 25, HasBitSetters::joingameackmessage(this), output); } // optional .JoinGameFailedMessage joinGameFailedMessage = 26; - if (has_joingamefailedmessage()) { + if (cached_has_bits & 0x01000000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 26, this->joingamefailedmessage(), output); + 26, HasBitSetters::joingamefailedmessage(this), output); } // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; - if (has_gameplayerjoinedmessage()) { + if (cached_has_bits & 0x02000000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 27, this->gameplayerjoinedmessage(), output); + 27, HasBitSetters::gameplayerjoinedmessage(this), output); } // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; - if (has_gameplayerleftmessage()) { + if (cached_has_bits & 0x04000000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 28, this->gameplayerleftmessage(), output); + 28, HasBitSetters::gameplayerleftmessage(this), output); } // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; - if (has_gameadminchangedmessage()) { + if (cached_has_bits & 0x08000000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 29, this->gameadminchangedmessage(), output); + 29, HasBitSetters::gameadminchangedmessage(this), output); } // optional .RemovedFromGameMessage removedFromGameMessage = 30; - if (has_removedfromgamemessage()) { + if (cached_has_bits & 0x10000000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 30, this->removedfromgamemessage(), output); + 30, HasBitSetters::removedfromgamemessage(this), output); } // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; - if (has_kickplayerrequestmessage()) { + if (cached_has_bits & 0x20000000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 31, this->kickplayerrequestmessage(), output); + 31, HasBitSetters::kickplayerrequestmessage(this), output); } // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; - if (has_leavegamerequestmessage()) { + if (cached_has_bits & 0x40000000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 32, this->leavegamerequestmessage(), output); + 32, HasBitSetters::leavegamerequestmessage(this), output); } // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; - if (has_inviteplayertogamemessage()) { + if (cached_has_bits & 0x80000000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 33, this->inviteplayertogamemessage(), output); + 33, HasBitSetters::inviteplayertogamemessage(this), output); } + cached_has_bits = _has_bits_[1]; // optional .InviteNotifyMessage inviteNotifyMessage = 34; - if (has_invitenotifymessage()) { + if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 34, this->invitenotifymessage(), output); + 34, HasBitSetters::invitenotifymessage(this), output); } // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; - if (has_rejectgameinvitationmessage()) { + if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 35, this->rejectgameinvitationmessage(), output); + 35, HasBitSetters::rejectgameinvitationmessage(this), output); } // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; - if (has_rejectinvnotifymessage()) { + if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 36, this->rejectinvnotifymessage(), output); + 36, HasBitSetters::rejectinvnotifymessage(this), output); } // optional .StartEventMessage startEventMessage = 37; - if (has_starteventmessage()) { + if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 37, this->starteventmessage(), output); + 37, HasBitSetters::starteventmessage(this), output); } // optional .StartEventAckMessage startEventAckMessage = 38; - if (has_starteventackmessage()) { + if (cached_has_bits & 0x00000010u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 38, this->starteventackmessage(), output); + 38, HasBitSetters::starteventackmessage(this), output); } // optional .GameStartInitialMessage gameStartInitialMessage = 39; - if (has_gamestartinitialmessage()) { + if (cached_has_bits & 0x00000020u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 39, this->gamestartinitialmessage(), output); + 39, HasBitSetters::gamestartinitialmessage(this), output); } // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; - if (has_gamestartrejoinmessage()) { + if (cached_has_bits & 0x00000040u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 40, this->gamestartrejoinmessage(), output); + 40, HasBitSetters::gamestartrejoinmessage(this), output); } // optional .HandStartMessage handStartMessage = 41; - if (has_handstartmessage()) { + if (cached_has_bits & 0x00000080u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 41, this->handstartmessage(), output); + 41, HasBitSetters::handstartmessage(this), output); } // optional .PlayersTurnMessage playersTurnMessage = 42; - if (has_playersturnmessage()) { + if (cached_has_bits & 0x00000100u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 42, this->playersturnmessage(), output); + 42, HasBitSetters::playersturnmessage(this), output); } // optional .MyActionRequestMessage myActionRequestMessage = 43; - if (has_myactionrequestmessage()) { + if (cached_has_bits & 0x00000200u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 43, this->myactionrequestmessage(), output); + 43, HasBitSetters::myactionrequestmessage(this), output); } // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; - if (has_youractionrejectedmessage()) { + if (cached_has_bits & 0x00000400u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 44, this->youractionrejectedmessage(), output); + 44, HasBitSetters::youractionrejectedmessage(this), output); } // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; - if (has_playersactiondonemessage()) { + if (cached_has_bits & 0x00000800u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 45, this->playersactiondonemessage(), output); + 45, HasBitSetters::playersactiondonemessage(this), output); } // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; - if (has_dealflopcardsmessage()) { + if (cached_has_bits & 0x00001000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 46, this->dealflopcardsmessage(), output); + 46, HasBitSetters::dealflopcardsmessage(this), output); } // optional .DealTurnCardMessage dealTurnCardMessage = 47; - if (has_dealturncardmessage()) { + if (cached_has_bits & 0x00002000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 47, this->dealturncardmessage(), output); + 47, HasBitSetters::dealturncardmessage(this), output); } // optional .DealRiverCardMessage dealRiverCardMessage = 48; - if (has_dealrivercardmessage()) { + if (cached_has_bits & 0x00004000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 48, this->dealrivercardmessage(), output); + 48, HasBitSetters::dealrivercardmessage(this), output); } // optional .AllInShowCardsMessage allInShowCardsMessage = 49; - if (has_allinshowcardsmessage()) { + if (cached_has_bits & 0x00008000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 49, this->allinshowcardsmessage(), output); + 49, HasBitSetters::allinshowcardsmessage(this), output); } // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; - if (has_endofhandshowcardsmessage()) { + if (cached_has_bits & 0x00010000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 50, this->endofhandshowcardsmessage(), output); + 50, HasBitSetters::endofhandshowcardsmessage(this), output); } // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; - if (has_endofhandhidecardsmessage()) { + if (cached_has_bits & 0x00020000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 51, this->endofhandhidecardsmessage(), output); + 51, HasBitSetters::endofhandhidecardsmessage(this), output); } // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; - if (has_showmycardsrequestmessage()) { + if (cached_has_bits & 0x00040000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 52, this->showmycardsrequestmessage(), output); + 52, HasBitSetters::showmycardsrequestmessage(this), output); } // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; - if (has_afterhandshowcardsmessage()) { + if (cached_has_bits & 0x00080000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 53, this->afterhandshowcardsmessage(), output); + 53, HasBitSetters::afterhandshowcardsmessage(this), output); } // optional .EndOfGameMessage endOfGameMessage = 54; - if (has_endofgamemessage()) { + if (cached_has_bits & 0x00100000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 54, this->endofgamemessage(), output); + 54, HasBitSetters::endofgamemessage(this), output); } // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; - if (has_playeridchangedmessage()) { + if (cached_has_bits & 0x00200000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 55, this->playeridchangedmessage(), output); + 55, HasBitSetters::playeridchangedmessage(this), output); } // optional .AskKickPlayerMessage askKickPlayerMessage = 56; - if (has_askkickplayermessage()) { + if (cached_has_bits & 0x00400000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 56, this->askkickplayermessage(), output); + 56, HasBitSetters::askkickplayermessage(this), output); } // optional .AskKickDeniedMessage askKickDeniedMessage = 57; - if (has_askkickdeniedmessage()) { + if (cached_has_bits & 0x00800000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 57, this->askkickdeniedmessage(), output); + 57, HasBitSetters::askkickdeniedmessage(this), output); } // optional .StartKickPetitionMessage startKickPetitionMessage = 58; - if (has_startkickpetitionmessage()) { + if (cached_has_bits & 0x01000000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 58, this->startkickpetitionmessage(), output); + 58, HasBitSetters::startkickpetitionmessage(this), output); } // optional .VoteKickRequestMessage voteKickRequestMessage = 59; - if (has_votekickrequestmessage()) { + if (cached_has_bits & 0x02000000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 59, this->votekickrequestmessage(), output); + 59, HasBitSetters::votekickrequestmessage(this), output); } // optional .VoteKickReplyMessage voteKickReplyMessage = 60; - if (has_votekickreplymessage()) { + if (cached_has_bits & 0x04000000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 60, this->votekickreplymessage(), output); + 60, HasBitSetters::votekickreplymessage(this), output); } // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; - if (has_kickpetitionupdatemessage()) { + if (cached_has_bits & 0x08000000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 61, this->kickpetitionupdatemessage(), output); + 61, HasBitSetters::kickpetitionupdatemessage(this), output); } // optional .EndKickPetitionMessage endKickPetitionMessage = 62; - if (has_endkickpetitionmessage()) { + if (cached_has_bits & 0x10000000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 62, this->endkickpetitionmessage(), output); + 62, HasBitSetters::endkickpetitionmessage(this), output); } // optional .StatisticsMessage statisticsMessage = 63; - if (has_statisticsmessage()) { + if (cached_has_bits & 0x20000000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 63, this->statisticsmessage(), output); + 63, HasBitSetters::statisticsmessage(this), output); } // optional .ChatRequestMessage chatRequestMessage = 64; - if (has_chatrequestmessage()) { + if (cached_has_bits & 0x40000000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 64, this->chatrequestmessage(), output); + 64, HasBitSetters::chatrequestmessage(this), output); } // optional .ChatMessage chatMessage = 65; - if (has_chatmessage()) { + if (cached_has_bits & 0x80000000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 65, this->chatmessage(), output); + 65, HasBitSetters::chatmessage(this), output); } + cached_has_bits = _has_bits_[2]; // optional .ChatRejectMessage chatRejectMessage = 66; - if (has_chatrejectmessage()) { + if (cached_has_bits & 0x00000001u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 66, this->chatrejectmessage(), output); + 66, HasBitSetters::chatrejectmessage(this), output); } // optional .DialogMessage dialogMessage = 67; - if (has_dialogmessage()) { + if (cached_has_bits & 0x00000002u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 67, this->dialogmessage(), output); + 67, HasBitSetters::dialogmessage(this), output); } // optional .TimeoutWarningMessage timeoutWarningMessage = 68; - if (has_timeoutwarningmessage()) { + if (cached_has_bits & 0x00000004u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 68, this->timeoutwarningmessage(), output); + 68, HasBitSetters::timeoutwarningmessage(this), output); } // optional .ResetTimeoutMessage resetTimeoutMessage = 69; - if (has_resettimeoutmessage()) { + if (cached_has_bits & 0x00000008u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 69, this->resettimeoutmessage(), output); + 69, HasBitSetters::resettimeoutmessage(this), output); } // optional .ReportAvatarMessage reportAvatarMessage = 70; - if (has_reportavatarmessage()) { + if (cached_has_bits & 0x00000010u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 70, this->reportavatarmessage(), output); + 70, HasBitSetters::reportavatarmessage(this), output); } // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; - if (has_reportavatarackmessage()) { + if (cached_has_bits & 0x00000020u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 71, this->reportavatarackmessage(), output); + 71, HasBitSetters::reportavatarackmessage(this), output); } // optional .ReportGameMessage reportGameMessage = 72; - if (has_reportgamemessage()) { + if (cached_has_bits & 0x00000040u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 72, this->reportgamemessage(), output); + 72, HasBitSetters::reportgamemessage(this), output); } // optional .ReportGameAckMessage reportGameAckMessage = 73; - if (has_reportgameackmessage()) { + if (cached_has_bits & 0x00000080u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 73, this->reportgameackmessage(), output); + 73, HasBitSetters::reportgameackmessage(this), output); } // optional .ErrorMessage errorMessage = 74; - if (has_errormessage()) { + if (cached_has_bits & 0x00000100u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 74, this->errormessage(), output); + 74, HasBitSetters::errormessage(this), output); } // optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; - if (has_adminremovegamemessage()) { + if (cached_has_bits & 0x00000200u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 75, this->adminremovegamemessage(), output); + 75, HasBitSetters::adminremovegamemessage(this), output); } // optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; - if (has_adminremovegameackmessage()) { + if (cached_has_bits & 0x00000400u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 76, this->adminremovegameackmessage(), output); + 76, HasBitSetters::adminremovegameackmessage(this), output); } // optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; - if (has_adminbanplayermessage()) { + if (cached_has_bits & 0x00000800u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 77, this->adminbanplayermessage(), output); + 77, HasBitSetters::adminbanplayermessage(this), output); } // optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; - if (has_adminbanplayerackmessage()) { + if (cached_has_bits & 0x00001000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 78, this->adminbanplayerackmessage(), output); + 78, HasBitSetters::adminbanplayerackmessage(this), output); } // optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; - if (has_gamelistspectatorjoinedmessage()) { + if (cached_has_bits & 0x00002000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 79, this->gamelistspectatorjoinedmessage(), output); + 79, HasBitSetters::gamelistspectatorjoinedmessage(this), output); } // optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; - if (has_gamelistspectatorleftmessage()) { + if (cached_has_bits & 0x00004000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 80, this->gamelistspectatorleftmessage(), output); + 80, HasBitSetters::gamelistspectatorleftmessage(this), output); } // optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; - if (has_gamespectatorjoinedmessage()) { + if (cached_has_bits & 0x00008000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 81, this->gamespectatorjoinedmessage(), output); + 81, HasBitSetters::gamespectatorjoinedmessage(this), output); } // optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; - if (has_gamespectatorleftmessage()) { + if (cached_has_bits & 0x00010000u) { ::google::protobuf::internal::WireFormatLite::WriteMessage( - 82, this->gamespectatorleftmessage(), output); + 82, HasBitSetters::gamespectatorleftmessage(this), output); } - output->WriteRaw(unknown_fields().data(), - unknown_fields().size()); + output->WriteRaw(_internal_metadata_.unknown_fields().data(), + static_cast(_internal_metadata_.unknown_fields().size())); // @@protoc_insertion_point(serialize_end:PokerTHMessage) } -int PokerTHMessage::ByteSize() const { - int total_size = 0; +size_t PokerTHMessage::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:PokerTHMessage) + size_t total_size = 0; - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .PokerTHMessage.PokerTHMessageType messageType = 1; - if (has_messagetype()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->messagetype()); - } + 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) { // optional .AnnounceMessage announceMessage = 2; - if (has_announcemessage()) { + if (cached_has_bits & 0x00000001u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->announcemessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *announcemessage_); } // optional .InitMessage initMessage = 3; - if (has_initmessage()) { + if (cached_has_bits & 0x00000002u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->initmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *initmessage_); } // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; - if (has_authserverchallengemessage()) { + if (cached_has_bits & 0x00000004u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->authserverchallengemessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *authserverchallengemessage_); } // optional .AuthClientResponseMessage authClientResponseMessage = 5; - if (has_authclientresponsemessage()) { + if (cached_has_bits & 0x00000008u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->authclientresponsemessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *authclientresponsemessage_); } // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; - if (has_authserververificationmessage()) { + if (cached_has_bits & 0x00000010u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->authserververificationmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *authserververificationmessage_); } // optional .InitAckMessage initAckMessage = 7; - if (has_initackmessage()) { + if (cached_has_bits & 0x00000020u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->initackmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *initackmessage_); } // optional .AvatarRequestMessage avatarRequestMessage = 8; - if (has_avatarrequestmessage()) { + if (cached_has_bits & 0x00000040u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->avatarrequestmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *avatarrequestmessage_); + } + + // optional .AvatarHeaderMessage avatarHeaderMessage = 9; + if (cached_has_bits & 0x00000080u) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *avatarheadermessage_); } } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // optional .AvatarHeaderMessage avatarHeaderMessage = 9; - if (has_avatarheadermessage()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->avatarheadermessage()); - } - + if (cached_has_bits & 0x0000ff00u) { // optional .AvatarDataMessage avatarDataMessage = 10; - if (has_avatardatamessage()) { + if (cached_has_bits & 0x00000100u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->avatardatamessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *avatardatamessage_); } // optional .AvatarEndMessage avatarEndMessage = 11; - if (has_avatarendmessage()) { + if (cached_has_bits & 0x00000200u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->avatarendmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *avatarendmessage_); } // optional .UnknownAvatarMessage unknownAvatarMessage = 12; - if (has_unknownavatarmessage()) { + if (cached_has_bits & 0x00000400u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->unknownavatarmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *unknownavatarmessage_); } // optional .PlayerListMessage playerListMessage = 13; - if (has_playerlistmessage()) { + if (cached_has_bits & 0x00000800u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->playerlistmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *playerlistmessage_); } // optional .GameListNewMessage gameListNewMessage = 14; - if (has_gamelistnewmessage()) { + if (cached_has_bits & 0x00001000u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gamelistnewmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *gamelistnewmessage_); } // optional .GameListUpdateMessage gameListUpdateMessage = 15; - if (has_gamelistupdatemessage()) { + if (cached_has_bits & 0x00002000u) { total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gamelistupdatemessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *gamelistupdatemessage_); } // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; - if (has_gamelistplayerjoinedmessage()) { + if (cached_has_bits & 0x00004000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gamelistplayerjoinedmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *gamelistplayerjoinedmessage_); + } + + // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; + if (cached_has_bits & 0x00008000u) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *gamelistplayerleftmessage_); } } - if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) { - // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; - if (has_gamelistplayerleftmessage()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gamelistplayerleftmessage()); - } - + if (cached_has_bits & 0x00ff0000u) { // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; - if (has_gamelistadminchangedmessage()) { + if (cached_has_bits & 0x00010000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gamelistadminchangedmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *gamelistadminchangedmessage_); } // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; - if (has_playerinforequestmessage()) { + if (cached_has_bits & 0x00020000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->playerinforequestmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *playerinforequestmessage_); } // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; - if (has_playerinforeplymessage()) { + if (cached_has_bits & 0x00040000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->playerinforeplymessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *playerinforeplymessage_); } // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; - if (has_subscriptionrequestmessage()) { + if (cached_has_bits & 0x00080000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->subscriptionrequestmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *subscriptionrequestmessage_); } // optional .JoinExistingGameMessage joinExistingGameMessage = 22; - if (has_joinexistinggamemessage()) { + if (cached_has_bits & 0x00100000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->joinexistinggamemessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *joinexistinggamemessage_); } // optional .JoinNewGameMessage joinNewGameMessage = 23; - if (has_joinnewgamemessage()) { + if (cached_has_bits & 0x00200000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->joinnewgamemessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *joinnewgamemessage_); } // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; - if (has_rejoinexistinggamemessage()) { + if (cached_has_bits & 0x00400000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->rejoinexistinggamemessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *rejoinexistinggamemessage_); + } + + // optional .JoinGameAckMessage joinGameAckMessage = 25; + if (cached_has_bits & 0x00800000u) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *joingameackmessage_); } } - if (_has_bits_[24 / 32] & (0xffu << (24 % 32))) { - // optional .JoinGameAckMessage joinGameAckMessage = 25; - if (has_joingameackmessage()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->joingameackmessage()); - } - + if (cached_has_bits & 0xff000000u) { // optional .JoinGameFailedMessage joinGameFailedMessage = 26; - if (has_joingamefailedmessage()) { + if (cached_has_bits & 0x01000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->joingamefailedmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *joingamefailedmessage_); } // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; - if (has_gameplayerjoinedmessage()) { + if (cached_has_bits & 0x02000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gameplayerjoinedmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *gameplayerjoinedmessage_); } // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; - if (has_gameplayerleftmessage()) { + if (cached_has_bits & 0x04000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gameplayerleftmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *gameplayerleftmessage_); } // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; - if (has_gameadminchangedmessage()) { + if (cached_has_bits & 0x08000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gameadminchangedmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *gameadminchangedmessage_); } // optional .RemovedFromGameMessage removedFromGameMessage = 30; - if (has_removedfromgamemessage()) { + if (cached_has_bits & 0x10000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->removedfromgamemessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *removedfromgamemessage_); } // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; - if (has_kickplayerrequestmessage()) { + if (cached_has_bits & 0x20000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->kickplayerrequestmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *kickplayerrequestmessage_); } // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; - if (has_leavegamerequestmessage()) { + if (cached_has_bits & 0x40000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->leavegamerequestmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *leavegamerequestmessage_); + } + + // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; + if (cached_has_bits & 0x80000000u) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *inviteplayertogamemessage_); } } - if (_has_bits_[32 / 32] & (0xffu << (32 % 32))) { - // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; - if (has_inviteplayertogamemessage()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->inviteplayertogamemessage()); - } - + cached_has_bits = _has_bits_[1]; + if (cached_has_bits & 0x000000ffu) { // optional .InviteNotifyMessage inviteNotifyMessage = 34; - if (has_invitenotifymessage()) { + if (cached_has_bits & 0x00000001u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->invitenotifymessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *invitenotifymessage_); } // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; - if (has_rejectgameinvitationmessage()) { + if (cached_has_bits & 0x00000002u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->rejectgameinvitationmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *rejectgameinvitationmessage_); } // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; - if (has_rejectinvnotifymessage()) { + if (cached_has_bits & 0x00000004u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->rejectinvnotifymessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *rejectinvnotifymessage_); } // optional .StartEventMessage startEventMessage = 37; - if (has_starteventmessage()) { + if (cached_has_bits & 0x00000008u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->starteventmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *starteventmessage_); } // optional .StartEventAckMessage startEventAckMessage = 38; - if (has_starteventackmessage()) { + if (cached_has_bits & 0x00000010u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->starteventackmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *starteventackmessage_); } // optional .GameStartInitialMessage gameStartInitialMessage = 39; - if (has_gamestartinitialmessage()) { + if (cached_has_bits & 0x00000020u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gamestartinitialmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *gamestartinitialmessage_); } // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; - if (has_gamestartrejoinmessage()) { + if (cached_has_bits & 0x00000040u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gamestartrejoinmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *gamestartrejoinmessage_); + } + + // optional .HandStartMessage handStartMessage = 41; + if (cached_has_bits & 0x00000080u) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *handstartmessage_); } } - if (_has_bits_[40 / 32] & (0xffu << (40 % 32))) { - // optional .HandStartMessage handStartMessage = 41; - if (has_handstartmessage()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->handstartmessage()); - } - + if (cached_has_bits & 0x0000ff00u) { // optional .PlayersTurnMessage playersTurnMessage = 42; - if (has_playersturnmessage()) { + if (cached_has_bits & 0x00000100u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->playersturnmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *playersturnmessage_); } // optional .MyActionRequestMessage myActionRequestMessage = 43; - if (has_myactionrequestmessage()) { + if (cached_has_bits & 0x00000200u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->myactionrequestmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *myactionrequestmessage_); } // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; - if (has_youractionrejectedmessage()) { + if (cached_has_bits & 0x00000400u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->youractionrejectedmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *youractionrejectedmessage_); } // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; - if (has_playersactiondonemessage()) { + if (cached_has_bits & 0x00000800u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->playersactiondonemessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *playersactiondonemessage_); } // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; - if (has_dealflopcardsmessage()) { + if (cached_has_bits & 0x00001000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->dealflopcardsmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dealflopcardsmessage_); } // optional .DealTurnCardMessage dealTurnCardMessage = 47; - if (has_dealturncardmessage()) { + if (cached_has_bits & 0x00002000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->dealturncardmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dealturncardmessage_); } // optional .DealRiverCardMessage dealRiverCardMessage = 48; - if (has_dealrivercardmessage()) { + if (cached_has_bits & 0x00004000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->dealrivercardmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dealrivercardmessage_); + } + + // optional .AllInShowCardsMessage allInShowCardsMessage = 49; + if (cached_has_bits & 0x00008000u) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *allinshowcardsmessage_); } } - if (_has_bits_[48 / 32] & (0xffu << (48 % 32))) { - // optional .AllInShowCardsMessage allInShowCardsMessage = 49; - if (has_allinshowcardsmessage()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->allinshowcardsmessage()); - } - + if (cached_has_bits & 0x00ff0000u) { // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; - if (has_endofhandshowcardsmessage()) { + if (cached_has_bits & 0x00010000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->endofhandshowcardsmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *endofhandshowcardsmessage_); } // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; - if (has_endofhandhidecardsmessage()) { + if (cached_has_bits & 0x00020000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->endofhandhidecardsmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *endofhandhidecardsmessage_); } // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; - if (has_showmycardsrequestmessage()) { + if (cached_has_bits & 0x00040000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->showmycardsrequestmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *showmycardsrequestmessage_); } // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; - if (has_afterhandshowcardsmessage()) { + if (cached_has_bits & 0x00080000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->afterhandshowcardsmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *afterhandshowcardsmessage_); } // optional .EndOfGameMessage endOfGameMessage = 54; - if (has_endofgamemessage()) { + if (cached_has_bits & 0x00100000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->endofgamemessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *endofgamemessage_); } // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; - if (has_playeridchangedmessage()) { + if (cached_has_bits & 0x00200000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->playeridchangedmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *playeridchangedmessage_); } // optional .AskKickPlayerMessage askKickPlayerMessage = 56; - if (has_askkickplayermessage()) { + if (cached_has_bits & 0x00400000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->askkickplayermessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *askkickplayermessage_); + } + + // optional .AskKickDeniedMessage askKickDeniedMessage = 57; + if (cached_has_bits & 0x00800000u) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *askkickdeniedmessage_); } } - if (_has_bits_[56 / 32] & (0xffu << (56 % 32))) { - // optional .AskKickDeniedMessage askKickDeniedMessage = 57; - if (has_askkickdeniedmessage()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->askkickdeniedmessage()); - } - + if (cached_has_bits & 0xff000000u) { // optional .StartKickPetitionMessage startKickPetitionMessage = 58; - if (has_startkickpetitionmessage()) { + if (cached_has_bits & 0x01000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->startkickpetitionmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *startkickpetitionmessage_); } // optional .VoteKickRequestMessage voteKickRequestMessage = 59; - if (has_votekickrequestmessage()) { + if (cached_has_bits & 0x02000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->votekickrequestmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *votekickrequestmessage_); } // optional .VoteKickReplyMessage voteKickReplyMessage = 60; - if (has_votekickreplymessage()) { + if (cached_has_bits & 0x04000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->votekickreplymessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *votekickreplymessage_); } // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; - if (has_kickpetitionupdatemessage()) { + if (cached_has_bits & 0x08000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->kickpetitionupdatemessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *kickpetitionupdatemessage_); } // optional .EndKickPetitionMessage endKickPetitionMessage = 62; - if (has_endkickpetitionmessage()) { + if (cached_has_bits & 0x10000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->endkickpetitionmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *endkickpetitionmessage_); } // optional .StatisticsMessage statisticsMessage = 63; - if (has_statisticsmessage()) { + if (cached_has_bits & 0x20000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->statisticsmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *statisticsmessage_); } // optional .ChatRequestMessage chatRequestMessage = 64; - if (has_chatrequestmessage()) { + if (cached_has_bits & 0x40000000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->chatrequestmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *chatrequestmessage_); + } + + // optional .ChatMessage chatMessage = 65; + if (cached_has_bits & 0x80000000u) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *chatmessage_); } } - if (_has_bits_[64 / 32] & (0xffu << (64 % 32))) { - // optional .ChatMessage chatMessage = 65; - if (has_chatmessage()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->chatmessage()); - } - + cached_has_bits = _has_bits_[2]; + if (cached_has_bits & 0x000000ffu) { // optional .ChatRejectMessage chatRejectMessage = 66; - if (has_chatrejectmessage()) { + if (cached_has_bits & 0x00000001u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->chatrejectmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *chatrejectmessage_); } // optional .DialogMessage dialogMessage = 67; - if (has_dialogmessage()) { + if (cached_has_bits & 0x00000002u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->dialogmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *dialogmessage_); } // optional .TimeoutWarningMessage timeoutWarningMessage = 68; - if (has_timeoutwarningmessage()) { + if (cached_has_bits & 0x00000004u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->timeoutwarningmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *timeoutwarningmessage_); } // optional .ResetTimeoutMessage resetTimeoutMessage = 69; - if (has_resettimeoutmessage()) { + if (cached_has_bits & 0x00000008u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->resettimeoutmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *resettimeoutmessage_); } // optional .ReportAvatarMessage reportAvatarMessage = 70; - if (has_reportavatarmessage()) { + if (cached_has_bits & 0x00000010u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->reportavatarmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reportavatarmessage_); } // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; - if (has_reportavatarackmessage()) { + if (cached_has_bits & 0x00000020u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->reportavatarackmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reportavatarackmessage_); } // optional .ReportGameMessage reportGameMessage = 72; - if (has_reportgamemessage()) { + if (cached_has_bits & 0x00000040u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->reportgamemessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reportgamemessage_); + } + + // optional .ReportGameAckMessage reportGameAckMessage = 73; + if (cached_has_bits & 0x00000080u) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *reportgameackmessage_); } } - if (_has_bits_[72 / 32] & (0xffu << (72 % 32))) { - // optional .ReportGameAckMessage reportGameAckMessage = 73; - if (has_reportgameackmessage()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->reportgameackmessage()); - } - + if (cached_has_bits & 0x0000ff00u) { // optional .ErrorMessage errorMessage = 74; - if (has_errormessage()) { + if (cached_has_bits & 0x00000100u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->errormessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *errormessage_); } // optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; - if (has_adminremovegamemessage()) { + if (cached_has_bits & 0x00000200u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->adminremovegamemessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *adminremovegamemessage_); } // optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; - if (has_adminremovegameackmessage()) { + if (cached_has_bits & 0x00000400u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->adminremovegameackmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *adminremovegameackmessage_); } // optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; - if (has_adminbanplayermessage()) { + if (cached_has_bits & 0x00000800u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->adminbanplayermessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *adminbanplayermessage_); } // optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; - if (has_adminbanplayerackmessage()) { + if (cached_has_bits & 0x00001000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->adminbanplayerackmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *adminbanplayerackmessage_); } // optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; - if (has_gamelistspectatorjoinedmessage()) { + if (cached_has_bits & 0x00002000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gamelistspectatorjoinedmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *gamelistspectatorjoinedmessage_); } // optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; - if (has_gamelistspectatorleftmessage()) { + if (cached_has_bits & 0x00004000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gamelistspectatorleftmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *gamelistspectatorleftmessage_); } - } - if (_has_bits_[80 / 32] & (0xffu << (80 % 32))) { // optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; - if (has_gamespectatorjoinedmessage()) { + if (cached_has_bits & 0x00008000u) { total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gamespectatorjoinedmessage()); - } - - // optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; - if (has_gamespectatorleftmessage()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->gamespectatorleftmessage()); + ::google::protobuf::internal::WireFormatLite::MessageSize( + *gamespectatorjoinedmessage_); } } - total_size += unknown_fields().size(); + // optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; + if (cached_has_bits & 0x00010000u) { + total_size += 2 + + ::google::protobuf::internal::WireFormatLite::MessageSize( + *gamespectatorleftmessage_); + } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); + int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); + SetCachedSize(cached_size); return total_size; } @@ -28393,614 +38784,624 @@ void PokerTHMessage::CheckTypeAndMergeFrom( } void PokerTHMessage::MergeFrom(const PokerTHMessage& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_messagetype()) { - set_messagetype(from.messagetype()); - } - if (from.has_announcemessage()) { +// @@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) { mutable_announcemessage()->::AnnounceMessage::MergeFrom(from.announcemessage()); } - if (from.has_initmessage()) { + if (cached_has_bits & 0x00000002u) { mutable_initmessage()->::InitMessage::MergeFrom(from.initmessage()); } - if (from.has_authserverchallengemessage()) { + if (cached_has_bits & 0x00000004u) { mutable_authserverchallengemessage()->::AuthServerChallengeMessage::MergeFrom(from.authserverchallengemessage()); } - if (from.has_authclientresponsemessage()) { + if (cached_has_bits & 0x00000008u) { mutable_authclientresponsemessage()->::AuthClientResponseMessage::MergeFrom(from.authclientresponsemessage()); } - if (from.has_authserververificationmessage()) { + if (cached_has_bits & 0x00000010u) { mutable_authserververificationmessage()->::AuthServerVerificationMessage::MergeFrom(from.authserververificationmessage()); } - if (from.has_initackmessage()) { + if (cached_has_bits & 0x00000020u) { mutable_initackmessage()->::InitAckMessage::MergeFrom(from.initackmessage()); } - if (from.has_avatarrequestmessage()) { + if (cached_has_bits & 0x00000040u) { mutable_avatarrequestmessage()->::AvatarRequestMessage::MergeFrom(from.avatarrequestmessage()); } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_avatarheadermessage()) { + if (cached_has_bits & 0x00000080u) { mutable_avatarheadermessage()->::AvatarHeaderMessage::MergeFrom(from.avatarheadermessage()); } - if (from.has_avatardatamessage()) { + } + if (cached_has_bits & 0x0000ff00u) { + if (cached_has_bits & 0x00000100u) { mutable_avatardatamessage()->::AvatarDataMessage::MergeFrom(from.avatardatamessage()); } - if (from.has_avatarendmessage()) { + if (cached_has_bits & 0x00000200u) { mutable_avatarendmessage()->::AvatarEndMessage::MergeFrom(from.avatarendmessage()); } - if (from.has_unknownavatarmessage()) { + if (cached_has_bits & 0x00000400u) { mutable_unknownavatarmessage()->::UnknownAvatarMessage::MergeFrom(from.unknownavatarmessage()); } - if (from.has_playerlistmessage()) { + if (cached_has_bits & 0x00000800u) { mutable_playerlistmessage()->::PlayerListMessage::MergeFrom(from.playerlistmessage()); } - if (from.has_gamelistnewmessage()) { + if (cached_has_bits & 0x00001000u) { mutable_gamelistnewmessage()->::GameListNewMessage::MergeFrom(from.gamelistnewmessage()); } - if (from.has_gamelistupdatemessage()) { + if (cached_has_bits & 0x00002000u) { mutable_gamelistupdatemessage()->::GameListUpdateMessage::MergeFrom(from.gamelistupdatemessage()); } - if (from.has_gamelistplayerjoinedmessage()) { + if (cached_has_bits & 0x00004000u) { mutable_gamelistplayerjoinedmessage()->::GameListPlayerJoinedMessage::MergeFrom(from.gamelistplayerjoinedmessage()); } - } - if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) { - if (from.has_gamelistplayerleftmessage()) { + if (cached_has_bits & 0x00008000u) { mutable_gamelistplayerleftmessage()->::GameListPlayerLeftMessage::MergeFrom(from.gamelistplayerleftmessage()); } - if (from.has_gamelistadminchangedmessage()) { + } + if (cached_has_bits & 0x00ff0000u) { + if (cached_has_bits & 0x00010000u) { mutable_gamelistadminchangedmessage()->::GameListAdminChangedMessage::MergeFrom(from.gamelistadminchangedmessage()); } - if (from.has_playerinforequestmessage()) { + if (cached_has_bits & 0x00020000u) { mutable_playerinforequestmessage()->::PlayerInfoRequestMessage::MergeFrom(from.playerinforequestmessage()); } - if (from.has_playerinforeplymessage()) { + if (cached_has_bits & 0x00040000u) { mutable_playerinforeplymessage()->::PlayerInfoReplyMessage::MergeFrom(from.playerinforeplymessage()); } - if (from.has_subscriptionrequestmessage()) { + if (cached_has_bits & 0x00080000u) { mutable_subscriptionrequestmessage()->::SubscriptionRequestMessage::MergeFrom(from.subscriptionrequestmessage()); } - if (from.has_joinexistinggamemessage()) { + if (cached_has_bits & 0x00100000u) { mutable_joinexistinggamemessage()->::JoinExistingGameMessage::MergeFrom(from.joinexistinggamemessage()); } - if (from.has_joinnewgamemessage()) { + if (cached_has_bits & 0x00200000u) { mutable_joinnewgamemessage()->::JoinNewGameMessage::MergeFrom(from.joinnewgamemessage()); } - if (from.has_rejoinexistinggamemessage()) { + if (cached_has_bits & 0x00400000u) { mutable_rejoinexistinggamemessage()->::RejoinExistingGameMessage::MergeFrom(from.rejoinexistinggamemessage()); } - } - if (from._has_bits_[24 / 32] & (0xffu << (24 % 32))) { - if (from.has_joingameackmessage()) { + if (cached_has_bits & 0x00800000u) { mutable_joingameackmessage()->::JoinGameAckMessage::MergeFrom(from.joingameackmessage()); } - if (from.has_joingamefailedmessage()) { + } + if (cached_has_bits & 0xff000000u) { + if (cached_has_bits & 0x01000000u) { mutable_joingamefailedmessage()->::JoinGameFailedMessage::MergeFrom(from.joingamefailedmessage()); } - if (from.has_gameplayerjoinedmessage()) { + if (cached_has_bits & 0x02000000u) { mutable_gameplayerjoinedmessage()->::GamePlayerJoinedMessage::MergeFrom(from.gameplayerjoinedmessage()); } - if (from.has_gameplayerleftmessage()) { + if (cached_has_bits & 0x04000000u) { mutable_gameplayerleftmessage()->::GamePlayerLeftMessage::MergeFrom(from.gameplayerleftmessage()); } - if (from.has_gameadminchangedmessage()) { + if (cached_has_bits & 0x08000000u) { mutable_gameadminchangedmessage()->::GameAdminChangedMessage::MergeFrom(from.gameadminchangedmessage()); } - if (from.has_removedfromgamemessage()) { + if (cached_has_bits & 0x10000000u) { mutable_removedfromgamemessage()->::RemovedFromGameMessage::MergeFrom(from.removedfromgamemessage()); } - if (from.has_kickplayerrequestmessage()) { + if (cached_has_bits & 0x20000000u) { mutable_kickplayerrequestmessage()->::KickPlayerRequestMessage::MergeFrom(from.kickplayerrequestmessage()); } - if (from.has_leavegamerequestmessage()) { + if (cached_has_bits & 0x40000000u) { mutable_leavegamerequestmessage()->::LeaveGameRequestMessage::MergeFrom(from.leavegamerequestmessage()); } - } - if (from._has_bits_[32 / 32] & (0xffu << (32 % 32))) { - if (from.has_inviteplayertogamemessage()) { + if (cached_has_bits & 0x80000000u) { mutable_inviteplayertogamemessage()->::InvitePlayerToGameMessage::MergeFrom(from.inviteplayertogamemessage()); } - if (from.has_invitenotifymessage()) { + } + cached_has_bits = from._has_bits_[1]; + if (cached_has_bits & 0x000000ffu) { + if (cached_has_bits & 0x00000001u) { mutable_invitenotifymessage()->::InviteNotifyMessage::MergeFrom(from.invitenotifymessage()); } - if (from.has_rejectgameinvitationmessage()) { + if (cached_has_bits & 0x00000002u) { mutable_rejectgameinvitationmessage()->::RejectGameInvitationMessage::MergeFrom(from.rejectgameinvitationmessage()); } - if (from.has_rejectinvnotifymessage()) { + if (cached_has_bits & 0x00000004u) { mutable_rejectinvnotifymessage()->::RejectInvNotifyMessage::MergeFrom(from.rejectinvnotifymessage()); } - if (from.has_starteventmessage()) { + if (cached_has_bits & 0x00000008u) { mutable_starteventmessage()->::StartEventMessage::MergeFrom(from.starteventmessage()); } - if (from.has_starteventackmessage()) { + if (cached_has_bits & 0x00000010u) { mutable_starteventackmessage()->::StartEventAckMessage::MergeFrom(from.starteventackmessage()); } - if (from.has_gamestartinitialmessage()) { + if (cached_has_bits & 0x00000020u) { mutable_gamestartinitialmessage()->::GameStartInitialMessage::MergeFrom(from.gamestartinitialmessage()); } - if (from.has_gamestartrejoinmessage()) { + if (cached_has_bits & 0x00000040u) { mutable_gamestartrejoinmessage()->::GameStartRejoinMessage::MergeFrom(from.gamestartrejoinmessage()); } - } - if (from._has_bits_[40 / 32] & (0xffu << (40 % 32))) { - if (from.has_handstartmessage()) { + if (cached_has_bits & 0x00000080u) { mutable_handstartmessage()->::HandStartMessage::MergeFrom(from.handstartmessage()); } - if (from.has_playersturnmessage()) { + } + if (cached_has_bits & 0x0000ff00u) { + if (cached_has_bits & 0x00000100u) { mutable_playersturnmessage()->::PlayersTurnMessage::MergeFrom(from.playersturnmessage()); } - if (from.has_myactionrequestmessage()) { + if (cached_has_bits & 0x00000200u) { mutable_myactionrequestmessage()->::MyActionRequestMessage::MergeFrom(from.myactionrequestmessage()); } - if (from.has_youractionrejectedmessage()) { + if (cached_has_bits & 0x00000400u) { mutable_youractionrejectedmessage()->::YourActionRejectedMessage::MergeFrom(from.youractionrejectedmessage()); } - if (from.has_playersactiondonemessage()) { + if (cached_has_bits & 0x00000800u) { mutable_playersactiondonemessage()->::PlayersActionDoneMessage::MergeFrom(from.playersactiondonemessage()); } - if (from.has_dealflopcardsmessage()) { + if (cached_has_bits & 0x00001000u) { mutable_dealflopcardsmessage()->::DealFlopCardsMessage::MergeFrom(from.dealflopcardsmessage()); } - if (from.has_dealturncardmessage()) { + if (cached_has_bits & 0x00002000u) { mutable_dealturncardmessage()->::DealTurnCardMessage::MergeFrom(from.dealturncardmessage()); } - if (from.has_dealrivercardmessage()) { + if (cached_has_bits & 0x00004000u) { mutable_dealrivercardmessage()->::DealRiverCardMessage::MergeFrom(from.dealrivercardmessage()); } - } - if (from._has_bits_[48 / 32] & (0xffu << (48 % 32))) { - if (from.has_allinshowcardsmessage()) { + if (cached_has_bits & 0x00008000u) { mutable_allinshowcardsmessage()->::AllInShowCardsMessage::MergeFrom(from.allinshowcardsmessage()); } - if (from.has_endofhandshowcardsmessage()) { + } + if (cached_has_bits & 0x00ff0000u) { + if (cached_has_bits & 0x00010000u) { mutable_endofhandshowcardsmessage()->::EndOfHandShowCardsMessage::MergeFrom(from.endofhandshowcardsmessage()); } - if (from.has_endofhandhidecardsmessage()) { + if (cached_has_bits & 0x00020000u) { mutable_endofhandhidecardsmessage()->::EndOfHandHideCardsMessage::MergeFrom(from.endofhandhidecardsmessage()); } - if (from.has_showmycardsrequestmessage()) { + if (cached_has_bits & 0x00040000u) { mutable_showmycardsrequestmessage()->::ShowMyCardsRequestMessage::MergeFrom(from.showmycardsrequestmessage()); } - if (from.has_afterhandshowcardsmessage()) { + if (cached_has_bits & 0x00080000u) { mutable_afterhandshowcardsmessage()->::AfterHandShowCardsMessage::MergeFrom(from.afterhandshowcardsmessage()); } - if (from.has_endofgamemessage()) { + if (cached_has_bits & 0x00100000u) { mutable_endofgamemessage()->::EndOfGameMessage::MergeFrom(from.endofgamemessage()); } - if (from.has_playeridchangedmessage()) { + if (cached_has_bits & 0x00200000u) { mutable_playeridchangedmessage()->::PlayerIdChangedMessage::MergeFrom(from.playeridchangedmessage()); } - if (from.has_askkickplayermessage()) { + if (cached_has_bits & 0x00400000u) { mutable_askkickplayermessage()->::AskKickPlayerMessage::MergeFrom(from.askkickplayermessage()); } - } - if (from._has_bits_[56 / 32] & (0xffu << (56 % 32))) { - if (from.has_askkickdeniedmessage()) { + if (cached_has_bits & 0x00800000u) { mutable_askkickdeniedmessage()->::AskKickDeniedMessage::MergeFrom(from.askkickdeniedmessage()); } - if (from.has_startkickpetitionmessage()) { + } + if (cached_has_bits & 0xff000000u) { + if (cached_has_bits & 0x01000000u) { mutable_startkickpetitionmessage()->::StartKickPetitionMessage::MergeFrom(from.startkickpetitionmessage()); } - if (from.has_votekickrequestmessage()) { + if (cached_has_bits & 0x02000000u) { mutable_votekickrequestmessage()->::VoteKickRequestMessage::MergeFrom(from.votekickrequestmessage()); } - if (from.has_votekickreplymessage()) { + if (cached_has_bits & 0x04000000u) { mutable_votekickreplymessage()->::VoteKickReplyMessage::MergeFrom(from.votekickreplymessage()); } - if (from.has_kickpetitionupdatemessage()) { + if (cached_has_bits & 0x08000000u) { mutable_kickpetitionupdatemessage()->::KickPetitionUpdateMessage::MergeFrom(from.kickpetitionupdatemessage()); } - if (from.has_endkickpetitionmessage()) { + if (cached_has_bits & 0x10000000u) { mutable_endkickpetitionmessage()->::EndKickPetitionMessage::MergeFrom(from.endkickpetitionmessage()); } - if (from.has_statisticsmessage()) { + if (cached_has_bits & 0x20000000u) { mutable_statisticsmessage()->::StatisticsMessage::MergeFrom(from.statisticsmessage()); } - if (from.has_chatrequestmessage()) { + if (cached_has_bits & 0x40000000u) { mutable_chatrequestmessage()->::ChatRequestMessage::MergeFrom(from.chatrequestmessage()); } - } - if (from._has_bits_[64 / 32] & (0xffu << (64 % 32))) { - if (from.has_chatmessage()) { + if (cached_has_bits & 0x80000000u) { mutable_chatmessage()->::ChatMessage::MergeFrom(from.chatmessage()); } - if (from.has_chatrejectmessage()) { + } + cached_has_bits = from._has_bits_[2]; + if (cached_has_bits & 0x000000ffu) { + if (cached_has_bits & 0x00000001u) { mutable_chatrejectmessage()->::ChatRejectMessage::MergeFrom(from.chatrejectmessage()); } - if (from.has_dialogmessage()) { + if (cached_has_bits & 0x00000002u) { mutable_dialogmessage()->::DialogMessage::MergeFrom(from.dialogmessage()); } - if (from.has_timeoutwarningmessage()) { + if (cached_has_bits & 0x00000004u) { mutable_timeoutwarningmessage()->::TimeoutWarningMessage::MergeFrom(from.timeoutwarningmessage()); } - if (from.has_resettimeoutmessage()) { + if (cached_has_bits & 0x00000008u) { mutable_resettimeoutmessage()->::ResetTimeoutMessage::MergeFrom(from.resettimeoutmessage()); } - if (from.has_reportavatarmessage()) { + if (cached_has_bits & 0x00000010u) { mutable_reportavatarmessage()->::ReportAvatarMessage::MergeFrom(from.reportavatarmessage()); } - if (from.has_reportavatarackmessage()) { + if (cached_has_bits & 0x00000020u) { mutable_reportavatarackmessage()->::ReportAvatarAckMessage::MergeFrom(from.reportavatarackmessage()); } - if (from.has_reportgamemessage()) { + if (cached_has_bits & 0x00000040u) { mutable_reportgamemessage()->::ReportGameMessage::MergeFrom(from.reportgamemessage()); } - } - if (from._has_bits_[72 / 32] & (0xffu << (72 % 32))) { - if (from.has_reportgameackmessage()) { + if (cached_has_bits & 0x00000080u) { mutable_reportgameackmessage()->::ReportGameAckMessage::MergeFrom(from.reportgameackmessage()); } - if (from.has_errormessage()) { + } + if (cached_has_bits & 0x0000ff00u) { + if (cached_has_bits & 0x00000100u) { mutable_errormessage()->::ErrorMessage::MergeFrom(from.errormessage()); } - if (from.has_adminremovegamemessage()) { + if (cached_has_bits & 0x00000200u) { mutable_adminremovegamemessage()->::AdminRemoveGameMessage::MergeFrom(from.adminremovegamemessage()); } - if (from.has_adminremovegameackmessage()) { + if (cached_has_bits & 0x00000400u) { mutable_adminremovegameackmessage()->::AdminRemoveGameAckMessage::MergeFrom(from.adminremovegameackmessage()); } - if (from.has_adminbanplayermessage()) { + if (cached_has_bits & 0x00000800u) { mutable_adminbanplayermessage()->::AdminBanPlayerMessage::MergeFrom(from.adminbanplayermessage()); } - if (from.has_adminbanplayerackmessage()) { + if (cached_has_bits & 0x00001000u) { mutable_adminbanplayerackmessage()->::AdminBanPlayerAckMessage::MergeFrom(from.adminbanplayerackmessage()); } - if (from.has_gamelistspectatorjoinedmessage()) { + if (cached_has_bits & 0x00002000u) { mutable_gamelistspectatorjoinedmessage()->::GameListSpectatorJoinedMessage::MergeFrom(from.gamelistspectatorjoinedmessage()); } - if (from.has_gamelistspectatorleftmessage()) { + if (cached_has_bits & 0x00004000u) { mutable_gamelistspectatorleftmessage()->::GameListSpectatorLeftMessage::MergeFrom(from.gamelistspectatorleftmessage()); } - } - if (from._has_bits_[80 / 32] & (0xffu << (80 % 32))) { - if (from.has_gamespectatorjoinedmessage()) { + if (cached_has_bits & 0x00008000u) { mutable_gamespectatorjoinedmessage()->::GameSpectatorJoinedMessage::MergeFrom(from.gamespectatorjoinedmessage()); } - if (from.has_gamespectatorleftmessage()) { + } + if (cached_has_bits & 0x00030000u) { + if (cached_has_bits & 0x00010000u) { mutable_gamespectatorleftmessage()->::GameSpectatorLeftMessage::MergeFrom(from.gamespectatorleftmessage()); } + if (cached_has_bits & 0x00020000u) { + messagetype_ = from.messagetype_; + } + _has_bits_[2] |= cached_has_bits; } - mutable_unknown_fields()->append(from.unknown_fields()); } void PokerTHMessage::CopyFrom(const PokerTHMessage& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:PokerTHMessage) if (&from == this) return; Clear(); MergeFrom(from); } bool PokerTHMessage::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - + if ((_has_bits_[2] & 0x00020000) != 0x00020000) 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) { - 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]); - _unknown_fields_.swap(other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } + 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_); } ::std::string PokerTHMessage::GetTypeName() const { @@ -29009,5 +39410,283 @@ void PokerTHMessage::Swap(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 d676bab7..cffbc49d 100644 --- a/src/third_party/protobuf/pokerth.pb.h +++ b/src/third_party/protobuf/pokerth.pb.h @@ -1,126 +1,420 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: pokerth.proto -#ifndef PROTOBUF_pokerth_2eproto__INCLUDED -#define PROTOBUF_pokerth_2eproto__INCLUDED +#ifndef PROTOBUF_INCLUDED_pokerth_2eproto +#define PROTOBUF_INCLUDED_pokerth_2eproto +#include #include -#include - -#if GOOGLE_PROTOBUF_VERSION < 2006000 +#include +#if PROTOBUF_VERSION < 3007000 #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 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION +#if 3007001 < PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please +#error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif +#include +#include +#include +#include +#include #include +#include +#include #include -#include -#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include // @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_pokerth_2eproto -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_pokerth_2eproto(); -void protobuf_AssignDesc_pokerth_2eproto(); -void protobuf_ShutdownFile_pokerth_2eproto(); - -class NetGameInfo; -class PlayerResult; -class AnnounceMessage; -class AnnounceMessage_Version; -class InitMessage; -class AuthServerChallengeMessage; -class AuthClientResponseMessage; -class AuthServerVerificationMessage; -class InitAckMessage; -class AvatarRequestMessage; -class AvatarHeaderMessage; -class AvatarDataMessage; -class AvatarEndMessage; -class UnknownAvatarMessage; -class PlayerListMessage; -class GameListNewMessage; -class GameListUpdateMessage; -class GameListPlayerJoinedMessage; -class GameListPlayerLeftMessage; -class GameListSpectatorJoinedMessage; -class GameListSpectatorLeftMessage; -class GameListAdminChangedMessage; -class PlayerInfoRequestMessage; -class PlayerInfoReplyMessage; -class PlayerInfoReplyMessage_PlayerInfoData; -class PlayerInfoReplyMessage_PlayerInfoData_AvatarData; -class SubscriptionRequestMessage; -class JoinExistingGameMessage; -class JoinNewGameMessage; -class RejoinExistingGameMessage; -class JoinGameAckMessage; -class JoinGameFailedMessage; -class GamePlayerJoinedMessage; -class GamePlayerLeftMessage; -class GameSpectatorJoinedMessage; -class GameSpectatorLeftMessage; -class GameAdminChangedMessage; -class RemovedFromGameMessage; -class KickPlayerRequestMessage; -class LeaveGameRequestMessage; -class InvitePlayerToGameMessage; -class InviteNotifyMessage; -class RejectGameInvitationMessage; -class RejectInvNotifyMessage; -class StartEventMessage; -class StartEventAckMessage; -class GameStartInitialMessage; -class GameStartRejoinMessage; -class GameStartRejoinMessage_RejoinPlayerData; -class HandStartMessage; -class HandStartMessage_PlainCards; -class PlayersTurnMessage; -class MyActionRequestMessage; -class YourActionRejectedMessage; -class PlayersActionDoneMessage; -class DealFlopCardsMessage; -class DealTurnCardMessage; -class DealRiverCardMessage; -class AllInShowCardsMessage; -class AllInShowCardsMessage_PlayerAllIn; -class EndOfHandShowCardsMessage; -class EndOfHandHideCardsMessage; -class ShowMyCardsRequestMessage; -class AfterHandShowCardsMessage; -class EndOfGameMessage; -class PlayerIdChangedMessage; -class AskKickPlayerMessage; -class AskKickDeniedMessage; -class StartKickPetitionMessage; -class VoteKickRequestMessage; -class VoteKickReplyMessage; -class KickPetitionUpdateMessage; -class EndKickPetitionMessage; -class StatisticsMessage; -class StatisticsMessage_StatisticsData; -class ChatRequestMessage; -class ChatMessage; -class ChatRejectMessage; -class DialogMessage; -class TimeoutWarningMessage; -class ResetTimeoutMessage; -class ReportAvatarMessage; -class ReportAvatarAckMessage; -class ReportGameMessage; -class ReportGameAckMessage; -class ErrorMessage; -class AdminRemoveGameMessage; -class AdminRemoveGameAckMessage; -class AdminBanPlayerMessage; +// Internal implementation detail -- do not use these members. +struct TableStruct_pokerth_2eproto { + static const ::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_; +class NetGameInfo; +class NetGameInfoDefaultTypeInternal; +extern NetGameInfoDefaultTypeInternal _NetGameInfo_default_instance_; +class PlayerIdChangedMessage; +class PlayerIdChangedMessageDefaultTypeInternal; +extern PlayerIdChangedMessageDefaultTypeInternal _PlayerIdChangedMessage_default_instance_; +class PlayerInfoReplyMessage; +class PlayerInfoReplyMessageDefaultTypeInternal; +extern PlayerInfoReplyMessageDefaultTypeInternal _PlayerInfoReplyMessage_default_instance_; +class PlayerInfoReplyMessage_PlayerInfoData; +class PlayerInfoReplyMessage_PlayerInfoDataDefaultTypeInternal; +extern PlayerInfoReplyMessage_PlayerInfoDataDefaultTypeInternal _PlayerInfoReplyMessage_PlayerInfoData_default_instance_; +class PlayerInfoReplyMessage_PlayerInfoData_AvatarData; +class PlayerInfoReplyMessage_PlayerInfoData_AvatarDataDefaultTypeInternal; +extern PlayerInfoReplyMessage_PlayerInfoData_AvatarDataDefaultTypeInternal _PlayerInfoReplyMessage_PlayerInfoData_AvatarData_default_instance_; +class PlayerInfoRequestMessage; +class PlayerInfoRequestMessageDefaultTypeInternal; +extern PlayerInfoRequestMessageDefaultTypeInternal _PlayerInfoRequestMessage_default_instance_; +class PlayerListMessage; +class PlayerListMessageDefaultTypeInternal; +extern PlayerListMessageDefaultTypeInternal _PlayerListMessage_default_instance_; +class PlayerResult; +class PlayerResultDefaultTypeInternal; +extern PlayerResultDefaultTypeInternal _PlayerResult_default_instance_; +class PlayersActionDoneMessage; +class PlayersActionDoneMessageDefaultTypeInternal; +extern PlayersActionDoneMessageDefaultTypeInternal _PlayersActionDoneMessage_default_instance_; +class PlayersTurnMessage; +class PlayersTurnMessageDefaultTypeInternal; +extern PlayersTurnMessageDefaultTypeInternal _PlayersTurnMessage_default_instance_; class PokerTHMessage; +class PokerTHMessageDefaultTypeInternal; +extern PokerTHMessageDefaultTypeInternal _PokerTHMessage_default_instance_; +class RejectGameInvitationMessage; +class RejectGameInvitationMessageDefaultTypeInternal; +extern RejectGameInvitationMessageDefaultTypeInternal _RejectGameInvitationMessage_default_instance_; +class RejectInvNotifyMessage; +class RejectInvNotifyMessageDefaultTypeInternal; +extern RejectInvNotifyMessageDefaultTypeInternal _RejectInvNotifyMessage_default_instance_; +class RejoinExistingGameMessage; +class RejoinExistingGameMessageDefaultTypeInternal; +extern RejoinExistingGameMessageDefaultTypeInternal _RejoinExistingGameMessage_default_instance_; +class RemovedFromGameMessage; +class RemovedFromGameMessageDefaultTypeInternal; +extern RemovedFromGameMessageDefaultTypeInternal _RemovedFromGameMessage_default_instance_; +class ReportAvatarAckMessage; +class ReportAvatarAckMessageDefaultTypeInternal; +extern ReportAvatarAckMessageDefaultTypeInternal _ReportAvatarAckMessage_default_instance_; +class ReportAvatarMessage; +class ReportAvatarMessageDefaultTypeInternal; +extern ReportAvatarMessageDefaultTypeInternal _ReportAvatarMessage_default_instance_; +class ReportGameAckMessage; +class ReportGameAckMessageDefaultTypeInternal; +extern ReportGameAckMessageDefaultTypeInternal _ReportGameAckMessage_default_instance_; +class ReportGameMessage; +class ReportGameMessageDefaultTypeInternal; +extern ReportGameMessageDefaultTypeInternal _ReportGameMessage_default_instance_; +class ResetTimeoutMessage; +class ResetTimeoutMessageDefaultTypeInternal; +extern ResetTimeoutMessageDefaultTypeInternal _ResetTimeoutMessage_default_instance_; +class ShowMyCardsRequestMessage; +class ShowMyCardsRequestMessageDefaultTypeInternal; +extern ShowMyCardsRequestMessageDefaultTypeInternal _ShowMyCardsRequestMessage_default_instance_; +class StartEventAckMessage; +class StartEventAckMessageDefaultTypeInternal; +extern StartEventAckMessageDefaultTypeInternal _StartEventAckMessage_default_instance_; +class StartEventMessage; +class StartEventMessageDefaultTypeInternal; +extern StartEventMessageDefaultTypeInternal _StartEventMessage_default_instance_; +class StartKickPetitionMessage; +class StartKickPetitionMessageDefaultTypeInternal; +extern StartKickPetitionMessageDefaultTypeInternal _StartKickPetitionMessage_default_instance_; +class StatisticsMessage; +class StatisticsMessageDefaultTypeInternal; +extern StatisticsMessageDefaultTypeInternal _StatisticsMessage_default_instance_; +class StatisticsMessage_StatisticsData; +class StatisticsMessage_StatisticsDataDefaultTypeInternal; +extern StatisticsMessage_StatisticsDataDefaultTypeInternal _StatisticsMessage_StatisticsData_default_instance_; +class SubscriptionRequestMessage; +class SubscriptionRequestMessageDefaultTypeInternal; +extern SubscriptionRequestMessageDefaultTypeInternal _SubscriptionRequestMessage_default_instance_; +class TimeoutWarningMessage; +class TimeoutWarningMessageDefaultTypeInternal; +extern TimeoutWarningMessageDefaultTypeInternal _TimeoutWarningMessage_default_instance_; +class UnknownAvatarMessage; +class UnknownAvatarMessageDefaultTypeInternal; +extern UnknownAvatarMessageDefaultTypeInternal _UnknownAvatarMessage_default_instance_; +class VoteKickReplyMessage; +class VoteKickReplyMessageDefaultTypeInternal; +extern VoteKickReplyMessageDefaultTypeInternal _VoteKickReplyMessage_default_instance_; +class VoteKickRequestMessage; +class VoteKickRequestMessageDefaultTypeInternal; +extern VoteKickRequestMessageDefaultTypeInternal _VoteKickRequestMessage_default_instance_; +class YourActionRejectedMessage; +class YourActionRejectedMessageDefaultTypeInternal; +extern YourActionRejectedMessageDefaultTypeInternal _YourActionRejectedMessage_default_instance_; +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 enum NetGameInfo_NetGameType { NetGameInfo_NetGameType_normalGame = 1, @@ -345,7 +639,7 @@ const ReportGameAckMessage_ReportGameResult ReportGameAckMessage_ReportGameResul const int ReportGameAckMessage_ReportGameResult_ReportGameResult_ARRAYSIZE = ReportGameAckMessage_ReportGameResult_ReportGameResult_MAX + 1; enum ErrorMessage_ErrorReason { - ErrorMessage_ErrorReason_reserved = 0, + ErrorMessage_ErrorReason_custReserved = 0, ErrorMessage_ErrorReason_initVersionNotSupported = 1, ErrorMessage_ErrorReason_initServerFull = 2, ErrorMessage_ErrorReason_initAuthFailure = 3, @@ -362,7 +656,7 @@ enum ErrorMessage_ErrorReason { ErrorMessage_ErrorReason_sessionTimeout = 14 }; bool ErrorMessage_ErrorReason_IsValid(int value); -const ErrorMessage_ErrorReason ErrorMessage_ErrorReason_ErrorReason_MIN = ErrorMessage_ErrorReason_reserved; +const ErrorMessage_ErrorReason ErrorMessage_ErrorReason_ErrorReason_MIN = ErrorMessage_ErrorReason_custReserved; const ErrorMessage_ErrorReason ErrorMessage_ErrorReason_ErrorReason_MAX = ErrorMessage_ErrorReason_sessionTimeout; const int ErrorMessage_ErrorReason_ErrorReason_ARRAYSIZE = ErrorMessage_ErrorReason_ErrorReason_MAX + 1; @@ -544,7 +838,8 @@ const int NetAvatarType_ARRAYSIZE = NetAvatarType_MAX + 1; // =================================================================== -class NetGameInfo : public ::google::protobuf::MessageLite { +class NetGameInfo : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:NetGameInfo) */ { public: NetGameInfo(); virtual ~NetGameInfo(); @@ -555,59 +850,99 @@ class NetGameInfo : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const NetGameInfo& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const NetGameInfo* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_NetGameInfo_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 0; void Swap(NetGameInfo* other); + friend void swap(NetGameInfo& a, NetGameInfo& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - NetGameInfo* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const NetGameInfo& from); void MergeFrom(const NetGameInfo& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef NetGameInfo_NetGameType NetGameType; - static const NetGameType normalGame = NetGameInfo_NetGameType_normalGame; - static const NetGameType registeredOnlyGame = NetGameInfo_NetGameType_registeredOnlyGame; - static const NetGameType inviteOnlyGame = NetGameInfo_NetGameType_inviteOnlyGame; - static const NetGameType rankingGame = NetGameInfo_NetGameType_rankingGame; + static 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); } @@ -619,8 +954,10 @@ class NetGameInfo : public ::google::protobuf::MessageLite { 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); } @@ -632,9 +969,12 @@ class NetGameInfo : public ::google::protobuf::MessageLite { 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); } @@ -647,186 +987,156 @@ class NetGameInfo : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- - // required string gameName = 1; - inline bool has_gamename() const; - inline void clear_gamename(); - static const int kGameNameFieldNumber = 1; - inline const ::std::string& gamename() const; - inline void set_gamename(const ::std::string& value); - inline void set_gamename(const char* value); - inline void set_gamename(const char* value, size_t size); - inline ::std::string* mutable_gamename(); - inline ::std::string* release_gamename(); - inline void set_allocated_gamename(::std::string* gamename); - - // required .NetGameInfo.NetGameType netGameType = 2; - inline bool has_netgametype() const; - inline void clear_netgametype(); - static const int kNetGameTypeFieldNumber = 2; - inline ::NetGameInfo_NetGameType netgametype() const; - inline void set_netgametype(::NetGameInfo_NetGameType value); - - // required uint32 maxNumPlayers = 3; - inline bool has_maxnumplayers() const; - inline void clear_maxnumplayers(); - static const int kMaxNumPlayersFieldNumber = 3; - inline ::google::protobuf::uint32 maxnumplayers() const; - inline void set_maxnumplayers(::google::protobuf::uint32 value); - - // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; - inline bool has_raiseintervalmode() const; - inline void clear_raiseintervalmode(); - static const int kRaiseIntervalModeFieldNumber = 4; - inline ::NetGameInfo_RaiseIntervalMode raiseintervalmode() const; - inline void set_raiseintervalmode(::NetGameInfo_RaiseIntervalMode value); - - // optional uint32 raiseEveryHands = 5; - inline bool has_raiseeveryhands() const; - inline void clear_raiseeveryhands(); - static const int kRaiseEveryHandsFieldNumber = 5; - inline ::google::protobuf::uint32 raiseeveryhands() const; - inline void set_raiseeveryhands(::google::protobuf::uint32 value); - - // optional uint32 raiseEveryMinutes = 6; - inline bool has_raiseeveryminutes() const; - inline void clear_raiseeveryminutes(); - static const int kRaiseEveryMinutesFieldNumber = 6; - inline ::google::protobuf::uint32 raiseeveryminutes() const; - inline void set_raiseeveryminutes(::google::protobuf::uint32 value); - - // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; - inline bool has_endraisemode() const; - inline void clear_endraisemode(); - static const int kEndRaiseModeFieldNumber = 7; - inline ::NetGameInfo_EndRaiseMode endraisemode() const; - inline void set_endraisemode(::NetGameInfo_EndRaiseMode value); - - // optional uint32 endRaiseSmallBlindValue = 8; - inline bool has_endraisesmallblindvalue() const; - inline void clear_endraisesmallblindvalue(); - static const int kEndRaiseSmallBlindValueFieldNumber = 8; - inline ::google::protobuf::uint32 endraisesmallblindvalue() const; - inline void set_endraisesmallblindvalue(::google::protobuf::uint32 value); - - // required uint32 proposedGuiSpeed = 9; - inline bool has_proposedguispeed() const; - inline void clear_proposedguispeed(); - static const int kProposedGuiSpeedFieldNumber = 9; - inline ::google::protobuf::uint32 proposedguispeed() const; - inline void set_proposedguispeed(::google::protobuf::uint32 value); - - // required uint32 delayBetweenHands = 10; - inline bool has_delaybetweenhands() const; - inline void clear_delaybetweenhands(); - static const int kDelayBetweenHandsFieldNumber = 10; - inline ::google::protobuf::uint32 delaybetweenhands() const; - inline void set_delaybetweenhands(::google::protobuf::uint32 value); - - // required uint32 playerActionTimeout = 11; - inline bool has_playeractiontimeout() const; - inline void clear_playeractiontimeout(); - static const int kPlayerActionTimeoutFieldNumber = 11; - inline ::google::protobuf::uint32 playeractiontimeout() const; - inline void set_playeractiontimeout(::google::protobuf::uint32 value); - - // required uint32 firstSmallBlind = 12; - inline bool has_firstsmallblind() const; - inline void clear_firstsmallblind(); - static const int kFirstSmallBlindFieldNumber = 12; - inline ::google::protobuf::uint32 firstsmallblind() const; - inline void set_firstsmallblind(::google::protobuf::uint32 value); - - // required uint32 startMoney = 13; - inline bool has_startmoney() const; - inline void clear_startmoney(); - static const int kStartMoneyFieldNumber = 13; - inline ::google::protobuf::uint32 startmoney() const; - inline void set_startmoney(::google::protobuf::uint32 value); - // repeated uint32 manualBlinds = 14 [packed = true]; - inline int manualblinds_size() const; - inline void clear_manualblinds(); + int manualblinds_size() const; + 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 >& + ::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; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* mutable_manualblinds(); + // required string gameName = 1; + bool has_gamename() const; + 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); + + // required .NetGameInfo.NetGameType netGameType = 2; + bool has_netgametype() const; + void clear_netgametype(); + static const int kNetGameTypeFieldNumber = 2; + ::NetGameInfo_NetGameType netgametype() const; + void set_netgametype(::NetGameInfo_NetGameType value); + + // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; + bool has_raiseintervalmode() const; + void clear_raiseintervalmode(); + static const int kRaiseIntervalModeFieldNumber = 4; + ::NetGameInfo_RaiseIntervalMode raiseintervalmode() const; + void set_raiseintervalmode(::NetGameInfo_RaiseIntervalMode value); + + // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; + bool has_endraisemode() const; + void clear_endraisemode(); + static const int kEndRaiseModeFieldNumber = 7; + ::NetGameInfo_EndRaiseMode endraisemode() const; + void set_endraisemode(::NetGameInfo_EndRaiseMode value); + // optional bool allowSpectators = 15 [default = true]; - inline bool has_allowspectators() const; - inline void clear_allowspectators(); + bool has_allowspectators() const; + void clear_allowspectators(); static const int kAllowSpectatorsFieldNumber = 15; - inline bool allowspectators() const; - inline void set_allowspectators(bool value); + bool allowspectators() const; + void set_allowspectators(bool value); // @@protoc_insertion_point(class_scope:NetGameInfo) private: - inline void set_has_gamename(); - inline void clear_has_gamename(); - inline void set_has_netgametype(); - inline void clear_has_netgametype(); - inline void set_has_maxnumplayers(); - inline void clear_has_maxnumplayers(); - inline void set_has_raiseintervalmode(); - inline void clear_has_raiseintervalmode(); - inline void set_has_raiseeveryhands(); - inline void clear_has_raiseeveryhands(); - inline void set_has_raiseeveryminutes(); - inline void clear_has_raiseeveryminutes(); - inline void set_has_endraisemode(); - inline void clear_has_endraisemode(); - inline void set_has_endraisesmallblindvalue(); - inline void clear_has_endraisesmallblindvalue(); - inline void set_has_proposedguispeed(); - inline void clear_has_proposedguispeed(); - inline void set_has_delaybetweenhands(); - inline void clear_has_delaybetweenhands(); - inline void set_has_playeractiontimeout(); - inline void clear_has_playeractiontimeout(); - inline void set_has_firstsmallblind(); - inline void clear_has_firstsmallblind(); - inline void set_has_startmoney(); - inline void clear_has_startmoney(); - inline void set_has_allowspectators(); - inline void clear_has_allowspectators(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - ::std::string* gamename_; - int netgametype_; + ::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_; ::google::protobuf::uint32 maxnumplayers_; - int raiseintervalmode_; ::google::protobuf::uint32 raiseeveryhands_; ::google::protobuf::uint32 raiseeveryminutes_; - int endraisemode_; ::google::protobuf::uint32 endraisesmallblindvalue_; ::google::protobuf::uint32 proposedguispeed_; ::google::protobuf::uint32 delaybetweenhands_; ::google::protobuf::uint32 playeractiontimeout_; ::google::protobuf::uint32 firstsmallblind_; ::google::protobuf::uint32 startmoney_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > manualblinds_; - mutable int _manualblinds_cached_byte_size_; + int netgametype_; + int raiseintervalmode_; + int endraisemode_; bool allowspectators_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static NetGameInfo* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class PlayerResult : public ::google::protobuf::MessageLite { +class PlayerResult : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:PlayerResult) */ { public: PlayerResult(); virtual ~PlayerResult(); @@ -837,151 +1147,170 @@ class PlayerResult : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const PlayerResult& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PlayerResult* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_PlayerResult_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 1; void Swap(PlayerResult* other); + friend void swap(PlayerResult& a, PlayerResult& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - PlayerResult* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const PlayerResult& from); void MergeFrom(const PlayerResult& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // required uint32 playerId = 1; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 1; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); - - // required uint32 resultCard1 = 2; - inline bool has_resultcard1() const; - inline void clear_resultcard1(); - static const int kResultCard1FieldNumber = 2; - inline ::google::protobuf::uint32 resultcard1() const; - inline void set_resultcard1(::google::protobuf::uint32 value); - - // required uint32 resultCard2 = 3; - inline bool has_resultcard2() const; - inline void clear_resultcard2(); - static const int kResultCard2FieldNumber = 3; - inline ::google::protobuf::uint32 resultcard2() const; - inline void set_resultcard2(::google::protobuf::uint32 value); - // repeated uint32 bestHandPosition = 4 [packed = true]; - inline int besthandposition_size() const; - inline void clear_besthandposition(); + int besthandposition_size() const; + 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 >& + ::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; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* mutable_besthandposition(); + // required uint32 playerId = 1; + bool has_playerid() const; + void clear_playerid(); + static const int kPlayerIdFieldNumber = 1; + ::google::protobuf::uint32 playerid() const; + void set_playerid(::google::protobuf::uint32 value); + + // required uint32 resultCard1 = 2; + bool has_resultcard1() const; + void clear_resultcard1(); + static const int kResultCard1FieldNumber = 2; + ::google::protobuf::uint32 resultcard1() const; + void set_resultcard1(::google::protobuf::uint32 value); + + // required uint32 resultCard2 = 3; + bool has_resultcard2() const; + void clear_resultcard2(); + static const int kResultCard2FieldNumber = 3; + ::google::protobuf::uint32 resultcard2() const; + void set_resultcard2(::google::protobuf::uint32 value); + // required uint32 moneyWon = 5; - inline bool has_moneywon() const; - inline void clear_moneywon(); + bool has_moneywon() const; + void clear_moneywon(); static const int kMoneyWonFieldNumber = 5; - inline ::google::protobuf::uint32 moneywon() const; - inline void set_moneywon(::google::protobuf::uint32 value); + ::google::protobuf::uint32 moneywon() const; + void set_moneywon(::google::protobuf::uint32 value); // required uint32 playerMoney = 6; - inline bool has_playermoney() const; - inline void clear_playermoney(); + bool has_playermoney() const; + void clear_playermoney(); static const int kPlayerMoneyFieldNumber = 6; - inline ::google::protobuf::uint32 playermoney() const; - inline void set_playermoney(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playermoney() const; + void set_playermoney(::google::protobuf::uint32 value); // optional uint32 cardsValue = 7; - inline bool has_cardsvalue() const; - inline void clear_cardsvalue(); + bool has_cardsvalue() const; + void clear_cardsvalue(); static const int kCardsValueFieldNumber = 7; - inline ::google::protobuf::uint32 cardsvalue() const; - inline void set_cardsvalue(::google::protobuf::uint32 value); + ::google::protobuf::uint32 cardsvalue() const; + void set_cardsvalue(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:PlayerResult) private: - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_resultcard1(); - inline void clear_has_resultcard1(); - inline void set_has_resultcard2(); - inline void clear_has_resultcard2(); - inline void set_has_moneywon(); - inline void clear_has_moneywon(); - inline void set_has_playermoney(); - inline void clear_has_playermoney(); - inline void set_has_cardsvalue(); - inline void clear_has_cardsvalue(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::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_; ::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_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static PlayerResult* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AnnounceMessage_Version : public ::google::protobuf::MessageLite { +class AnnounceMessage_Version : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AnnounceMessage.Version) */ { public: AnnounceMessage_Version(); virtual ~AnnounceMessage_Version(); @@ -992,97 +1321,124 @@ class AnnounceMessage_Version : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const AnnounceMessage_Version& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AnnounceMessage_Version* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AnnounceMessage_Version_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 2; void Swap(AnnounceMessage_Version* other); + friend void swap(AnnounceMessage_Version& a, AnnounceMessage_Version& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - AnnounceMessage_Version* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline AnnounceMessage_Version* New() const final { + return CreateMaybeMessage(nullptr); + } + + AnnounceMessage_Version* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) + final; void CopyFrom(const AnnounceMessage_Version& from); void MergeFrom(const AnnounceMessage_Version& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 majorVersion = 1; - inline bool has_majorversion() const; - inline void clear_majorversion(); + bool has_majorversion() const; + void clear_majorversion(); static const int kMajorVersionFieldNumber = 1; - inline ::google::protobuf::uint32 majorversion() const; - inline void set_majorversion(::google::protobuf::uint32 value); + ::google::protobuf::uint32 majorversion() const; + void set_majorversion(::google::protobuf::uint32 value); // required uint32 minorVersion = 2; - inline bool has_minorversion() const; - inline void clear_minorversion(); + bool has_minorversion() const; + void clear_minorversion(); static const int kMinorVersionFieldNumber = 2; - inline ::google::protobuf::uint32 minorversion() const; - inline void set_minorversion(::google::protobuf::uint32 value); + ::google::protobuf::uint32 minorversion() const; + void set_minorversion(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:AnnounceMessage.Version) private: - inline void set_has_majorversion(); - inline void clear_has_majorversion(); - inline void set_has_minorversion(); - inline void clear_has_minorversion(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 majorversion_; ::google::protobuf::uint32 minorversion_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AnnounceMessage_Version* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AnnounceMessage : public ::google::protobuf::MessageLite { +class AnnounceMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AnnounceMessage) */ { public: AnnounceMessage(); virtual ~AnnounceMessage(); @@ -1093,60 +1449,99 @@ class AnnounceMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const AnnounceMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AnnounceMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AnnounceMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 3; void Swap(AnnounceMessage* other); + friend void swap(AnnounceMessage& a, AnnounceMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - AnnounceMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const AnnounceMessage& from); void MergeFrom(const AnnounceMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef AnnounceMessage_Version Version; typedef AnnounceMessage_ServerType ServerType; - static const ServerType serverTypeLAN = AnnounceMessage_ServerType_serverTypeLAN; - static const ServerType serverTypeInternetNoAuth = AnnounceMessage_ServerType_serverTypeInternetNoAuth; - static const ServerType serverTypeInternetAuth = AnnounceMessage_ServerType_serverTypeInternetAuth; + static 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); } @@ -1160,80 +1555,65 @@ class AnnounceMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- // required .AnnounceMessage.Version protocolVersion = 1; - inline bool has_protocolversion() const; - inline void clear_protocolversion(); + bool has_protocolversion() const; + void clear_protocolversion(); static const int kProtocolVersionFieldNumber = 1; - inline const ::AnnounceMessage_Version& protocolversion() const; - inline ::AnnounceMessage_Version* mutable_protocolversion(); - inline ::AnnounceMessage_Version* release_protocolversion(); - inline void set_allocated_protocolversion(::AnnounceMessage_Version* protocolversion); + const ::AnnounceMessage_Version& protocolversion() const; + ::AnnounceMessage_Version* release_protocolversion(); + ::AnnounceMessage_Version* mutable_protocolversion(); + void set_allocated_protocolversion(::AnnounceMessage_Version* protocolversion); // required .AnnounceMessage.Version latestGameVersion = 2; - inline bool has_latestgameversion() const; - inline void clear_latestgameversion(); + bool has_latestgameversion() const; + void clear_latestgameversion(); static const int kLatestGameVersionFieldNumber = 2; - inline const ::AnnounceMessage_Version& latestgameversion() const; - inline ::AnnounceMessage_Version* mutable_latestgameversion(); - inline ::AnnounceMessage_Version* release_latestgameversion(); - inline void set_allocated_latestgameversion(::AnnounceMessage_Version* latestgameversion); + const ::AnnounceMessage_Version& latestgameversion() const; + ::AnnounceMessage_Version* release_latestgameversion(); + ::AnnounceMessage_Version* mutable_latestgameversion(); + void set_allocated_latestgameversion(::AnnounceMessage_Version* latestgameversion); // required uint32 latestBetaRevision = 3; - inline bool has_latestbetarevision() const; - inline void clear_latestbetarevision(); + bool has_latestbetarevision() const; + void clear_latestbetarevision(); static const int kLatestBetaRevisionFieldNumber = 3; - inline ::google::protobuf::uint32 latestbetarevision() const; - inline void set_latestbetarevision(::google::protobuf::uint32 value); + ::google::protobuf::uint32 latestbetarevision() const; + void set_latestbetarevision(::google::protobuf::uint32 value); // required .AnnounceMessage.ServerType serverType = 4; - inline bool has_servertype() const; - inline void clear_servertype(); + bool has_servertype() const; + void clear_servertype(); static const int kServerTypeFieldNumber = 4; - inline ::AnnounceMessage_ServerType servertype() const; - inline void set_servertype(::AnnounceMessage_ServerType value); + ::AnnounceMessage_ServerType servertype() const; + void set_servertype(::AnnounceMessage_ServerType value); // required uint32 numPlayersOnServer = 5; - inline bool has_numplayersonserver() const; - inline void clear_numplayersonserver(); + bool has_numplayersonserver() const; + void clear_numplayersonserver(); static const int kNumPlayersOnServerFieldNumber = 5; - inline ::google::protobuf::uint32 numplayersonserver() const; - inline void set_numplayersonserver(::google::protobuf::uint32 value); + ::google::protobuf::uint32 numplayersonserver() const; + void set_numplayersonserver(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:AnnounceMessage) private: - inline void set_has_protocolversion(); - inline void clear_has_protocolversion(); - inline void set_has_latestgameversion(); - inline void clear_has_latestgameversion(); - inline void set_has_latestbetarevision(); - inline void clear_has_latestbetarevision(); - inline void set_has_servertype(); - inline void clear_has_servertype(); - inline void set_has_numplayersonserver(); - inline void clear_has_numplayersonserver(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::AnnounceMessage_Version* protocolversion_; ::AnnounceMessage_Version* latestgameversion_; ::google::protobuf::uint32 latestbetarevision_; int servertype_; ::google::protobuf::uint32 numplayersonserver_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AnnounceMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class InitMessage : public ::google::protobuf::MessageLite { +class InitMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:InitMessage) */ { public: InitMessage(); virtual ~InitMessage(); @@ -1244,58 +1624,97 @@ class InitMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const InitMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const InitMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_InitMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 4; void Swap(InitMessage* other); + friend void swap(InitMessage& a, InitMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - InitMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const InitMessage& from); void MergeFrom(const InitMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef InitMessage_LoginType LoginType; - static const LoginType guestLogin = InitMessage_LoginType_guestLogin; - static const LoginType authenticatedLogin = InitMessage_LoginType_authenticatedLogin; - static const LoginType unauthenticatedLogin = InitMessage_LoginType_unauthenticatedLogin; + static 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); } @@ -1308,134 +1727,128 @@ class InitMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- - // required .AnnounceMessage.Version requestedVersion = 1; - inline bool has_requestedversion() const; - inline void clear_requestedversion(); - static const int kRequestedVersionFieldNumber = 1; - inline const ::AnnounceMessage_Version& requestedversion() const; - inline ::AnnounceMessage_Version* mutable_requestedversion(); - inline ::AnnounceMessage_Version* release_requestedversion(); - inline void set_allocated_requestedversion(::AnnounceMessage_Version* requestedversion); - - // required uint32 buildId = 2; - inline bool has_buildid() const; - inline void clear_buildid(); - static const int kBuildIdFieldNumber = 2; - inline ::google::protobuf::uint32 buildid() const; - inline void set_buildid(::google::protobuf::uint32 value); - // optional bytes myLastSessionId = 3; - inline bool has_mylastsessionid() const; - inline void clear_mylastsessionid(); + bool has_mylastsessionid() const; + void clear_mylastsessionid(); static const int kMyLastSessionIdFieldNumber = 3; - inline const ::std::string& mylastsessionid() const; - inline void set_mylastsessionid(const ::std::string& value); - inline void set_mylastsessionid(const char* value); - inline void set_mylastsessionid(const void* value, size_t size); - inline ::std::string* mutable_mylastsessionid(); - inline ::std::string* release_mylastsessionid(); - inline void set_allocated_mylastsessionid(::std::string* mylastsessionid); + 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; - inline bool has_authserverpassword() const; - inline void clear_authserverpassword(); + bool has_authserverpassword() const; + void clear_authserverpassword(); static const int kAuthServerPasswordFieldNumber = 4; - inline const ::std::string& authserverpassword() const; - inline void set_authserverpassword(const ::std::string& value); - inline void set_authserverpassword(const char* value); - inline void set_authserverpassword(const char* value, size_t size); - inline ::std::string* mutable_authserverpassword(); - inline ::std::string* release_authserverpassword(); - inline void set_allocated_authserverpassword(::std::string* authserverpassword); - - // required .InitMessage.LoginType login = 5; - inline bool has_login() const; - inline void clear_login(); - static const int kLoginFieldNumber = 5; - inline ::InitMessage_LoginType login() const; - inline void set_login(::InitMessage_LoginType value); + 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; - inline bool has_nickname() const; - inline void clear_nickname(); + bool has_nickname() const; + void clear_nickname(); static const int kNickNameFieldNumber = 6; - inline const ::std::string& nickname() const; - inline void set_nickname(const ::std::string& value); - inline void set_nickname(const char* value); - inline void set_nickname(const char* value, size_t size); - inline ::std::string* mutable_nickname(); - inline ::std::string* release_nickname(); - inline void set_allocated_nickname(::std::string* nickname); + 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; - inline bool has_clientuserdata() const; - inline void clear_clientuserdata(); + bool has_clientuserdata() const; + void clear_clientuserdata(); static const int kClientUserDataFieldNumber = 7; - inline const ::std::string& clientuserdata() const; - inline void set_clientuserdata(const ::std::string& value); - inline void set_clientuserdata(const char* value); - inline void set_clientuserdata(const void* value, size_t size); - inline ::std::string* mutable_clientuserdata(); - inline ::std::string* release_clientuserdata(); - inline void set_allocated_clientuserdata(::std::string* clientuserdata); + 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; - inline bool has_avatarhash() const; - inline void clear_avatarhash(); + bool has_avatarhash() const; + void clear_avatarhash(); static const int kAvatarHashFieldNumber = 8; - inline const ::std::string& avatarhash() const; - inline void set_avatarhash(const ::std::string& value); - inline void set_avatarhash(const char* value); - inline void set_avatarhash(const void* value, size_t size); - inline ::std::string* mutable_avatarhash(); - inline ::std::string* release_avatarhash(); - inline void set_allocated_avatarhash(::std::string* avatarhash); + 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(); + 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); + + // required uint32 buildId = 2; + bool has_buildid() const; + void clear_buildid(); + static const int kBuildIdFieldNumber = 2; + ::google::protobuf::uint32 buildid() const; + void set_buildid(::google::protobuf::uint32 value); + + // required .InitMessage.LoginType login = 5; + bool has_login() const; + void clear_login(); + static const int kLoginFieldNumber = 5; + ::InitMessage_LoginType login() const; + void set_login(::InitMessage_LoginType value); // @@protoc_insertion_point(class_scope:InitMessage) private: - inline void set_has_requestedversion(); - inline void clear_has_requestedversion(); - inline void set_has_buildid(); - inline void clear_has_buildid(); - inline void set_has_mylastsessionid(); - inline void clear_has_mylastsessionid(); - inline void set_has_authserverpassword(); - inline void clear_has_authserverpassword(); - inline void set_has_login(); - inline void clear_has_login(); - inline void set_has_nickname(); - inline void clear_has_nickname(); - inline void set_has_clientuserdata(); - inline void clear_has_clientuserdata(); - inline void set_has_avatarhash(); - inline void clear_has_avatarhash(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::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_; ::AnnounceMessage_Version* requestedversion_; - ::std::string* mylastsessionid_; ::google::protobuf::uint32 buildid_; int login_; - ::std::string* authserverpassword_; - ::std::string* nickname_; - ::std::string* clientuserdata_; - ::std::string* avatarhash_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static InitMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AuthServerChallengeMessage : public ::google::protobuf::MessageLite { +class AuthServerChallengeMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AuthServerChallengeMessage) */ { public: AuthServerChallengeMessage(); virtual ~AuthServerChallengeMessage(); @@ -1446,92 +1859,121 @@ class AuthServerChallengeMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const AuthServerChallengeMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AuthServerChallengeMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AuthServerChallengeMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 5; void Swap(AuthServerChallengeMessage* other); + friend void swap(AuthServerChallengeMessage& a, AuthServerChallengeMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - AuthServerChallengeMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const AuthServerChallengeMessage& from); void MergeFrom(const AuthServerChallengeMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required bytes serverChallenge = 1; - inline bool has_serverchallenge() const; - inline void clear_serverchallenge(); + bool has_serverchallenge() const; + void clear_serverchallenge(); static const int kServerChallengeFieldNumber = 1; - inline const ::std::string& serverchallenge() const; - inline void set_serverchallenge(const ::std::string& value); - inline void set_serverchallenge(const char* value); - inline void set_serverchallenge(const void* value, size_t size); - inline ::std::string* mutable_serverchallenge(); - inline ::std::string* release_serverchallenge(); - inline void set_allocated_serverchallenge(::std::string* serverchallenge); + 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); // @@protoc_insertion_point(class_scope:AuthServerChallengeMessage) private: - inline void set_has_serverchallenge(); - inline void clear_has_serverchallenge(); + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - ::std::string* serverchallenge_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AuthServerChallengeMessage* default_instance_; + ::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; }; // ------------------------------------------------------------------- -class AuthClientResponseMessage : public ::google::protobuf::MessageLite { +class AuthClientResponseMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AuthClientResponseMessage) */ { public: AuthClientResponseMessage(); virtual ~AuthClientResponseMessage(); @@ -1542,92 +1984,121 @@ class AuthClientResponseMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const AuthClientResponseMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AuthClientResponseMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AuthClientResponseMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 6; void Swap(AuthClientResponseMessage* other); + friend void swap(AuthClientResponseMessage& a, AuthClientResponseMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - AuthClientResponseMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const AuthClientResponseMessage& from); void MergeFrom(const AuthClientResponseMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required bytes clientResponse = 1; - inline bool has_clientresponse() const; - inline void clear_clientresponse(); + bool has_clientresponse() const; + void clear_clientresponse(); static const int kClientResponseFieldNumber = 1; - inline const ::std::string& clientresponse() const; - inline void set_clientresponse(const ::std::string& value); - inline void set_clientresponse(const char* value); - inline void set_clientresponse(const void* value, size_t size); - inline ::std::string* mutable_clientresponse(); - inline ::std::string* release_clientresponse(); - inline void set_allocated_clientresponse(::std::string* clientresponse); + 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); // @@protoc_insertion_point(class_scope:AuthClientResponseMessage) private: - inline void set_has_clientresponse(); - inline void clear_has_clientresponse(); + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - ::std::string* clientresponse_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AuthClientResponseMessage* default_instance_; + ::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; }; // ------------------------------------------------------------------- -class AuthServerVerificationMessage : public ::google::protobuf::MessageLite { +class AuthServerVerificationMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AuthServerVerificationMessage) */ { public: AuthServerVerificationMessage(); virtual ~AuthServerVerificationMessage(); @@ -1638,92 +2109,121 @@ class AuthServerVerificationMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const AuthServerVerificationMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AuthServerVerificationMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AuthServerVerificationMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 7; void Swap(AuthServerVerificationMessage* other); + friend void swap(AuthServerVerificationMessage& a, AuthServerVerificationMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - AuthServerVerificationMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const AuthServerVerificationMessage& from); void MergeFrom(const AuthServerVerificationMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required bytes serverVerification = 1; - inline bool has_serververification() const; - inline void clear_serververification(); + bool has_serververification() const; + void clear_serververification(); static const int kServerVerificationFieldNumber = 1; - inline const ::std::string& serververification() const; - inline void set_serververification(const ::std::string& value); - inline void set_serververification(const char* value); - inline void set_serververification(const void* value, size_t size); - inline ::std::string* mutable_serververification(); - inline ::std::string* release_serververification(); - inline void set_allocated_serververification(::std::string* serververification); + 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); // @@protoc_insertion_point(class_scope:AuthServerVerificationMessage) private: - inline void set_has_serververification(); - inline void clear_has_serververification(); + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - ::std::string* serververification_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AuthServerVerificationMessage* default_instance_; + ::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; }; // ------------------------------------------------------------------- -class InitAckMessage : public ::google::protobuf::MessageLite { +class InitAckMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:InitAckMessage) */ { public: InitAckMessage(); virtual ~InitAckMessage(); @@ -1734,127 +2234,156 @@ class InitAckMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const InitAckMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const InitAckMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_InitAckMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 8; void Swap(InitAckMessage* other); + friend void swap(InitAckMessage& a, InitAckMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - InitAckMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const InitAckMessage& from); void MergeFrom(const InitAckMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required bytes yourSessionId = 1; - inline bool has_yoursessionid() const; - inline void clear_yoursessionid(); + bool has_yoursessionid() const; + void clear_yoursessionid(); static const int kYourSessionIdFieldNumber = 1; - inline const ::std::string& yoursessionid() const; - inline void set_yoursessionid(const ::std::string& value); - inline void set_yoursessionid(const char* value); - inline void set_yoursessionid(const void* value, size_t size); - inline ::std::string* mutable_yoursessionid(); - inline ::std::string* release_yoursessionid(); - inline void set_allocated_yoursessionid(::std::string* yoursessionid); - - // required uint32 yourPlayerId = 2; - inline bool has_yourplayerid() const; - inline void clear_yourplayerid(); - static const int kYourPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 yourplayerid() const; - inline void set_yourplayerid(::google::protobuf::uint32 value); + 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; - inline bool has_youravatarhash() const; - inline void clear_youravatarhash(); + bool has_youravatarhash() const; + void clear_youravatarhash(); static const int kYourAvatarHashFieldNumber = 3; - inline const ::std::string& youravatarhash() const; - inline void set_youravatarhash(const ::std::string& value); - inline void set_youravatarhash(const char* value); - inline void set_youravatarhash(const void* value, size_t size); - inline ::std::string* mutable_youravatarhash(); - inline ::std::string* release_youravatarhash(); - inline void set_allocated_youravatarhash(::std::string* youravatarhash); + 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); + + // required uint32 yourPlayerId = 2; + bool has_yourplayerid() const; + void clear_yourplayerid(); + static const int kYourPlayerIdFieldNumber = 2; + ::google::protobuf::uint32 yourplayerid() const; + void set_yourplayerid(::google::protobuf::uint32 value); // optional uint32 rejoinGameId = 4; - inline bool has_rejoingameid() const; - inline void clear_rejoingameid(); + bool has_rejoingameid() const; + void clear_rejoingameid(); static const int kRejoinGameIdFieldNumber = 4; - inline ::google::protobuf::uint32 rejoingameid() const; - inline void set_rejoingameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 rejoingameid() const; + void set_rejoingameid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:InitAckMessage) private: - inline void set_has_yoursessionid(); - inline void clear_has_yoursessionid(); - inline void set_has_yourplayerid(); - inline void clear_has_yourplayerid(); - inline void set_has_youravatarhash(); - inline void clear_has_youravatarhash(); - inline void set_has_rejoingameid(); - inline void clear_has_rejoingameid(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - ::std::string* yoursessionid_; - ::std::string* youravatarhash_; + ::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_; ::google::protobuf::uint32 yourplayerid_; ::google::protobuf::uint32 rejoingameid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static InitAckMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AvatarRequestMessage : public ::google::protobuf::MessageLite { +class AvatarRequestMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AvatarRequestMessage) */ { public: AvatarRequestMessage(); virtual ~AvatarRequestMessage(); @@ -1865,102 +2394,132 @@ class AvatarRequestMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const AvatarRequestMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AvatarRequestMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AvatarRequestMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 9; void Swap(AvatarRequestMessage* other); + friend void swap(AvatarRequestMessage& a, AvatarRequestMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - AvatarRequestMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const AvatarRequestMessage& from); void MergeFrom(const AvatarRequestMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // required uint32 requestId = 1; - inline bool has_requestid() const; - inline void clear_requestid(); - static const int kRequestIdFieldNumber = 1; - inline ::google::protobuf::uint32 requestid() const; - inline void set_requestid(::google::protobuf::uint32 value); - // required bytes avatarHash = 2; - inline bool has_avatarhash() const; - inline void clear_avatarhash(); + bool has_avatarhash() const; + void clear_avatarhash(); static const int kAvatarHashFieldNumber = 2; - inline const ::std::string& avatarhash() const; - inline void set_avatarhash(const ::std::string& value); - inline void set_avatarhash(const char* value); - inline void set_avatarhash(const void* value, size_t size); - inline ::std::string* mutable_avatarhash(); - inline ::std::string* release_avatarhash(); - inline void set_allocated_avatarhash(::std::string* avatarhash); + 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(); + static const int kRequestIdFieldNumber = 1; + ::google::protobuf::uint32 requestid() const; + void set_requestid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:AvatarRequestMessage) private: - inline void set_has_requestid(); - inline void clear_has_requestid(); - inline void set_has_avatarhash(); - inline void clear_has_avatarhash(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - ::std::string* avatarhash_; + ::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_; ::google::protobuf::uint32 requestid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AvatarRequestMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AvatarHeaderMessage : public ::google::protobuf::MessageLite { +class AvatarHeaderMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AvatarHeaderMessage) */ { public: AvatarHeaderMessage(); virtual ~AvatarHeaderMessage(); @@ -1971,107 +2530,132 @@ class AvatarHeaderMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const AvatarHeaderMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AvatarHeaderMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AvatarHeaderMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 10; void Swap(AvatarHeaderMessage* other); + friend void swap(AvatarHeaderMessage& a, AvatarHeaderMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - AvatarHeaderMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const AvatarHeaderMessage& from); void MergeFrom(const AvatarHeaderMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 requestId = 1; - inline bool has_requestid() const; - inline void clear_requestid(); + bool has_requestid() const; + void clear_requestid(); static const int kRequestIdFieldNumber = 1; - inline ::google::protobuf::uint32 requestid() const; - inline void set_requestid(::google::protobuf::uint32 value); - - // required .NetAvatarType avatarType = 2; - inline bool has_avatartype() const; - inline void clear_avatartype(); - static const int kAvatarTypeFieldNumber = 2; - inline ::NetAvatarType avatartype() const; - inline void set_avatartype(::NetAvatarType value); + ::google::protobuf::uint32 requestid() const; + void set_requestid(::google::protobuf::uint32 value); // required uint32 avatarSize = 3; - inline bool has_avatarsize() const; - inline void clear_avatarsize(); + bool has_avatarsize() const; + void clear_avatarsize(); static const int kAvatarSizeFieldNumber = 3; - inline ::google::protobuf::uint32 avatarsize() const; - inline void set_avatarsize(::google::protobuf::uint32 value); + ::google::protobuf::uint32 avatarsize() const; + void set_avatarsize(::google::protobuf::uint32 value); + + // required .NetAvatarType avatarType = 2; + bool has_avatartype() const; + void clear_avatartype(); + static const int kAvatarTypeFieldNumber = 2; + ::NetAvatarType avatartype() const; + void set_avatartype(::NetAvatarType value); // @@protoc_insertion_point(class_scope:AvatarHeaderMessage) private: - inline void set_has_requestid(); - inline void clear_has_requestid(); - inline void set_has_avatartype(); - inline void clear_has_avatartype(); - inline void set_has_avatarsize(); - inline void clear_has_avatarsize(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 requestid_; - int avatartype_; ::google::protobuf::uint32 avatarsize_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AvatarHeaderMessage* default_instance_; + int avatartype_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AvatarDataMessage : public ::google::protobuf::MessageLite { +class AvatarDataMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AvatarDataMessage) */ { public: AvatarDataMessage(); virtual ~AvatarDataMessage(); @@ -2082,102 +2666,132 @@ class AvatarDataMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const AvatarDataMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AvatarDataMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AvatarDataMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 11; void Swap(AvatarDataMessage* other); + friend void swap(AvatarDataMessage& a, AvatarDataMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - AvatarDataMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const AvatarDataMessage& from); void MergeFrom(const AvatarDataMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // required uint32 requestId = 1; - inline bool has_requestid() const; - inline void clear_requestid(); - static const int kRequestIdFieldNumber = 1; - inline ::google::protobuf::uint32 requestid() const; - inline void set_requestid(::google::protobuf::uint32 value); - // required bytes avatarBlock = 2; - inline bool has_avatarblock() const; - inline void clear_avatarblock(); + bool has_avatarblock() const; + void clear_avatarblock(); static const int kAvatarBlockFieldNumber = 2; - inline const ::std::string& avatarblock() const; - inline void set_avatarblock(const ::std::string& value); - inline void set_avatarblock(const char* value); - inline void set_avatarblock(const void* value, size_t size); - inline ::std::string* mutable_avatarblock(); - inline ::std::string* release_avatarblock(); - inline void set_allocated_avatarblock(::std::string* avatarblock); + 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(); + static const int kRequestIdFieldNumber = 1; + ::google::protobuf::uint32 requestid() const; + void set_requestid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:AvatarDataMessage) private: - inline void set_has_requestid(); - inline void clear_has_requestid(); - inline void set_has_avatarblock(); - inline void clear_has_avatarblock(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - ::std::string* avatarblock_; + ::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_; ::google::protobuf::uint32 requestid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AvatarDataMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AvatarEndMessage : public ::google::protobuf::MessageLite { +class AvatarEndMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AvatarEndMessage) */ { public: AvatarEndMessage(); virtual ~AvatarEndMessage(); @@ -2188,87 +2802,113 @@ class AvatarEndMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const AvatarEndMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AvatarEndMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AvatarEndMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 12; void Swap(AvatarEndMessage* other); + friend void swap(AvatarEndMessage& a, AvatarEndMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - AvatarEndMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const AvatarEndMessage& from); void MergeFrom(const AvatarEndMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 requestId = 1; - inline bool has_requestid() const; - inline void clear_requestid(); + bool has_requestid() const; + void clear_requestid(); static const int kRequestIdFieldNumber = 1; - inline ::google::protobuf::uint32 requestid() const; - inline void set_requestid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 requestid() const; + void set_requestid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:AvatarEndMessage) private: - inline void set_has_requestid(); - inline void clear_has_requestid(); + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 requestid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AvatarEndMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class UnknownAvatarMessage : public ::google::protobuf::MessageLite { +class UnknownAvatarMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:UnknownAvatarMessage) */ { public: UnknownAvatarMessage(); virtual ~UnknownAvatarMessage(); @@ -2279,87 +2919,113 @@ class UnknownAvatarMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const UnknownAvatarMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const UnknownAvatarMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_UnknownAvatarMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 13; void Swap(UnknownAvatarMessage* other); + friend void swap(UnknownAvatarMessage& a, UnknownAvatarMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - UnknownAvatarMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const UnknownAvatarMessage& from); void MergeFrom(const UnknownAvatarMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 requestId = 1; - inline bool has_requestid() const; - inline void clear_requestid(); + bool has_requestid() const; + void clear_requestid(); static const int kRequestIdFieldNumber = 1; - inline ::google::protobuf::uint32 requestid() const; - inline void set_requestid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 requestid() const; + void set_requestid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:UnknownAvatarMessage) private: - inline void set_has_requestid(); - inline void clear_has_requestid(); + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 requestid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static UnknownAvatarMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class PlayerListMessage : public ::google::protobuf::MessageLite { +class PlayerListMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:PlayerListMessage) */ { public: PlayerListMessage(); virtual ~PlayerListMessage(); @@ -2370,57 +3036,95 @@ class PlayerListMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const PlayerListMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PlayerListMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_PlayerListMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 14; void Swap(PlayerListMessage* other); + friend void swap(PlayerListMessage& a, PlayerListMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - PlayerListMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const PlayerListMessage& from); void MergeFrom(const PlayerListMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef PlayerListMessage_PlayerListNotification PlayerListNotification; - static const PlayerListNotification playerListNew = PlayerListMessage_PlayerListNotification_playerListNew; - static const PlayerListNotification playerListLeft = PlayerListMessage_PlayerListNotification_playerListLeft; + static 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); } @@ -2434,46 +3138,37 @@ class PlayerListMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- // required uint32 playerId = 1; - inline bool has_playerid() const; - inline void clear_playerid(); + bool has_playerid() const; + void clear_playerid(); static const int kPlayerIdFieldNumber = 1; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playerid() const; + void set_playerid(::google::protobuf::uint32 value); // required .PlayerListMessage.PlayerListNotification playerListNotification = 2; - inline bool has_playerlistnotification() const; - inline void clear_playerlistnotification(); + bool has_playerlistnotification() const; + void clear_playerlistnotification(); static const int kPlayerListNotificationFieldNumber = 2; - inline ::PlayerListMessage_PlayerListNotification playerlistnotification() const; - inline void set_playerlistnotification(::PlayerListMessage_PlayerListNotification value); + ::PlayerListMessage_PlayerListNotification playerlistnotification() const; + void set_playerlistnotification(::PlayerListMessage_PlayerListNotification value); // @@protoc_insertion_point(class_scope:PlayerListMessage) private: - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_playerlistnotification(); - inline void clear_has_playerlistnotification(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 playerid_; int playerlistnotification_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static PlayerListMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameListNewMessage : public ::google::protobuf::MessageLite { +class GameListNewMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameListNewMessage) */ { public: GameListNewMessage(); virtual ~GameListNewMessage(); @@ -2484,157 +3179,178 @@ class GameListNewMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const GameListNewMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameListNewMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameListNewMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 15; void Swap(GameListNewMessage* other); + friend void swap(GameListNewMessage& a, GameListNewMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - GameListNewMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const GameListNewMessage& from); void MergeFrom(const GameListNewMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); - - // required .NetGameMode gameMode = 2; - inline bool has_gamemode() const; - inline void clear_gamemode(); - static const int kGameModeFieldNumber = 2; - inline ::NetGameMode gamemode() const; - inline void set_gamemode(::NetGameMode value); - - // required bool isPrivate = 3; - inline bool has_isprivate() const; - inline void clear_isprivate(); - static const int kIsPrivateFieldNumber = 3; - inline bool isprivate() const; - inline void set_isprivate(bool value); - // repeated uint32 playerIds = 4 [packed = true]; - inline int playerids_size() const; - inline void clear_playerids(); + int playerids_size() const; + 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 >& + ::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; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + ::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); + // 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; - inline bool has_gameinfo() const; - inline void clear_gameinfo(); + bool has_gameinfo() const; + void clear_gameinfo(); static const int kGameInfoFieldNumber = 6; - inline const ::NetGameInfo& gameinfo() const; - inline ::NetGameInfo* mutable_gameinfo(); - inline ::NetGameInfo* release_gameinfo(); - inline void set_allocated_gameinfo(::NetGameInfo* gameinfo); + const ::NetGameInfo& gameinfo() const; + ::NetGameInfo* release_gameinfo(); + ::NetGameInfo* mutable_gameinfo(); + void set_allocated_gameinfo(::NetGameInfo* gameinfo); - // repeated uint32 spectatorIds = 7 [packed = true]; - inline int spectatorids_size() const; - inline void clear_spectatorids(); - static const int kSpectatorIdsFieldNumber = 7; - inline ::google::protobuf::uint32 spectatorids(int index) const; - inline void set_spectatorids(int index, ::google::protobuf::uint32 value); - inline void add_spectatorids(::google::protobuf::uint32 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& - spectatorids() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* - mutable_spectatorids(); + // required uint32 gameId = 1; + bool has_gameid() const; + 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); + + // required .NetGameMode gameMode = 2; + bool has_gamemode() const; + void clear_gamemode(); + static const int kGameModeFieldNumber = 2; + ::NetGameMode gamemode() const; + void set_gamemode(::NetGameMode value); // @@protoc_insertion_point(class_scope:GameListNewMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_gamemode(); - inline void clear_has_gamemode(); - inline void set_has_isprivate(); - inline void clear_has_isprivate(); - inline void set_has_adminplayerid(); - inline void clear_has_adminplayerid(); - inline void set_has_gameinfo(); - inline void clear_has_gameinfo(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - ::google::protobuf::uint32 gameid_; - int gamemode_; + ::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 int _playerids_cached_byte_size_; + mutable std::atomic _playerids_cached_byte_size_; + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > spectatorids_; + mutable std::atomic _spectatorids_cached_byte_size_; + ::NetGameInfo* gameinfo_; + ::google::protobuf::uint32 gameid_; bool isprivate_; ::google::protobuf::uint32 adminplayerid_; - ::NetGameInfo* gameinfo_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > spectatorids_; - mutable int _spectatorids_cached_byte_size_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameListNewMessage* default_instance_; + int gamemode_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameListUpdateMessage : public ::google::protobuf::MessageLite { +class GameListUpdateMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameListUpdateMessage) */ { public: GameListUpdateMessage(); virtual ~GameListUpdateMessage(); @@ -2645,97 +3361,124 @@ class GameListUpdateMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const GameListUpdateMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameListUpdateMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameListUpdateMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 16; void Swap(GameListUpdateMessage* other); + friend void swap(GameListUpdateMessage& a, GameListUpdateMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - GameListUpdateMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const GameListUpdateMessage& from); void MergeFrom(const GameListUpdateMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required .NetGameMode gameMode = 2; - inline bool has_gamemode() const; - inline void clear_gamemode(); + bool has_gamemode() const; + void clear_gamemode(); static const int kGameModeFieldNumber = 2; - inline ::NetGameMode gamemode() const; - inline void set_gamemode(::NetGameMode value); + ::NetGameMode gamemode() const; + void set_gamemode(::NetGameMode value); // @@protoc_insertion_point(class_scope:GameListUpdateMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_gamemode(); - inline void clear_has_gamemode(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; int gamemode_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameListUpdateMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameListPlayerJoinedMessage : public ::google::protobuf::MessageLite { +class GameListPlayerJoinedMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameListPlayerJoinedMessage) */ { public: GameListPlayerJoinedMessage(); virtual ~GameListPlayerJoinedMessage(); @@ -2746,97 +3489,124 @@ class GameListPlayerJoinedMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const GameListPlayerJoinedMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameListPlayerJoinedMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameListPlayerJoinedMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 17; void Swap(GameListPlayerJoinedMessage* other); + friend void swap(GameListPlayerJoinedMessage& a, GameListPlayerJoinedMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - GameListPlayerJoinedMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const GameListPlayerJoinedMessage& from); void MergeFrom(const GameListPlayerJoinedMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); + bool has_playerid() const; + void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playerid() const; + void set_playerid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:GameListPlayerJoinedMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameListPlayerJoinedMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameListPlayerLeftMessage : public ::google::protobuf::MessageLite { +class GameListPlayerLeftMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameListPlayerLeftMessage) */ { public: GameListPlayerLeftMessage(); virtual ~GameListPlayerLeftMessage(); @@ -2847,97 +3617,124 @@ class GameListPlayerLeftMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const GameListPlayerLeftMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameListPlayerLeftMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameListPlayerLeftMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 18; void Swap(GameListPlayerLeftMessage* other); + friend void swap(GameListPlayerLeftMessage& a, GameListPlayerLeftMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - GameListPlayerLeftMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const GameListPlayerLeftMessage& from); void MergeFrom(const GameListPlayerLeftMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); + bool has_playerid() const; + void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playerid() const; + void set_playerid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:GameListPlayerLeftMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameListPlayerLeftMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameListSpectatorJoinedMessage : public ::google::protobuf::MessageLite { +class GameListSpectatorJoinedMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameListSpectatorJoinedMessage) */ { public: GameListSpectatorJoinedMessage(); virtual ~GameListSpectatorJoinedMessage(); @@ -2948,97 +3745,124 @@ class GameListSpectatorJoinedMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const GameListSpectatorJoinedMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameListSpectatorJoinedMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameListSpectatorJoinedMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 19; void Swap(GameListSpectatorJoinedMessage* other); + friend void swap(GameListSpectatorJoinedMessage& a, GameListSpectatorJoinedMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - GameListSpectatorJoinedMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const GameListSpectatorJoinedMessage& from); void MergeFrom(const GameListSpectatorJoinedMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); + bool has_playerid() const; + void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playerid() const; + void set_playerid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:GameListSpectatorJoinedMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameListSpectatorJoinedMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameListSpectatorLeftMessage : public ::google::protobuf::MessageLite { +class GameListSpectatorLeftMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameListSpectatorLeftMessage) */ { public: GameListSpectatorLeftMessage(); virtual ~GameListSpectatorLeftMessage(); @@ -3049,97 +3873,124 @@ class GameListSpectatorLeftMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const GameListSpectatorLeftMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameListSpectatorLeftMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameListSpectatorLeftMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 20; void Swap(GameListSpectatorLeftMessage* other); + friend void swap(GameListSpectatorLeftMessage& a, GameListSpectatorLeftMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - GameListSpectatorLeftMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const GameListSpectatorLeftMessage& from); void MergeFrom(const GameListSpectatorLeftMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); + bool has_playerid() const; + void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playerid() const; + void set_playerid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:GameListSpectatorLeftMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameListSpectatorLeftMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameListAdminChangedMessage : public ::google::protobuf::MessageLite { +class GameListAdminChangedMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameListAdminChangedMessage) */ { public: GameListAdminChangedMessage(); virtual ~GameListAdminChangedMessage(); @@ -3150,97 +4001,124 @@ class GameListAdminChangedMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const GameListAdminChangedMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameListAdminChangedMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameListAdminChangedMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 21; void Swap(GameListAdminChangedMessage* other); + friend void swap(GameListAdminChangedMessage& a, GameListAdminChangedMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - GameListAdminChangedMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const GameListAdminChangedMessage& from); void MergeFrom(const GameListAdminChangedMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 newAdminPlayerId = 2; - inline bool has_newadminplayerid() const; - inline void clear_newadminplayerid(); + bool has_newadminplayerid() const; + void clear_newadminplayerid(); static const int kNewAdminPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 newadminplayerid() const; - inline void set_newadminplayerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 newadminplayerid() const; + void set_newadminplayerid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:GameListAdminChangedMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_newadminplayerid(); - inline void clear_has_newadminplayerid(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 newadminplayerid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameListAdminChangedMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class PlayerInfoRequestMessage : public ::google::protobuf::MessageLite { +class PlayerInfoRequestMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:PlayerInfoRequestMessage) */ { public: PlayerInfoRequestMessage(); virtual ~PlayerInfoRequestMessage(); @@ -3251,91 +4129,119 @@ class PlayerInfoRequestMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const PlayerInfoRequestMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PlayerInfoRequestMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_PlayerInfoRequestMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 22; void Swap(PlayerInfoRequestMessage* other); + friend void swap(PlayerInfoRequestMessage& a, PlayerInfoRequestMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - PlayerInfoRequestMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const PlayerInfoRequestMessage& from); void MergeFrom(const PlayerInfoRequestMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // repeated uint32 playerId = 1 [packed = true]; - inline int playerid_size() const; - inline void clear_playerid(); + int playerid_size() const; + void clear_playerid(); static const int kPlayerIdFieldNumber = 1; - inline ::google::protobuf::uint32 playerid(int index) const; - inline void set_playerid(int index, ::google::protobuf::uint32 value); - inline void add_playerid(::google::protobuf::uint32 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& + ::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 >& playerid() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* + ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* mutable_playerid(); // @@protoc_insertion_point(class_scope:PlayerInfoRequestMessage) private: + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::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 int _playerid_cached_byte_size_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static PlayerInfoRequestMessage* default_instance_; + mutable std::atomic _playerid_cached_byte_size_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class PlayerInfoReplyMessage_PlayerInfoData_AvatarData : public ::google::protobuf::MessageLite { +class PlayerInfoReplyMessage_PlayerInfoData_AvatarData : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) */ { public: PlayerInfoReplyMessage_PlayerInfoData_AvatarData(); virtual ~PlayerInfoReplyMessage_PlayerInfoData_AvatarData(); @@ -3346,102 +4252,132 @@ class PlayerInfoReplyMessage_PlayerInfoData_AvatarData : public ::google::protob CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PlayerInfoReplyMessage_PlayerInfoData_AvatarData* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_PlayerInfoReplyMessage_PlayerInfoData_AvatarData_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 23; void Swap(PlayerInfoReplyMessage_PlayerInfoData_AvatarData* other); + friend void swap(PlayerInfoReplyMessage_PlayerInfoData_AvatarData& a, PlayerInfoReplyMessage_PlayerInfoData_AvatarData& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - PlayerInfoReplyMessage_PlayerInfoData_AvatarData* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline PlayerInfoReplyMessage_PlayerInfoData_AvatarData* New() const final { + return CreateMaybeMessage(nullptr); + } + + PlayerInfoReplyMessage_PlayerInfoData_AvatarData* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) + final; void CopyFrom(const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& from); void MergeFrom(const PlayerInfoReplyMessage_PlayerInfoData_AvatarData& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // required .NetAvatarType avatarType = 1; - inline bool has_avatartype() const; - inline void clear_avatartype(); - static const int kAvatarTypeFieldNumber = 1; - inline ::NetAvatarType avatartype() const; - inline void set_avatartype(::NetAvatarType value); - // required bytes avatarHash = 2; - inline bool has_avatarhash() const; - inline void clear_avatarhash(); + bool has_avatarhash() const; + void clear_avatarhash(); static const int kAvatarHashFieldNumber = 2; - inline const ::std::string& avatarhash() const; - inline void set_avatarhash(const ::std::string& value); - inline void set_avatarhash(const char* value); - inline void set_avatarhash(const void* value, size_t size); - inline ::std::string* mutable_avatarhash(); - inline ::std::string* release_avatarhash(); - inline void set_allocated_avatarhash(::std::string* avatarhash); + 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(); + static const int kAvatarTypeFieldNumber = 1; + ::NetAvatarType avatartype() const; + void set_avatartype(::NetAvatarType value); // @@protoc_insertion_point(class_scope:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) private: - inline void set_has_avatartype(); - inline void clear_has_avatartype(); - inline void set_has_avatarhash(); - inline void clear_has_avatarhash(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - ::std::string* avatarhash_; + ::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_; int avatartype_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static PlayerInfoReplyMessage_PlayerInfoData_AvatarData* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class PlayerInfoReplyMessage_PlayerInfoData : public ::google::protobuf::MessageLite { +class PlayerInfoReplyMessage_PlayerInfoData : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:PlayerInfoReplyMessage.PlayerInfoData) */ { public: PlayerInfoReplyMessage_PlayerInfoData(); virtual ~PlayerInfoReplyMessage_PlayerInfoData(); @@ -3452,51 +4388,87 @@ class PlayerInfoReplyMessage_PlayerInfoData : public ::google::protobuf::Message CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const PlayerInfoReplyMessage_PlayerInfoData& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PlayerInfoReplyMessage_PlayerInfoData* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_PlayerInfoReplyMessage_PlayerInfoData_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 24; void Swap(PlayerInfoReplyMessage_PlayerInfoData* other); + friend void swap(PlayerInfoReplyMessage_PlayerInfoData& a, PlayerInfoReplyMessage_PlayerInfoData& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - PlayerInfoReplyMessage_PlayerInfoData* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline PlayerInfoReplyMessage_PlayerInfoData* New() const final { + return CreateMaybeMessage(nullptr); + } + + PlayerInfoReplyMessage_PlayerInfoData* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) + final; void CopyFrom(const PlayerInfoReplyMessage_PlayerInfoData& from); void MergeFrom(const PlayerInfoReplyMessage_PlayerInfoData& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- @@ -3505,88 +4477,79 @@ class PlayerInfoReplyMessage_PlayerInfoData : public ::google::protobuf::Message // accessors ------------------------------------------------------- // required string playerName = 1; - inline bool has_playername() const; - inline void clear_playername(); + bool has_playername() const; + void clear_playername(); static const int kPlayerNameFieldNumber = 1; - inline const ::std::string& playername() const; - inline void set_playername(const ::std::string& value); - inline void set_playername(const char* value); - inline void set_playername(const char* value, size_t size); - inline ::std::string* mutable_playername(); - inline ::std::string* release_playername(); - inline void set_allocated_playername(::std::string* playername); - - // required bool isHuman = 2; - inline bool has_ishuman() const; - inline void clear_ishuman(); - static const int kIsHumanFieldNumber = 2; - inline bool ishuman() const; - inline void set_ishuman(bool value); - - // required .NetPlayerInfoRights playerRights = 3; - inline bool has_playerrights() const; - inline void clear_playerrights(); - static const int kPlayerRightsFieldNumber = 3; - inline ::NetPlayerInfoRights playerrights() const; - inline void set_playerrights(::NetPlayerInfoRights value); + 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; - inline bool has_countrycode() const; - inline void clear_countrycode(); + bool has_countrycode() const; + void clear_countrycode(); static const int kCountryCodeFieldNumber = 4; - inline const ::std::string& countrycode() const; - inline void set_countrycode(const ::std::string& value); - inline void set_countrycode(const char* value); - inline void set_countrycode(const char* value, size_t size); - inline ::std::string* mutable_countrycode(); - inline ::std::string* release_countrycode(); - inline void set_allocated_countrycode(::std::string* countrycode); + 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; - inline bool has_avatardata() const; - inline void clear_avatardata(); + bool has_avatardata() const; + void clear_avatardata(); static const int kAvatarDataFieldNumber = 5; - inline const ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData& avatardata() const; - inline ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* mutable_avatardata(); - inline ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* release_avatardata(); - inline void set_allocated_avatardata(::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* avatardata); + const ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData& avatardata() const; + ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* release_avatardata(); + ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* mutable_avatardata(); + void set_allocated_avatardata(::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* avatardata); + + // required bool isHuman = 2; + bool has_ishuman() const; + void clear_ishuman(); + static const int kIsHumanFieldNumber = 2; + bool ishuman() const; + void set_ishuman(bool value); + + // required .NetPlayerInfoRights playerRights = 3; + bool has_playerrights() const; + void clear_playerrights(); + static const int kPlayerRightsFieldNumber = 3; + ::NetPlayerInfoRights playerrights() const; + void set_playerrights(::NetPlayerInfoRights value); // @@protoc_insertion_point(class_scope:PlayerInfoReplyMessage.PlayerInfoData) private: - inline void set_has_playername(); - inline void clear_has_playername(); - inline void set_has_ishuman(); - inline void clear_has_ishuman(); - inline void set_has_playerrights(); - inline void clear_has_playerrights(); - inline void set_has_countrycode(); - inline void clear_has_countrycode(); - inline void set_has_avatardata(); - inline void clear_has_avatardata(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - ::std::string* playername_; + ::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_; bool ishuman_; int playerrights_; - ::std::string* countrycode_; - ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* avatardata_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static PlayerInfoReplyMessage_PlayerInfoData* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class PlayerInfoReplyMessage : public ::google::protobuf::MessageLite { +class PlayerInfoReplyMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:PlayerInfoReplyMessage) */ { public: PlayerInfoReplyMessage(); virtual ~PlayerInfoReplyMessage(); @@ -3597,51 +4560,87 @@ class PlayerInfoReplyMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const PlayerInfoReplyMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PlayerInfoReplyMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_PlayerInfoReplyMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 25; void Swap(PlayerInfoReplyMessage* other); + friend void swap(PlayerInfoReplyMessage& a, PlayerInfoReplyMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - PlayerInfoReplyMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const PlayerInfoReplyMessage& from); void MergeFrom(const PlayerInfoReplyMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- @@ -3649,49 +4648,37 @@ class PlayerInfoReplyMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- - // required uint32 playerId = 1; - inline bool has_playerid() const; - inline void clear_playerid(); - static const int kPlayerIdFieldNumber = 1; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); - // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; - inline bool has_playerinfodata() const; - inline void clear_playerinfodata(); + bool has_playerinfodata() const; + void clear_playerinfodata(); static const int kPlayerInfoDataFieldNumber = 2; - inline const ::PlayerInfoReplyMessage_PlayerInfoData& playerinfodata() const; - inline ::PlayerInfoReplyMessage_PlayerInfoData* mutable_playerinfodata(); - inline ::PlayerInfoReplyMessage_PlayerInfoData* release_playerinfodata(); - inline void set_allocated_playerinfodata(::PlayerInfoReplyMessage_PlayerInfoData* playerinfodata); + 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(); + static const int kPlayerIdFieldNumber = 1; + ::google::protobuf::uint32 playerid() const; + void set_playerid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:PlayerInfoReplyMessage) private: - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_playerinfodata(); - inline void clear_has_playerinfodata(); + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::PlayerInfoReplyMessage_PlayerInfoData* playerinfodata_; ::google::protobuf::uint32 playerid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static PlayerInfoReplyMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class SubscriptionRequestMessage : public ::google::protobuf::MessageLite { +class SubscriptionRequestMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:SubscriptionRequestMessage) */ { public: SubscriptionRequestMessage(); virtual ~SubscriptionRequestMessage(); @@ -3702,57 +4689,95 @@ class SubscriptionRequestMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const SubscriptionRequestMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SubscriptionRequestMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_SubscriptionRequestMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 26; void Swap(SubscriptionRequestMessage* other); + friend void swap(SubscriptionRequestMessage& a, SubscriptionRequestMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - SubscriptionRequestMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const SubscriptionRequestMessage& from); void MergeFrom(const SubscriptionRequestMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef SubscriptionRequestMessage_SubscriptionAction SubscriptionAction; - static const SubscriptionAction unsubscribeGameList = SubscriptionRequestMessage_SubscriptionAction_unsubscribeGameList; - static const SubscriptionAction resubscribeGameList = SubscriptionRequestMessage_SubscriptionAction_resubscribeGameList; + static 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); } @@ -3766,36 +4791,26 @@ class SubscriptionRequestMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- // required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; - inline bool has_subscriptionaction() const; - inline void clear_subscriptionaction(); + bool has_subscriptionaction() const; + void clear_subscriptionaction(); static const int kSubscriptionActionFieldNumber = 1; - inline ::SubscriptionRequestMessage_SubscriptionAction subscriptionaction() const; - inline void set_subscriptionaction(::SubscriptionRequestMessage_SubscriptionAction value); + ::SubscriptionRequestMessage_SubscriptionAction subscriptionaction() const; + void set_subscriptionaction(::SubscriptionRequestMessage_SubscriptionAction value); // @@protoc_insertion_point(class_scope:SubscriptionRequestMessage) private: - inline void set_has_subscriptionaction(); - inline void clear_has_subscriptionaction(); + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; int subscriptionaction_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static SubscriptionRequestMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class JoinExistingGameMessage : public ::google::protobuf::MessageLite { +class JoinExistingGameMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:JoinExistingGameMessage) */ { public: JoinExistingGameMessage(); virtual ~JoinExistingGameMessage(); @@ -3806,122 +4821,145 @@ class JoinExistingGameMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const JoinExistingGameMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const JoinExistingGameMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_JoinExistingGameMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 27; void Swap(JoinExistingGameMessage* other); + friend void swap(JoinExistingGameMessage& a, JoinExistingGameMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - JoinExistingGameMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const JoinExistingGameMessage& from); void MergeFrom(const JoinExistingGameMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); - // optional string password = 2; - inline bool has_password() const; - inline void clear_password(); + bool has_password() const; + void clear_password(); static const int kPasswordFieldNumber = 2; - inline const ::std::string& password() const; - inline void set_password(const ::std::string& value); - inline void set_password(const char* value); - inline void set_password(const char* value, size_t size); - inline ::std::string* mutable_password(); - inline ::std::string* release_password(); - inline void set_allocated_password(::std::string* password); + 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(); + static const int kGameIdFieldNumber = 1; + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // optional bool autoLeave = 3 [default = false]; - inline bool has_autoleave() const; - inline void clear_autoleave(); + bool has_autoleave() const; + void clear_autoleave(); static const int kAutoLeaveFieldNumber = 3; - inline bool autoleave() const; - inline void set_autoleave(bool value); + bool autoleave() const; + void set_autoleave(bool value); // optional bool spectateOnly = 4 [default = false]; - inline bool has_spectateonly() const; - inline void clear_spectateonly(); + bool has_spectateonly() const; + void clear_spectateonly(); static const int kSpectateOnlyFieldNumber = 4; - inline bool spectateonly() const; - inline void set_spectateonly(bool value); + bool spectateonly() const; + void set_spectateonly(bool value); // @@protoc_insertion_point(class_scope:JoinExistingGameMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_password(); - inline void clear_has_password(); - inline void set_has_autoleave(); - inline void clear_has_autoleave(); - inline void set_has_spectateonly(); - inline void clear_has_spectateonly(); + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - ::std::string* password_; + ::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_; ::google::protobuf::uint32 gameid_; bool autoleave_; bool spectateonly_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static JoinExistingGameMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class JoinNewGameMessage : public ::google::protobuf::MessageLite { +class JoinNewGameMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:JoinNewGameMessage) */ { public: JoinNewGameMessage(); virtual ~JoinNewGameMessage(); @@ -3932,114 +4970,139 @@ class JoinNewGameMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const JoinNewGameMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const JoinNewGameMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_JoinNewGameMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 28; void Swap(JoinNewGameMessage* other); + friend void swap(JoinNewGameMessage& a, JoinNewGameMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - JoinNewGameMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const JoinNewGameMessage& from); void MergeFrom(const JoinNewGameMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // required .NetGameInfo gameInfo = 1; - inline bool has_gameinfo() const; - inline void clear_gameinfo(); - static const int kGameInfoFieldNumber = 1; - inline const ::NetGameInfo& gameinfo() const; - inline ::NetGameInfo* mutable_gameinfo(); - inline ::NetGameInfo* release_gameinfo(); - inline void set_allocated_gameinfo(::NetGameInfo* gameinfo); - // optional string password = 2; - inline bool has_password() const; - inline void clear_password(); + bool has_password() const; + void clear_password(); static const int kPasswordFieldNumber = 2; - inline const ::std::string& password() const; - inline void set_password(const ::std::string& value); - inline void set_password(const char* value); - inline void set_password(const char* value, size_t size); - inline ::std::string* mutable_password(); - inline ::std::string* release_password(); - inline void set_allocated_password(::std::string* password); + 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(); + static const int kGameInfoFieldNumber = 1; + const ::NetGameInfo& gameinfo() const; + ::NetGameInfo* release_gameinfo(); + ::NetGameInfo* mutable_gameinfo(); + void set_allocated_gameinfo(::NetGameInfo* gameinfo); // optional bool autoLeave = 3; - inline bool has_autoleave() const; - inline void clear_autoleave(); + bool has_autoleave() const; + void clear_autoleave(); static const int kAutoLeaveFieldNumber = 3; - inline bool autoleave() const; - inline void set_autoleave(bool value); + bool autoleave() const; + void set_autoleave(bool value); // @@protoc_insertion_point(class_scope:JoinNewGameMessage) private: - inline void set_has_gameinfo(); - inline void clear_has_gameinfo(); - inline void set_has_password(); - inline void clear_has_password(); - inline void set_has_autoleave(); - inline void clear_has_autoleave(); + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::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_; ::NetGameInfo* gameinfo_; - ::std::string* password_; bool autoleave_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static JoinNewGameMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class RejoinExistingGameMessage : public ::google::protobuf::MessageLite { +class RejoinExistingGameMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:RejoinExistingGameMessage) */ { public: RejoinExistingGameMessage(); virtual ~RejoinExistingGameMessage(); @@ -4050,97 +5113,121 @@ class RejoinExistingGameMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const RejoinExistingGameMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const RejoinExistingGameMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_RejoinExistingGameMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 29; void Swap(RejoinExistingGameMessage* other); + friend void swap(RejoinExistingGameMessage& a, RejoinExistingGameMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - RejoinExistingGameMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const RejoinExistingGameMessage& from); void MergeFrom(const RejoinExistingGameMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // optional bool autoLeave = 2; - inline bool has_autoleave() const; - inline void clear_autoleave(); + bool has_autoleave() const; + void clear_autoleave(); static const int kAutoLeaveFieldNumber = 2; - inline bool autoleave() const; - inline void set_autoleave(bool value); + bool autoleave() const; + void set_autoleave(bool value); // @@protoc_insertion_point(class_scope:RejoinExistingGameMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_autoleave(); - inline void clear_has_autoleave(); + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; bool autoleave_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static RejoinExistingGameMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class JoinGameAckMessage : public ::google::protobuf::MessageLite { +class JoinGameAckMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:JoinGameAckMessage) */ { public: JoinGameAckMessage(); virtual ~JoinGameAckMessage(); @@ -4151,119 +5238,142 @@ class JoinGameAckMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const JoinGameAckMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const JoinGameAckMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_JoinGameAckMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 30; void Swap(JoinGameAckMessage* other); + friend void swap(JoinGameAckMessage& a, JoinGameAckMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - JoinGameAckMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const JoinGameAckMessage& from); void MergeFrom(const JoinGameAckMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // 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; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required bool areYouGameAdmin = 2; - inline bool has_areyougameadmin() const; - inline void clear_areyougameadmin(); + bool has_areyougameadmin() const; + void clear_areyougameadmin(); static const int kAreYouGameAdminFieldNumber = 2; - inline bool areyougameadmin() const; - inline void set_areyougameadmin(bool value); - - // required .NetGameInfo gameInfo = 3; - inline bool has_gameinfo() const; - inline void clear_gameinfo(); - static const int kGameInfoFieldNumber = 3; - inline const ::NetGameInfo& gameinfo() const; - inline ::NetGameInfo* mutable_gameinfo(); - inline ::NetGameInfo* release_gameinfo(); - inline void set_allocated_gameinfo(::NetGameInfo* gameinfo); + bool areyougameadmin() const; + void set_areyougameadmin(bool value); // optional bool spectateOnly = 4; - inline bool has_spectateonly() const; - inline void clear_spectateonly(); + bool has_spectateonly() const; + void clear_spectateonly(); static const int kSpectateOnlyFieldNumber = 4; - inline bool spectateonly() const; - inline void set_spectateonly(bool value); + bool spectateonly() const; + void set_spectateonly(bool value); // @@protoc_insertion_point(class_scope:JoinGameAckMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_areyougameadmin(); - inline void clear_has_areyougameadmin(); - inline void set_has_gameinfo(); - inline void clear_has_gameinfo(); - inline void set_has_spectateonly(); - inline void clear_has_spectateonly(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; + ::NetGameInfo* gameinfo_; ::google::protobuf::uint32 gameid_; bool areyougameadmin_; bool spectateonly_; - ::NetGameInfo* gameinfo_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static JoinGameAckMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class JoinGameFailedMessage : public ::google::protobuf::MessageLite { +class JoinGameFailedMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:JoinGameFailedMessage) */ { public: JoinGameFailedMessage(); virtual ~JoinGameFailedMessage(); @@ -4274,67 +5384,115 @@ class JoinGameFailedMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const JoinGameFailedMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const JoinGameFailedMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_JoinGameFailedMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 31; void Swap(JoinGameFailedMessage* other); + friend void swap(JoinGameFailedMessage& a, JoinGameFailedMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - JoinGameFailedMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const JoinGameFailedMessage& from); void MergeFrom(const JoinGameFailedMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef JoinGameFailedMessage_JoinGameFailureReason JoinGameFailureReason; - static const JoinGameFailureReason invalidGame = JoinGameFailedMessage_JoinGameFailureReason_invalidGame; - static const JoinGameFailureReason gameIsFull = JoinGameFailedMessage_JoinGameFailureReason_gameIsFull; - static const JoinGameFailureReason gameIsRunning = JoinGameFailedMessage_JoinGameFailureReason_gameIsRunning; - static const JoinGameFailureReason invalidPassword = JoinGameFailedMessage_JoinGameFailureReason_invalidPassword; - static const JoinGameFailureReason notAllowedAsGuest = JoinGameFailedMessage_JoinGameFailureReason_notAllowedAsGuest; - static const JoinGameFailureReason notInvited = JoinGameFailedMessage_JoinGameFailureReason_notInvited; - static const JoinGameFailureReason gameNameInUse = JoinGameFailedMessage_JoinGameFailureReason_gameNameInUse; - static const JoinGameFailureReason badGameName = JoinGameFailedMessage_JoinGameFailureReason_badGameName; - static const JoinGameFailureReason invalidSettings = JoinGameFailedMessage_JoinGameFailureReason_invalidSettings; - static const JoinGameFailureReason ipAddressBlocked = JoinGameFailedMessage_JoinGameFailureReason_ipAddressBlocked; - static const JoinGameFailureReason rejoinFailed = JoinGameFailedMessage_JoinGameFailureReason_rejoinFailed; - static const JoinGameFailureReason noSpectatorsAllowed = JoinGameFailedMessage_JoinGameFailureReason_noSpectatorsAllowed; + static 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); } @@ -4348,46 +5506,37 @@ class JoinGameFailedMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; - inline bool has_joingamefailurereason() const; - inline void clear_joingamefailurereason(); + bool has_joingamefailurereason() const; + void clear_joingamefailurereason(); static const int kJoinGameFailureReasonFieldNumber = 2; - inline ::JoinGameFailedMessage_JoinGameFailureReason joingamefailurereason() const; - inline void set_joingamefailurereason(::JoinGameFailedMessage_JoinGameFailureReason value); + ::JoinGameFailedMessage_JoinGameFailureReason joingamefailurereason() const; + void set_joingamefailurereason(::JoinGameFailedMessage_JoinGameFailureReason value); // @@protoc_insertion_point(class_scope:JoinGameFailedMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_joingamefailurereason(); - inline void clear_has_joingamefailurereason(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; int joingamefailurereason_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static JoinGameFailedMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GamePlayerJoinedMessage : public ::google::protobuf::MessageLite { +class GamePlayerJoinedMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GamePlayerJoinedMessage) */ { public: GamePlayerJoinedMessage(); virtual ~GamePlayerJoinedMessage(); @@ -4398,107 +5547,132 @@ class GamePlayerJoinedMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const GamePlayerJoinedMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GamePlayerJoinedMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GamePlayerJoinedMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 32; void Swap(GamePlayerJoinedMessage* other); + friend void swap(GamePlayerJoinedMessage& a, GamePlayerJoinedMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - GamePlayerJoinedMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const GamePlayerJoinedMessage& from); void MergeFrom(const GamePlayerJoinedMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); + bool has_playerid() const; + void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playerid() const; + void set_playerid(::google::protobuf::uint32 value); // required bool isGameAdmin = 3; - inline bool has_isgameadmin() const; - inline void clear_isgameadmin(); + bool has_isgameadmin() const; + void clear_isgameadmin(); static const int kIsGameAdminFieldNumber = 3; - inline bool isgameadmin() const; - inline void set_isgameadmin(bool value); + bool isgameadmin() const; + void set_isgameadmin(bool value); // @@protoc_insertion_point(class_scope:GamePlayerJoinedMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_isgameadmin(); - inline void clear_has_isgameadmin(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; bool isgameadmin_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GamePlayerJoinedMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GamePlayerLeftMessage : public ::google::protobuf::MessageLite { +class GamePlayerLeftMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GamePlayerLeftMessage) */ { public: GamePlayerLeftMessage(); virtual ~GamePlayerLeftMessage(); @@ -4509,58 +5683,97 @@ class GamePlayerLeftMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const GamePlayerLeftMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GamePlayerLeftMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GamePlayerLeftMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 33; void Swap(GamePlayerLeftMessage* other); + friend void swap(GamePlayerLeftMessage& a, GamePlayerLeftMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - GamePlayerLeftMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const GamePlayerLeftMessage& from); void MergeFrom(const GamePlayerLeftMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftReason; - static const GamePlayerLeftReason leftOnRequest = GamePlayerLeftMessage_GamePlayerLeftReason_leftOnRequest; - static const GamePlayerLeftReason leftKicked = GamePlayerLeftMessage_GamePlayerLeftReason_leftKicked; - static const GamePlayerLeftReason leftError = GamePlayerLeftMessage_GamePlayerLeftReason_leftError; + static 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); } @@ -4574,56 +5787,45 @@ class GamePlayerLeftMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); + bool has_playerid() const; + void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playerid() const; + void set_playerid(::google::protobuf::uint32 value); // required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; - inline bool has_gameplayerleftreason() const; - inline void clear_gameplayerleftreason(); + bool has_gameplayerleftreason() const; + void clear_gameplayerleftreason(); static const int kGamePlayerLeftReasonFieldNumber = 3; - inline ::GamePlayerLeftMessage_GamePlayerLeftReason gameplayerleftreason() const; - inline void set_gameplayerleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value); + ::GamePlayerLeftMessage_GamePlayerLeftReason gameplayerleftreason() const; + void set_gameplayerleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value); // @@protoc_insertion_point(class_scope:GamePlayerLeftMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_gameplayerleftreason(); - inline void clear_has_gameplayerleftreason(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; int gameplayerleftreason_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GamePlayerLeftMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameSpectatorJoinedMessage : public ::google::protobuf::MessageLite { +class GameSpectatorJoinedMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameSpectatorJoinedMessage) */ { public: GameSpectatorJoinedMessage(); virtual ~GameSpectatorJoinedMessage(); @@ -4634,97 +5836,124 @@ class GameSpectatorJoinedMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const GameSpectatorJoinedMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameSpectatorJoinedMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameSpectatorJoinedMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 34; void Swap(GameSpectatorJoinedMessage* other); + friend void swap(GameSpectatorJoinedMessage& a, GameSpectatorJoinedMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - GameSpectatorJoinedMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const GameSpectatorJoinedMessage& from); void MergeFrom(const GameSpectatorJoinedMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); + bool has_playerid() const; + void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playerid() const; + void set_playerid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:GameSpectatorJoinedMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameSpectatorJoinedMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameSpectatorLeftMessage : public ::google::protobuf::MessageLite { +class GameSpectatorLeftMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameSpectatorLeftMessage) */ { public: GameSpectatorLeftMessage(); virtual ~GameSpectatorLeftMessage(); @@ -4735,107 +5964,132 @@ class GameSpectatorLeftMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const GameSpectatorLeftMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameSpectatorLeftMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameSpectatorLeftMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 35; void Swap(GameSpectatorLeftMessage* other); + friend void swap(GameSpectatorLeftMessage& a, GameSpectatorLeftMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - GameSpectatorLeftMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const GameSpectatorLeftMessage& from); void MergeFrom(const GameSpectatorLeftMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); + bool has_playerid() const; + void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playerid() const; + void set_playerid(::google::protobuf::uint32 value); // required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; - inline bool has_gamespectatorleftreason() const; - inline void clear_gamespectatorleftreason(); + bool has_gamespectatorleftreason() const; + void clear_gamespectatorleftreason(); static const int kGameSpectatorLeftReasonFieldNumber = 3; - inline ::GamePlayerLeftMessage_GamePlayerLeftReason gamespectatorleftreason() const; - inline void set_gamespectatorleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value); + ::GamePlayerLeftMessage_GamePlayerLeftReason gamespectatorleftreason() const; + void set_gamespectatorleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value); // @@protoc_insertion_point(class_scope:GameSpectatorLeftMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_gamespectatorleftreason(); - inline void clear_has_gamespectatorleftreason(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; int gamespectatorleftreason_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameSpectatorLeftMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameAdminChangedMessage : public ::google::protobuf::MessageLite { +class GameAdminChangedMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameAdminChangedMessage) */ { public: GameAdminChangedMessage(); virtual ~GameAdminChangedMessage(); @@ -4846,97 +6100,124 @@ class GameAdminChangedMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const GameAdminChangedMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameAdminChangedMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameAdminChangedMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 36; void Swap(GameAdminChangedMessage* other); + friend void swap(GameAdminChangedMessage& a, GameAdminChangedMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - GameAdminChangedMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const GameAdminChangedMessage& from); void MergeFrom(const GameAdminChangedMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 newAdminPlayerId = 2; - inline bool has_newadminplayerid() const; - inline void clear_newadminplayerid(); + bool has_newadminplayerid() const; + void clear_newadminplayerid(); static const int kNewAdminPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 newadminplayerid() const; - inline void set_newadminplayerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 newadminplayerid() const; + void set_newadminplayerid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:GameAdminChangedMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_newadminplayerid(); - inline void clear_has_newadminplayerid(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 newadminplayerid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameAdminChangedMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class RemovedFromGameMessage : public ::google::protobuf::MessageLite { +class RemovedFromGameMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:RemovedFromGameMessage) */ { public: RemovedFromGameMessage(); virtual ~RemovedFromGameMessage(); @@ -4947,62 +6228,105 @@ class RemovedFromGameMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const RemovedFromGameMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const RemovedFromGameMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_RemovedFromGameMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 37; void Swap(RemovedFromGameMessage* other); + friend void swap(RemovedFromGameMessage& a, RemovedFromGameMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - RemovedFromGameMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const RemovedFromGameMessage& from); void MergeFrom(const RemovedFromGameMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameReason; - static const RemovedFromGameReason removedOnRequest = RemovedFromGameMessage_RemovedFromGameReason_removedOnRequest; - static const RemovedFromGameReason kickedFromGame = RemovedFromGameMessage_RemovedFromGameReason_kickedFromGame; - static const RemovedFromGameReason gameIsFull = RemovedFromGameMessage_RemovedFromGameReason_gameIsFull; - static const RemovedFromGameReason gameIsRunning = RemovedFromGameMessage_RemovedFromGameReason_gameIsRunning; - static const RemovedFromGameReason gameTimeout = RemovedFromGameMessage_RemovedFromGameReason_gameTimeout; - static const RemovedFromGameReason removedStartFailed = RemovedFromGameMessage_RemovedFromGameReason_removedStartFailed; - static const RemovedFromGameReason gameClosed = RemovedFromGameMessage_RemovedFromGameReason_gameClosed; + static 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); } @@ -5016,46 +6340,37 @@ class RemovedFromGameMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; - inline bool has_removedfromgamereason() const; - inline void clear_removedfromgamereason(); + bool has_removedfromgamereason() const; + void clear_removedfromgamereason(); static const int kRemovedFromGameReasonFieldNumber = 2; - inline ::RemovedFromGameMessage_RemovedFromGameReason removedfromgamereason() const; - inline void set_removedfromgamereason(::RemovedFromGameMessage_RemovedFromGameReason value); + ::RemovedFromGameMessage_RemovedFromGameReason removedfromgamereason() const; + void set_removedfromgamereason(::RemovedFromGameMessage_RemovedFromGameReason value); // @@protoc_insertion_point(class_scope:RemovedFromGameMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_removedfromgamereason(); - inline void clear_has_removedfromgamereason(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; int removedfromgamereason_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static RemovedFromGameMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class KickPlayerRequestMessage : public ::google::protobuf::MessageLite { +class KickPlayerRequestMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:KickPlayerRequestMessage) */ { public: KickPlayerRequestMessage(); virtual ~KickPlayerRequestMessage(); @@ -5066,97 +6381,124 @@ class KickPlayerRequestMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const KickPlayerRequestMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const KickPlayerRequestMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_KickPlayerRequestMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 38; void Swap(KickPlayerRequestMessage* other); + friend void swap(KickPlayerRequestMessage& a, KickPlayerRequestMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - KickPlayerRequestMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const KickPlayerRequestMessage& from); void MergeFrom(const KickPlayerRequestMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); + bool has_playerid() const; + void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playerid() const; + void set_playerid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:KickPlayerRequestMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static KickPlayerRequestMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class LeaveGameRequestMessage : public ::google::protobuf::MessageLite { +class LeaveGameRequestMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:LeaveGameRequestMessage) */ { public: LeaveGameRequestMessage(); virtual ~LeaveGameRequestMessage(); @@ -5167,87 +6509,113 @@ class LeaveGameRequestMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const LeaveGameRequestMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const LeaveGameRequestMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_LeaveGameRequestMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 39; void Swap(LeaveGameRequestMessage* other); + friend void swap(LeaveGameRequestMessage& a, LeaveGameRequestMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - LeaveGameRequestMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const LeaveGameRequestMessage& from); void MergeFrom(const LeaveGameRequestMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:LeaveGameRequestMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static LeaveGameRequestMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class InvitePlayerToGameMessage : public ::google::protobuf::MessageLite { +class InvitePlayerToGameMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:InvitePlayerToGameMessage) */ { public: InvitePlayerToGameMessage(); virtual ~InvitePlayerToGameMessage(); @@ -5258,97 +6626,124 @@ class InvitePlayerToGameMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const InvitePlayerToGameMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const InvitePlayerToGameMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_InvitePlayerToGameMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 40; void Swap(InvitePlayerToGameMessage* other); + friend void swap(InvitePlayerToGameMessage& a, InvitePlayerToGameMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - InvitePlayerToGameMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const InvitePlayerToGameMessage& from); void MergeFrom(const InvitePlayerToGameMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); + bool has_playerid() const; + void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playerid() const; + void set_playerid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:InvitePlayerToGameMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static InvitePlayerToGameMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class InviteNotifyMessage : public ::google::protobuf::MessageLite { +class InviteNotifyMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:InviteNotifyMessage) */ { public: InviteNotifyMessage(); virtual ~InviteNotifyMessage(); @@ -5359,107 +6754,132 @@ class InviteNotifyMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const InviteNotifyMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const InviteNotifyMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_InviteNotifyMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 41; void Swap(InviteNotifyMessage* other); + friend void swap(InviteNotifyMessage& a, InviteNotifyMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - InviteNotifyMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const InviteNotifyMessage& from); void MergeFrom(const InviteNotifyMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 playerIdWho = 2; - inline bool has_playeridwho() const; - inline void clear_playeridwho(); + bool has_playeridwho() const; + void clear_playeridwho(); static const int kPlayerIdWhoFieldNumber = 2; - inline ::google::protobuf::uint32 playeridwho() const; - inline void set_playeridwho(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playeridwho() const; + void set_playeridwho(::google::protobuf::uint32 value); // required uint32 playerIdByWhom = 3; - inline bool has_playeridbywhom() const; - inline void clear_playeridbywhom(); + bool has_playeridbywhom() const; + void clear_playeridbywhom(); static const int kPlayerIdByWhomFieldNumber = 3; - inline ::google::protobuf::uint32 playeridbywhom() const; - inline void set_playeridbywhom(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playeridbywhom() const; + void set_playeridbywhom(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:InviteNotifyMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playeridwho(); - inline void clear_has_playeridwho(); - inline void set_has_playeridbywhom(); - inline void clear_has_playeridbywhom(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playeridwho_; ::google::protobuf::uint32 playeridbywhom_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static InviteNotifyMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class RejectGameInvitationMessage : public ::google::protobuf::MessageLite { +class RejectGameInvitationMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:RejectGameInvitationMessage) */ { public: RejectGameInvitationMessage(); virtual ~RejectGameInvitationMessage(); @@ -5470,57 +6890,95 @@ class RejectGameInvitationMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const RejectGameInvitationMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const RejectGameInvitationMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_RejectGameInvitationMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 42; void Swap(RejectGameInvitationMessage* other); + friend void swap(RejectGameInvitationMessage& a, RejectGameInvitationMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - RejectGameInvitationMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const RejectGameInvitationMessage& from); void MergeFrom(const RejectGameInvitationMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef RejectGameInvitationMessage_RejectGameInvReason RejectGameInvReason; - static const RejectGameInvReason rejectReasonNo = RejectGameInvitationMessage_RejectGameInvReason_rejectReasonNo; - static const RejectGameInvReason rejectReasonBusy = RejectGameInvitationMessage_RejectGameInvReason_rejectReasonBusy; + static 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); } @@ -5534,46 +6992,37 @@ class RejectGameInvitationMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; - inline bool has_myrejectreason() const; - inline void clear_myrejectreason(); + bool has_myrejectreason() const; + void clear_myrejectreason(); static const int kMyRejectReasonFieldNumber = 2; - inline ::RejectGameInvitationMessage_RejectGameInvReason myrejectreason() const; - inline void set_myrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value); + ::RejectGameInvitationMessage_RejectGameInvReason myrejectreason() const; + void set_myrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value); // @@protoc_insertion_point(class_scope:RejectGameInvitationMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_myrejectreason(); - inline void clear_has_myrejectreason(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; int myrejectreason_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static RejectGameInvitationMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class RejectInvNotifyMessage : public ::google::protobuf::MessageLite { +class RejectInvNotifyMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:RejectInvNotifyMessage) */ { public: RejectInvNotifyMessage(); virtual ~RejectInvNotifyMessage(); @@ -5584,107 +7033,132 @@ class RejectInvNotifyMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const RejectInvNotifyMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const RejectInvNotifyMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_RejectInvNotifyMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 43; void Swap(RejectInvNotifyMessage* other); + friend void swap(RejectInvNotifyMessage& a, RejectInvNotifyMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - RejectInvNotifyMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const RejectInvNotifyMessage& from); void MergeFrom(const RejectInvNotifyMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); + bool has_playerid() const; + void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playerid() const; + void set_playerid(::google::protobuf::uint32 value); // required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; - inline bool has_playerrejectreason() const; - inline void clear_playerrejectreason(); + bool has_playerrejectreason() const; + void clear_playerrejectreason(); static const int kPlayerRejectReasonFieldNumber = 3; - inline ::RejectGameInvitationMessage_RejectGameInvReason playerrejectreason() const; - inline void set_playerrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value); + ::RejectGameInvitationMessage_RejectGameInvReason playerrejectreason() const; + void set_playerrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value); // @@protoc_insertion_point(class_scope:RejectInvNotifyMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_playerrejectreason(); - inline void clear_has_playerrejectreason(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; int playerrejectreason_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static RejectInvNotifyMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class StartEventMessage : public ::google::protobuf::MessageLite { +class StartEventMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:StartEventMessage) */ { public: StartEventMessage(); virtual ~StartEventMessage(); @@ -5695,57 +7169,95 @@ class StartEventMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const StartEventMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const StartEventMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_StartEventMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 44; void Swap(StartEventMessage* other); + friend void swap(StartEventMessage& a, StartEventMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - StartEventMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const StartEventMessage& from); void MergeFrom(const StartEventMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef StartEventMessage_StartEventType StartEventType; - static const StartEventType startEvent = StartEventMessage_StartEventType_startEvent; - static const StartEventType rejoinEvent = StartEventMessage_StartEventType_rejoinEvent; + static const StartEventType startEvent = + StartEventMessage_StartEventType_startEvent; + static const StartEventType rejoinEvent = + StartEventMessage_StartEventType_rejoinEvent; static inline bool StartEventType_IsValid(int value) { return StartEventMessage_StartEventType_IsValid(value); } @@ -5759,56 +7271,45 @@ class StartEventMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required .StartEventMessage.StartEventType startEventType = 2; - inline bool has_starteventtype() const; - inline void clear_starteventtype(); + bool has_starteventtype() const; + void clear_starteventtype(); static const int kStartEventTypeFieldNumber = 2; - inline ::StartEventMessage_StartEventType starteventtype() const; - inline void set_starteventtype(::StartEventMessage_StartEventType value); + ::StartEventMessage_StartEventType starteventtype() const; + void set_starteventtype(::StartEventMessage_StartEventType value); // optional bool fillWithComputerPlayers = 3; - inline bool has_fillwithcomputerplayers() const; - inline void clear_fillwithcomputerplayers(); + bool has_fillwithcomputerplayers() const; + void clear_fillwithcomputerplayers(); static const int kFillWithComputerPlayersFieldNumber = 3; - inline bool fillwithcomputerplayers() const; - inline void set_fillwithcomputerplayers(bool value); + bool fillwithcomputerplayers() const; + void set_fillwithcomputerplayers(bool value); // @@protoc_insertion_point(class_scope:StartEventMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_starteventtype(); - inline void clear_has_starteventtype(); - inline void set_has_fillwithcomputerplayers(); - inline void clear_has_fillwithcomputerplayers(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; int starteventtype_; bool fillwithcomputerplayers_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static StartEventMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class StartEventAckMessage : public ::google::protobuf::MessageLite { +class StartEventAckMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:StartEventAckMessage) */ { public: StartEventAckMessage(); virtual ~StartEventAckMessage(); @@ -5819,87 +7320,113 @@ class StartEventAckMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const StartEventAckMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const StartEventAckMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_StartEventAckMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 45; void Swap(StartEventAckMessage* other); + friend void swap(StartEventAckMessage& a, StartEventAckMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - StartEventAckMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const StartEventAckMessage& from); void MergeFrom(const StartEventAckMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:StartEventAckMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static StartEventAckMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameStartInitialMessage : public ::google::protobuf::MessageLite { +class GameStartInitialMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameStartInitialMessage) */ { public: GameStartInitialMessage(); virtual ~GameStartInitialMessage(); @@ -5910,111 +7437,138 @@ class GameStartInitialMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const GameStartInitialMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameStartInitialMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameStartInitialMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 46; void Swap(GameStartInitialMessage* other); + friend void swap(GameStartInitialMessage& a, GameStartInitialMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - GameStartInitialMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const GameStartInitialMessage& from); void MergeFrom(const GameStartInitialMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // 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; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 startDealerPlayerId = 2; - inline bool has_startdealerplayerid() const; - inline void clear_startdealerplayerid(); + bool has_startdealerplayerid() const; + void clear_startdealerplayerid(); static const int kStartDealerPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 startdealerplayerid() const; - inline void set_startdealerplayerid(::google::protobuf::uint32 value); - - // repeated uint32 playerSeats = 3 [packed = true]; - inline int playerseats_size() const; - inline void clear_playerseats(); - static const int kPlayerSeatsFieldNumber = 3; - inline ::google::protobuf::uint32 playerseats(int index) const; - inline void set_playerseats(int index, ::google::protobuf::uint32 value); - inline void add_playerseats(::google::protobuf::uint32 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& - playerseats() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* - mutable_playerseats(); + ::google::protobuf::uint32 startdealerplayerid() const; + void set_startdealerplayerid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:GameStartInitialMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_startdealerplayerid(); - inline void clear_has_startdealerplayerid(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::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_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 startdealerplayerid_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > playerseats_; - mutable int _playerseats_cached_byte_size_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameStartInitialMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameStartRejoinMessage_RejoinPlayerData : public ::google::protobuf::MessageLite { +class GameStartRejoinMessage_RejoinPlayerData : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameStartRejoinMessage.RejoinPlayerData) */ { public: GameStartRejoinMessage_RejoinPlayerData(); virtual ~GameStartRejoinMessage_RejoinPlayerData(); @@ -6025,97 +7579,124 @@ class GameStartRejoinMessage_RejoinPlayerData : public ::google::protobuf::Messa CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const GameStartRejoinMessage_RejoinPlayerData& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameStartRejoinMessage_RejoinPlayerData* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameStartRejoinMessage_RejoinPlayerData_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 47; void Swap(GameStartRejoinMessage_RejoinPlayerData* other); + friend void swap(GameStartRejoinMessage_RejoinPlayerData& a, GameStartRejoinMessage_RejoinPlayerData& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - GameStartRejoinMessage_RejoinPlayerData* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline GameStartRejoinMessage_RejoinPlayerData* New() const final { + return CreateMaybeMessage(nullptr); + } + + GameStartRejoinMessage_RejoinPlayerData* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) + final; void CopyFrom(const GameStartRejoinMessage_RejoinPlayerData& from); void MergeFrom(const GameStartRejoinMessage_RejoinPlayerData& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 playerId = 1; - inline bool has_playerid() const; - inline void clear_playerid(); + bool has_playerid() const; + void clear_playerid(); static const int kPlayerIdFieldNumber = 1; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playerid() const; + void set_playerid(::google::protobuf::uint32 value); // required uint32 playerMoney = 2; - inline bool has_playermoney() const; - inline void clear_playermoney(); + bool has_playermoney() const; + void clear_playermoney(); static const int kPlayerMoneyFieldNumber = 2; - inline ::google::protobuf::uint32 playermoney() const; - inline void set_playermoney(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playermoney() const; + void set_playermoney(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:GameStartRejoinMessage.RejoinPlayerData) private: - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_playermoney(); - inline void clear_has_playermoney(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 playerid_; ::google::protobuf::uint32 playermoney_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameStartRejoinMessage_RejoinPlayerData* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class GameStartRejoinMessage : public ::google::protobuf::MessageLite { +class GameStartRejoinMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:GameStartRejoinMessage) */ { public: GameStartRejoinMessage(); virtual ~GameStartRejoinMessage(); @@ -6126,51 +7707,87 @@ class GameStartRejoinMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const GameStartRejoinMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const GameStartRejoinMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_GameStartRejoinMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 48; void Swap(GameStartRejoinMessage* other); + friend void swap(GameStartRejoinMessage& a, GameStartRejoinMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - GameStartRejoinMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const GameStartRejoinMessage& from); void MergeFrom(const GameStartRejoinMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- @@ -6178,70 +7795,59 @@ class GameStartRejoinMessage : public ::google::protobuf::MessageLite { // 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; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 startDealerPlayerId = 2; - inline bool has_startdealerplayerid() const; - inline void clear_startdealerplayerid(); + bool has_startdealerplayerid() const; + void clear_startdealerplayerid(); static const int kStartDealerPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 startdealerplayerid() const; - inline void set_startdealerplayerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 startdealerplayerid() const; + void set_startdealerplayerid(::google::protobuf::uint32 value); // required uint32 handNum = 3; - inline bool has_handnum() const; - inline void clear_handnum(); + bool has_handnum() const; + void clear_handnum(); static const int kHandNumFieldNumber = 3; - inline ::google::protobuf::uint32 handnum() const; - inline void set_handnum(::google::protobuf::uint32 value); - - // repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; - inline int rejoinplayerdata_size() const; - inline void clear_rejoinplayerdata(); - static const int kRejoinPlayerDataFieldNumber = 4; - inline const ::GameStartRejoinMessage_RejoinPlayerData& rejoinplayerdata(int index) const; - inline ::GameStartRejoinMessage_RejoinPlayerData* mutable_rejoinplayerdata(int index); - inline ::GameStartRejoinMessage_RejoinPlayerData* add_rejoinplayerdata(); - inline const ::google::protobuf::RepeatedPtrField< ::GameStartRejoinMessage_RejoinPlayerData >& - rejoinplayerdata() const; - inline ::google::protobuf::RepeatedPtrField< ::GameStartRejoinMessage_RejoinPlayerData >* - mutable_rejoinplayerdata(); + ::google::protobuf::uint32 handnum() const; + void set_handnum(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:GameStartRejoinMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_startdealerplayerid(); - inline void clear_has_startdealerplayerid(); - inline void set_has_handnum(); - inline void clear_has_handnum(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::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_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 startdealerplayerid_; - ::google::protobuf::RepeatedPtrField< ::GameStartRejoinMessage_RejoinPlayerData > rejoinplayerdata_; ::google::protobuf::uint32 handnum_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static GameStartRejoinMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class HandStartMessage_PlainCards : public ::google::protobuf::MessageLite { +class HandStartMessage_PlainCards : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:HandStartMessage.PlainCards) */ { public: HandStartMessage_PlainCards(); virtual ~HandStartMessage_PlainCards(); @@ -6252,97 +7858,124 @@ class HandStartMessage_PlainCards : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const HandStartMessage_PlainCards& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const HandStartMessage_PlainCards* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_HandStartMessage_PlainCards_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 49; void Swap(HandStartMessage_PlainCards* other); + friend void swap(HandStartMessage_PlainCards& a, HandStartMessage_PlainCards& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - HandStartMessage_PlainCards* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline HandStartMessage_PlainCards* New() const final { + return CreateMaybeMessage(nullptr); + } + + HandStartMessage_PlainCards* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) + final; void CopyFrom(const HandStartMessage_PlainCards& from); void MergeFrom(const HandStartMessage_PlainCards& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 plainCard1 = 1; - inline bool has_plaincard1() const; - inline void clear_plaincard1(); + bool has_plaincard1() const; + void clear_plaincard1(); static const int kPlainCard1FieldNumber = 1; - inline ::google::protobuf::uint32 plaincard1() const; - inline void set_plaincard1(::google::protobuf::uint32 value); + ::google::protobuf::uint32 plaincard1() const; + void set_plaincard1(::google::protobuf::uint32 value); // required uint32 plainCard2 = 2; - inline bool has_plaincard2() const; - inline void clear_plaincard2(); + bool has_plaincard2() const; + void clear_plaincard2(); static const int kPlainCard2FieldNumber = 2; - inline ::google::protobuf::uint32 plaincard2() const; - inline void set_plaincard2(::google::protobuf::uint32 value); + ::google::protobuf::uint32 plaincard2() const; + void set_plaincard2(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:HandStartMessage.PlainCards) private: - inline void set_has_plaincard1(); - inline void clear_has_plaincard1(); - inline void set_has_plaincard2(); - inline void clear_has_plaincard2(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 plaincard1_; ::google::protobuf::uint32 plaincard2_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static HandStartMessage_PlainCards* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class HandStartMessage : public ::google::protobuf::MessageLite { +class HandStartMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:HandStartMessage) */ { public: HandStartMessage(); virtual ~HandStartMessage(); @@ -6353,51 +7986,87 @@ class HandStartMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const HandStartMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const HandStartMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_HandStartMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 50; void Swap(HandStartMessage* other); + friend void swap(HandStartMessage& a, HandStartMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - HandStartMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const HandStartMessage& from); void MergeFrom(const HandStartMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- @@ -6405,95 +8074,83 @@ class HandStartMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- - // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); - - // optional .HandStartMessage.PlainCards plainCards = 2; - inline bool has_plaincards() const; - inline void clear_plaincards(); - static const int kPlainCardsFieldNumber = 2; - inline const ::HandStartMessage_PlainCards& plaincards() const; - inline ::HandStartMessage_PlainCards* mutable_plaincards(); - inline ::HandStartMessage_PlainCards* release_plaincards(); - inline void set_allocated_plaincards(::HandStartMessage_PlainCards* plaincards); + // 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; - inline bool has_encryptedcards() const; - inline void clear_encryptedcards(); + bool has_encryptedcards() const; + void clear_encryptedcards(); static const int kEncryptedCardsFieldNumber = 3; - inline const ::std::string& encryptedcards() const; - inline void set_encryptedcards(const ::std::string& value); - inline void set_encryptedcards(const char* value); - inline void set_encryptedcards(const void* value, size_t size); - inline ::std::string* mutable_encryptedcards(); - inline ::std::string* release_encryptedcards(); - inline void set_allocated_encryptedcards(::std::string* encryptedcards); + 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(); + static const int kGameIdFieldNumber = 1; + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 smallBlind = 4; - inline bool has_smallblind() const; - inline void clear_smallblind(); + bool has_smallblind() const; + void clear_smallblind(); static const int kSmallBlindFieldNumber = 4; - inline ::google::protobuf::uint32 smallblind() const; - inline void set_smallblind(::google::protobuf::uint32 value); - - // repeated .NetPlayerState seatStates = 5; - inline int seatstates_size() const; - inline void clear_seatstates(); - static const int kSeatStatesFieldNumber = 5; - inline ::NetPlayerState seatstates(int index) const; - inline void set_seatstates(int index, ::NetPlayerState value); - inline void add_seatstates(::NetPlayerState value); - inline const ::google::protobuf::RepeatedField& seatstates() const; - inline ::google::protobuf::RepeatedField* mutable_seatstates(); + ::google::protobuf::uint32 smallblind() const; + void set_smallblind(::google::protobuf::uint32 value); // optional uint32 dealerPlayerId = 6; - inline bool has_dealerplayerid() const; - inline void clear_dealerplayerid(); + bool has_dealerplayerid() const; + void clear_dealerplayerid(); static const int kDealerPlayerIdFieldNumber = 6; - inline ::google::protobuf::uint32 dealerplayerid() const; - inline void set_dealerplayerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 dealerplayerid() const; + void set_dealerplayerid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:HandStartMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_plaincards(); - inline void clear_has_plaincards(); - inline void set_has_encryptedcards(); - inline void clear_has_encryptedcards(); - inline void set_has_smallblind(); - inline void clear_has_smallblind(); - inline void set_has_dealerplayerid(); - inline void clear_has_dealerplayerid(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::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_; ::HandStartMessage_PlainCards* plaincards_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 smallblind_; - ::std::string* encryptedcards_; - ::google::protobuf::RepeatedField seatstates_; ::google::protobuf::uint32 dealerplayerid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static HandStartMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class PlayersTurnMessage : public ::google::protobuf::MessageLite { +class PlayersTurnMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:PlayersTurnMessage) */ { public: PlayersTurnMessage(); virtual ~PlayersTurnMessage(); @@ -6504,107 +8161,132 @@ class PlayersTurnMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const PlayersTurnMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PlayersTurnMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_PlayersTurnMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 51; void Swap(PlayersTurnMessage* other); + friend void swap(PlayersTurnMessage& a, PlayersTurnMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - PlayersTurnMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const PlayersTurnMessage& from); void MergeFrom(const PlayersTurnMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); + bool has_playerid() const; + void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playerid() const; + void set_playerid(::google::protobuf::uint32 value); // required .NetGameState gameState = 3; - inline bool has_gamestate() const; - inline void clear_gamestate(); + bool has_gamestate() const; + void clear_gamestate(); static const int kGameStateFieldNumber = 3; - inline ::NetGameState gamestate() const; - inline void set_gamestate(::NetGameState value); + ::NetGameState gamestate() const; + void set_gamestate(::NetGameState value); // @@protoc_insertion_point(class_scope:PlayersTurnMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_gamestate(); - inline void clear_has_gamestate(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; int gamestate_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static PlayersTurnMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class MyActionRequestMessage : public ::google::protobuf::MessageLite { +class MyActionRequestMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:MyActionRequestMessage) */ { public: MyActionRequestMessage(); virtual ~MyActionRequestMessage(); @@ -6615,127 +8297,148 @@ class MyActionRequestMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const MyActionRequestMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const MyActionRequestMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_MyActionRequestMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 52; void Swap(MyActionRequestMessage* other); + friend void swap(MyActionRequestMessage& a, MyActionRequestMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - MyActionRequestMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const MyActionRequestMessage& from); void MergeFrom(const MyActionRequestMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 handNum = 2; - inline bool has_handnum() const; - inline void clear_handnum(); + bool has_handnum() const; + void clear_handnum(); static const int kHandNumFieldNumber = 2; - inline ::google::protobuf::uint32 handnum() const; - inline void set_handnum(::google::protobuf::uint32 value); + ::google::protobuf::uint32 handnum() const; + void set_handnum(::google::protobuf::uint32 value); // required .NetGameState gameState = 3; - inline bool has_gamestate() const; - inline void clear_gamestate(); + bool has_gamestate() const; + void clear_gamestate(); static const int kGameStateFieldNumber = 3; - inline ::NetGameState gamestate() const; - inline void set_gamestate(::NetGameState value); + ::NetGameState gamestate() const; + void set_gamestate(::NetGameState value); // required .NetPlayerAction myAction = 4; - inline bool has_myaction() const; - inline void clear_myaction(); + bool has_myaction() const; + void clear_myaction(); static const int kMyActionFieldNumber = 4; - inline ::NetPlayerAction myaction() const; - inline void set_myaction(::NetPlayerAction value); + ::NetPlayerAction myaction() const; + void set_myaction(::NetPlayerAction value); // required uint32 myRelativeBet = 5; - inline bool has_myrelativebet() const; - inline void clear_myrelativebet(); + bool has_myrelativebet() const; + void clear_myrelativebet(); static const int kMyRelativeBetFieldNumber = 5; - inline ::google::protobuf::uint32 myrelativebet() const; - inline void set_myrelativebet(::google::protobuf::uint32 value); + ::google::protobuf::uint32 myrelativebet() const; + void set_myrelativebet(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:MyActionRequestMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_handnum(); - inline void clear_has_handnum(); - inline void set_has_gamestate(); - inline void clear_has_gamestate(); - inline void set_has_myaction(); - inline void clear_has_myaction(); - inline void set_has_myrelativebet(); - inline void clear_has_myrelativebet(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 handnum_; int gamestate_; int myaction_; ::google::protobuf::uint32 myrelativebet_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static MyActionRequestMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class YourActionRejectedMessage : public ::google::protobuf::MessageLite { +class YourActionRejectedMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:YourActionRejectedMessage) */ { public: YourActionRejectedMessage(); virtual ~YourActionRejectedMessage(); @@ -6746,58 +8449,97 @@ class YourActionRejectedMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const YourActionRejectedMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const YourActionRejectedMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_YourActionRejectedMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 53; void Swap(YourActionRejectedMessage* other); + friend void swap(YourActionRejectedMessage& a, YourActionRejectedMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - YourActionRejectedMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const YourActionRejectedMessage& from); void MergeFrom(const YourActionRejectedMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef YourActionRejectedMessage_RejectionReason RejectionReason; - static const RejectionReason rejectedInvalidGameState = YourActionRejectedMessage_RejectionReason_rejectedInvalidGameState; - static const RejectionReason rejectedNotYourTurn = YourActionRejectedMessage_RejectionReason_rejectedNotYourTurn; - static const RejectionReason rejectedActionNotAllowed = YourActionRejectedMessage_RejectionReason_rejectedActionNotAllowed; + static 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); } @@ -6811,76 +8553,61 @@ class YourActionRejectedMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required .NetGameState gameState = 2; - inline bool has_gamestate() const; - inline void clear_gamestate(); + bool has_gamestate() const; + void clear_gamestate(); static const int kGameStateFieldNumber = 2; - inline ::NetGameState gamestate() const; - inline void set_gamestate(::NetGameState value); + ::NetGameState gamestate() const; + void set_gamestate(::NetGameState value); // required .NetPlayerAction yourAction = 3; - inline bool has_youraction() const; - inline void clear_youraction(); + bool has_youraction() const; + void clear_youraction(); static const int kYourActionFieldNumber = 3; - inline ::NetPlayerAction youraction() const; - inline void set_youraction(::NetPlayerAction value); + ::NetPlayerAction youraction() const; + void set_youraction(::NetPlayerAction value); // required uint32 yourRelativeBet = 4; - inline bool has_yourrelativebet() const; - inline void clear_yourrelativebet(); + bool has_yourrelativebet() const; + void clear_yourrelativebet(); static const int kYourRelativeBetFieldNumber = 4; - inline ::google::protobuf::uint32 yourrelativebet() const; - inline void set_yourrelativebet(::google::protobuf::uint32 value); + ::google::protobuf::uint32 yourrelativebet() const; + void set_yourrelativebet(::google::protobuf::uint32 value); // required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; - inline bool has_rejectionreason() const; - inline void clear_rejectionreason(); + bool has_rejectionreason() const; + void clear_rejectionreason(); static const int kRejectionReasonFieldNumber = 5; - inline ::YourActionRejectedMessage_RejectionReason rejectionreason() const; - inline void set_rejectionreason(::YourActionRejectedMessage_RejectionReason value); + ::YourActionRejectedMessage_RejectionReason rejectionreason() const; + void set_rejectionreason(::YourActionRejectedMessage_RejectionReason value); // @@protoc_insertion_point(class_scope:YourActionRejectedMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_gamestate(); - inline void clear_has_gamestate(); - inline void set_has_youraction(); - inline void clear_has_youraction(); - inline void set_has_yourrelativebet(); - inline void clear_has_yourrelativebet(); - inline void set_has_rejectionreason(); - inline void clear_has_rejectionreason(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; int gamestate_; int youraction_; ::google::protobuf::uint32 yourrelativebet_; int rejectionreason_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static YourActionRejectedMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class PlayersActionDoneMessage : public ::google::protobuf::MessageLite { +class PlayersActionDoneMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:PlayersActionDoneMessage) */ { public: PlayersActionDoneMessage(); virtual ~PlayersActionDoneMessage(); @@ -6891,135 +8618,158 @@ class PlayersActionDoneMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const PlayersActionDoneMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PlayersActionDoneMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_PlayersActionDoneMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 54; void Swap(PlayersActionDoneMessage* other); + friend void swap(PlayersActionDoneMessage& a, PlayersActionDoneMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - PlayersActionDoneMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const PlayersActionDoneMessage& from); void MergeFrom(const PlayersActionDoneMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); + bool has_playerid() const; + void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playerid() const; + void set_playerid(::google::protobuf::uint32 value); // required .NetGameState gameState = 3; - inline bool has_gamestate() const; - inline void clear_gamestate(); + bool has_gamestate() const; + void clear_gamestate(); static const int kGameStateFieldNumber = 3; - inline ::NetGameState gamestate() const; - inline void set_gamestate(::NetGameState value); + ::NetGameState gamestate() const; + void set_gamestate(::NetGameState value); // required .NetPlayerAction playerAction = 4; - inline bool has_playeraction() const; - inline void clear_playeraction(); + bool has_playeraction() const; + void clear_playeraction(); static const int kPlayerActionFieldNumber = 4; - inline ::NetPlayerAction playeraction() const; - inline void set_playeraction(::NetPlayerAction value); + ::NetPlayerAction playeraction() const; + void set_playeraction(::NetPlayerAction value); // required uint32 totalPlayerBet = 5; - inline bool has_totalplayerbet() const; - inline void clear_totalplayerbet(); + bool has_totalplayerbet() const; + void clear_totalplayerbet(); static const int kTotalPlayerBetFieldNumber = 5; - inline ::google::protobuf::uint32 totalplayerbet() const; - inline void set_totalplayerbet(::google::protobuf::uint32 value); + ::google::protobuf::uint32 totalplayerbet() const; + void set_totalplayerbet(::google::protobuf::uint32 value); // required uint32 playerMoney = 6; - inline bool has_playermoney() const; - inline void clear_playermoney(); + bool has_playermoney() const; + void clear_playermoney(); static const int kPlayerMoneyFieldNumber = 6; - inline ::google::protobuf::uint32 playermoney() const; - inline void set_playermoney(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playermoney() const; + void set_playermoney(::google::protobuf::uint32 value); // required uint32 highestSet = 7; - inline bool has_highestset() const; - inline void clear_highestset(); + bool has_highestset() const; + void clear_highestset(); static const int kHighestSetFieldNumber = 7; - inline ::google::protobuf::uint32 highestset() const; - inline void set_highestset(::google::protobuf::uint32 value); + ::google::protobuf::uint32 highestset() const; + void set_highestset(::google::protobuf::uint32 value); // required uint32 minimumRaise = 8; - inline bool has_minimumraise() const; - inline void clear_minimumraise(); + bool has_minimumraise() const; + void clear_minimumraise(); static const int kMinimumRaiseFieldNumber = 8; - inline ::google::protobuf::uint32 minimumraise() const; - inline void set_minimumraise(::google::protobuf::uint32 value); + ::google::protobuf::uint32 minimumraise() const; + void set_minimumraise(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:PlayersActionDoneMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_gamestate(); - inline void clear_has_gamestate(); - inline void set_has_playeraction(); - inline void clear_has_playeraction(); - inline void set_has_totalplayerbet(); - inline void clear_has_totalplayerbet(); - inline void set_has_playermoney(); - inline void clear_has_playermoney(); - inline void set_has_highestset(); - inline void clear_has_highestset(); - inline void set_has_minimumraise(); - inline void clear_has_minimumraise(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; int gamestate_; @@ -7028,20 +8778,12 @@ class PlayersActionDoneMessage : public ::google::protobuf::MessageLite { ::google::protobuf::uint32 playermoney_; ::google::protobuf::uint32 highestset_; ::google::protobuf::uint32 minimumraise_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static PlayersActionDoneMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class DealFlopCardsMessage : public ::google::protobuf::MessageLite { +class DealFlopCardsMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:DealFlopCardsMessage) */ { public: DealFlopCardsMessage(); virtual ~DealFlopCardsMessage(); @@ -7052,117 +8794,140 @@ class DealFlopCardsMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const DealFlopCardsMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const DealFlopCardsMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_DealFlopCardsMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 55; void Swap(DealFlopCardsMessage* other); + friend void swap(DealFlopCardsMessage& a, DealFlopCardsMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - DealFlopCardsMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const DealFlopCardsMessage& from); void MergeFrom(const DealFlopCardsMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 flopCard1 = 2; - inline bool has_flopcard1() const; - inline void clear_flopcard1(); + bool has_flopcard1() const; + void clear_flopcard1(); static const int kFlopCard1FieldNumber = 2; - inline ::google::protobuf::uint32 flopcard1() const; - inline void set_flopcard1(::google::protobuf::uint32 value); + ::google::protobuf::uint32 flopcard1() const; + void set_flopcard1(::google::protobuf::uint32 value); // required uint32 flopCard2 = 3; - inline bool has_flopcard2() const; - inline void clear_flopcard2(); + bool has_flopcard2() const; + void clear_flopcard2(); static const int kFlopCard2FieldNumber = 3; - inline ::google::protobuf::uint32 flopcard2() const; - inline void set_flopcard2(::google::protobuf::uint32 value); + ::google::protobuf::uint32 flopcard2() const; + void set_flopcard2(::google::protobuf::uint32 value); // required uint32 flopCard3 = 4; - inline bool has_flopcard3() const; - inline void clear_flopcard3(); + bool has_flopcard3() const; + void clear_flopcard3(); static const int kFlopCard3FieldNumber = 4; - inline ::google::protobuf::uint32 flopcard3() const; - inline void set_flopcard3(::google::protobuf::uint32 value); + ::google::protobuf::uint32 flopcard3() const; + void set_flopcard3(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:DealFlopCardsMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_flopcard1(); - inline void clear_has_flopcard1(); - inline void set_has_flopcard2(); - inline void clear_has_flopcard2(); - inline void set_has_flopcard3(); - inline void clear_has_flopcard3(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 flopcard1_; ::google::protobuf::uint32 flopcard2_; ::google::protobuf::uint32 flopcard3_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static DealFlopCardsMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class DealTurnCardMessage : public ::google::protobuf::MessageLite { +class DealTurnCardMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:DealTurnCardMessage) */ { public: DealTurnCardMessage(); virtual ~DealTurnCardMessage(); @@ -7173,97 +8938,124 @@ class DealTurnCardMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const DealTurnCardMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const DealTurnCardMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_DealTurnCardMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 56; void Swap(DealTurnCardMessage* other); + friend void swap(DealTurnCardMessage& a, DealTurnCardMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - DealTurnCardMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const DealTurnCardMessage& from); void MergeFrom(const DealTurnCardMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 turnCard = 2; - inline bool has_turncard() const; - inline void clear_turncard(); + bool has_turncard() const; + void clear_turncard(); static const int kTurnCardFieldNumber = 2; - inline ::google::protobuf::uint32 turncard() const; - inline void set_turncard(::google::protobuf::uint32 value); + ::google::protobuf::uint32 turncard() const; + void set_turncard(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:DealTurnCardMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_turncard(); - inline void clear_has_turncard(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 turncard_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static DealTurnCardMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class DealRiverCardMessage : public ::google::protobuf::MessageLite { +class DealRiverCardMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:DealRiverCardMessage) */ { public: DealRiverCardMessage(); virtual ~DealRiverCardMessage(); @@ -7274,97 +9066,124 @@ class DealRiverCardMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const DealRiverCardMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const DealRiverCardMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_DealRiverCardMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 57; void Swap(DealRiverCardMessage* other); + friend void swap(DealRiverCardMessage& a, DealRiverCardMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - DealRiverCardMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const DealRiverCardMessage& from); void MergeFrom(const DealRiverCardMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 riverCard = 2; - inline bool has_rivercard() const; - inline void clear_rivercard(); + bool has_rivercard() const; + void clear_rivercard(); static const int kRiverCardFieldNumber = 2; - inline ::google::protobuf::uint32 rivercard() const; - inline void set_rivercard(::google::protobuf::uint32 value); + ::google::protobuf::uint32 rivercard() const; + void set_rivercard(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:DealRiverCardMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_rivercard(); - inline void clear_has_rivercard(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 rivercard_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static DealRiverCardMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AllInShowCardsMessage_PlayerAllIn : public ::google::protobuf::MessageLite { +class AllInShowCardsMessage_PlayerAllIn : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AllInShowCardsMessage.PlayerAllIn) */ { public: AllInShowCardsMessage_PlayerAllIn(); virtual ~AllInShowCardsMessage_PlayerAllIn(); @@ -7375,107 +9194,132 @@ class AllInShowCardsMessage_PlayerAllIn : public ::google::protobuf::MessageLite CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const AllInShowCardsMessage_PlayerAllIn& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AllInShowCardsMessage_PlayerAllIn* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AllInShowCardsMessage_PlayerAllIn_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 58; void Swap(AllInShowCardsMessage_PlayerAllIn* other); + friend void swap(AllInShowCardsMessage_PlayerAllIn& a, AllInShowCardsMessage_PlayerAllIn& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - AllInShowCardsMessage_PlayerAllIn* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline AllInShowCardsMessage_PlayerAllIn* New() const final { + return CreateMaybeMessage(nullptr); + } + + AllInShowCardsMessage_PlayerAllIn* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) + final; void CopyFrom(const AllInShowCardsMessage_PlayerAllIn& from); void MergeFrom(const AllInShowCardsMessage_PlayerAllIn& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 playerId = 1; - inline bool has_playerid() const; - inline void clear_playerid(); + bool has_playerid() const; + void clear_playerid(); static const int kPlayerIdFieldNumber = 1; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playerid() const; + void set_playerid(::google::protobuf::uint32 value); // required uint32 allInCard1 = 2; - inline bool has_allincard1() const; - inline void clear_allincard1(); + bool has_allincard1() const; + void clear_allincard1(); static const int kAllInCard1FieldNumber = 2; - inline ::google::protobuf::uint32 allincard1() const; - inline void set_allincard1(::google::protobuf::uint32 value); + ::google::protobuf::uint32 allincard1() const; + void set_allincard1(::google::protobuf::uint32 value); // required uint32 allInCard2 = 3; - inline bool has_allincard2() const; - inline void clear_allincard2(); + bool has_allincard2() const; + void clear_allincard2(); static const int kAllInCard2FieldNumber = 3; - inline ::google::protobuf::uint32 allincard2() const; - inline void set_allincard2(::google::protobuf::uint32 value); + ::google::protobuf::uint32 allincard2() const; + void set_allincard2(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:AllInShowCardsMessage.PlayerAllIn) private: - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_allincard1(); - inline void clear_has_allincard1(); - inline void set_has_allincard2(); - inline void clear_has_allincard2(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 playerid_; ::google::protobuf::uint32 allincard1_; ::google::protobuf::uint32 allincard2_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AllInShowCardsMessage_PlayerAllIn* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AllInShowCardsMessage : public ::google::protobuf::MessageLite { +class AllInShowCardsMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AllInShowCardsMessage) */ { public: AllInShowCardsMessage(); virtual ~AllInShowCardsMessage(); @@ -7486,51 +9330,87 @@ class AllInShowCardsMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const AllInShowCardsMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AllInShowCardsMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AllInShowCardsMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 59; void Swap(AllInShowCardsMessage* other); + friend void swap(AllInShowCardsMessage& a, AllInShowCardsMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - AllInShowCardsMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const AllInShowCardsMessage& from); void MergeFrom(const AllInShowCardsMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- @@ -7538,50 +9418,40 @@ class AllInShowCardsMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- - // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); - // repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; - inline int playersallin_size() const; - inline void clear_playersallin(); + int playersallin_size() const; + 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 >* + ::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(); + static const int kGameIdFieldNumber = 1; + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:AllInShowCardsMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedPtrField< ::AllInShowCardsMessage_PlayerAllIn > playersallin_; ::google::protobuf::uint32 gameid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AllInShowCardsMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class EndOfHandShowCardsMessage : public ::google::protobuf::MessageLite { +class EndOfHandShowCardsMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:EndOfHandShowCardsMessage) */ { public: EndOfHandShowCardsMessage(); virtual ~EndOfHandShowCardsMessage(); @@ -7592,100 +9462,126 @@ class EndOfHandShowCardsMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const EndOfHandShowCardsMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const EndOfHandShowCardsMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_EndOfHandShowCardsMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 60; void Swap(EndOfHandShowCardsMessage* other); + friend void swap(EndOfHandShowCardsMessage& a, EndOfHandShowCardsMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - EndOfHandShowCardsMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const EndOfHandShowCardsMessage& from); void MergeFrom(const EndOfHandShowCardsMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); - static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); - // repeated .PlayerResult playerResults = 2; - inline int playerresults_size() const; - inline void clear_playerresults(); + int playerresults_size() const; + 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 >* + ::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(); + static const int kGameIdFieldNumber = 1; + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:EndOfHandShowCardsMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedPtrField< ::PlayerResult > playerresults_; ::google::protobuf::uint32 gameid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static EndOfHandShowCardsMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class EndOfHandHideCardsMessage : public ::google::protobuf::MessageLite { +class EndOfHandHideCardsMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:EndOfHandHideCardsMessage) */ { public: EndOfHandHideCardsMessage(); virtual ~EndOfHandHideCardsMessage(); @@ -7696,117 +9592,140 @@ class EndOfHandHideCardsMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const EndOfHandHideCardsMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const EndOfHandHideCardsMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_EndOfHandHideCardsMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 61; void Swap(EndOfHandHideCardsMessage* other); + friend void swap(EndOfHandHideCardsMessage& a, EndOfHandHideCardsMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - EndOfHandHideCardsMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const EndOfHandHideCardsMessage& from); void MergeFrom(const EndOfHandHideCardsMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); + bool has_playerid() const; + void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playerid() const; + void set_playerid(::google::protobuf::uint32 value); // required uint32 moneyWon = 3; - inline bool has_moneywon() const; - inline void clear_moneywon(); + bool has_moneywon() const; + void clear_moneywon(); static const int kMoneyWonFieldNumber = 3; - inline ::google::protobuf::uint32 moneywon() const; - inline void set_moneywon(::google::protobuf::uint32 value); + ::google::protobuf::uint32 moneywon() const; + void set_moneywon(::google::protobuf::uint32 value); // required uint32 playerMoney = 4; - inline bool has_playermoney() const; - inline void clear_playermoney(); + bool has_playermoney() const; + void clear_playermoney(); static const int kPlayerMoneyFieldNumber = 4; - inline ::google::protobuf::uint32 playermoney() const; - inline void set_playermoney(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playermoney() const; + void set_playermoney(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:EndOfHandHideCardsMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_moneywon(); - inline void clear_has_moneywon(); - inline void set_has_playermoney(); - inline void clear_has_playermoney(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; ::google::protobuf::uint32 moneywon_; ::google::protobuf::uint32 playermoney_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static EndOfHandHideCardsMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class ShowMyCardsRequestMessage : public ::google::protobuf::MessageLite { +class ShowMyCardsRequestMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:ShowMyCardsRequestMessage) */ { public: ShowMyCardsRequestMessage(); virtual ~ShowMyCardsRequestMessage(); @@ -7817,51 +9736,87 @@ class ShowMyCardsRequestMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const ShowMyCardsRequestMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ShowMyCardsRequestMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_ShowMyCardsRequestMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 62; void Swap(ShowMyCardsRequestMessage* other); + friend void swap(ShowMyCardsRequestMessage& a, ShowMyCardsRequestMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - ShowMyCardsRequestMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const ShowMyCardsRequestMessage& from); void MergeFrom(const ShowMyCardsRequestMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- @@ -7869,25 +9824,17 @@ class ShowMyCardsRequestMessage : public ::google::protobuf::MessageLite { // @@protoc_insertion_point(class_scope:ShowMyCardsRequestMessage) private: + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static ShowMyCardsRequestMessage* default_instance_; + ::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; }; // ------------------------------------------------------------------- -class AfterHandShowCardsMessage : public ::google::protobuf::MessageLite { +class AfterHandShowCardsMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AfterHandShowCardsMessage) */ { public: AfterHandShowCardsMessage(); virtual ~AfterHandShowCardsMessage(); @@ -7898,89 +9845,115 @@ class AfterHandShowCardsMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const AfterHandShowCardsMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AfterHandShowCardsMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AfterHandShowCardsMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 63; void Swap(AfterHandShowCardsMessage* other); + friend void swap(AfterHandShowCardsMessage& a, AfterHandShowCardsMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - AfterHandShowCardsMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const AfterHandShowCardsMessage& from); void MergeFrom(const AfterHandShowCardsMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required .PlayerResult playerResult = 1; - inline bool has_playerresult() const; - inline void clear_playerresult(); + bool has_playerresult() const; + void clear_playerresult(); static const int kPlayerResultFieldNumber = 1; - inline const ::PlayerResult& playerresult() const; - inline ::PlayerResult* mutable_playerresult(); - inline ::PlayerResult* release_playerresult(); - inline void set_allocated_playerresult(::PlayerResult* playerresult); + const ::PlayerResult& playerresult() const; + ::PlayerResult* release_playerresult(); + ::PlayerResult* mutable_playerresult(); + void set_allocated_playerresult(::PlayerResult* playerresult); // @@protoc_insertion_point(class_scope:AfterHandShowCardsMessage) private: - inline void set_has_playerresult(); - inline void clear_has_playerresult(); + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::PlayerResult* playerresult_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AfterHandShowCardsMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class EndOfGameMessage : public ::google::protobuf::MessageLite { +class EndOfGameMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:EndOfGameMessage) */ { public: EndOfGameMessage(); virtual ~EndOfGameMessage(); @@ -7991,97 +9964,124 @@ class EndOfGameMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const EndOfGameMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const EndOfGameMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_EndOfGameMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 64; void Swap(EndOfGameMessage* other); + friend void swap(EndOfGameMessage& a, EndOfGameMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - EndOfGameMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const EndOfGameMessage& from); void MergeFrom(const EndOfGameMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 winnerPlayerId = 2; - inline bool has_winnerplayerid() const; - inline void clear_winnerplayerid(); + bool has_winnerplayerid() const; + void clear_winnerplayerid(); static const int kWinnerPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 winnerplayerid() const; - inline void set_winnerplayerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 winnerplayerid() const; + void set_winnerplayerid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:EndOfGameMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_winnerplayerid(); - inline void clear_has_winnerplayerid(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 winnerplayerid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static EndOfGameMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class PlayerIdChangedMessage : public ::google::protobuf::MessageLite { +class PlayerIdChangedMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:PlayerIdChangedMessage) */ { public: PlayerIdChangedMessage(); virtual ~PlayerIdChangedMessage(); @@ -8092,97 +10092,124 @@ class PlayerIdChangedMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const PlayerIdChangedMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PlayerIdChangedMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_PlayerIdChangedMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 65; void Swap(PlayerIdChangedMessage* other); + friend void swap(PlayerIdChangedMessage& a, PlayerIdChangedMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - PlayerIdChangedMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const PlayerIdChangedMessage& from); void MergeFrom(const PlayerIdChangedMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 oldPlayerId = 1; - inline bool has_oldplayerid() const; - inline void clear_oldplayerid(); + bool has_oldplayerid() const; + void clear_oldplayerid(); static const int kOldPlayerIdFieldNumber = 1; - inline ::google::protobuf::uint32 oldplayerid() const; - inline void set_oldplayerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 oldplayerid() const; + void set_oldplayerid(::google::protobuf::uint32 value); // required uint32 newPlayerId = 2; - inline bool has_newplayerid() const; - inline void clear_newplayerid(); + bool has_newplayerid() const; + void clear_newplayerid(); static const int kNewPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 newplayerid() const; - inline void set_newplayerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 newplayerid() const; + void set_newplayerid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:PlayerIdChangedMessage) private: - inline void set_has_oldplayerid(); - inline void clear_has_oldplayerid(); - inline void set_has_newplayerid(); - inline void clear_has_newplayerid(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 oldplayerid_; ::google::protobuf::uint32 newplayerid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static PlayerIdChangedMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AskKickPlayerMessage : public ::google::protobuf::MessageLite { +class AskKickPlayerMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AskKickPlayerMessage) */ { public: AskKickPlayerMessage(); virtual ~AskKickPlayerMessage(); @@ -8193,97 +10220,124 @@ class AskKickPlayerMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const AskKickPlayerMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AskKickPlayerMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AskKickPlayerMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 66; void Swap(AskKickPlayerMessage* other); + friend void swap(AskKickPlayerMessage& a, AskKickPlayerMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - AskKickPlayerMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const AskKickPlayerMessage& from); void MergeFrom(const AskKickPlayerMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); + bool has_playerid() const; + void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playerid() const; + void set_playerid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:AskKickPlayerMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AskKickPlayerMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AskKickDeniedMessage : public ::google::protobuf::MessageLite { +class AskKickDeniedMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AskKickDeniedMessage) */ { public: AskKickDeniedMessage(); virtual ~AskKickDeniedMessage(); @@ -8294,60 +10348,101 @@ class AskKickDeniedMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const AskKickDeniedMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AskKickDeniedMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AskKickDeniedMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 67; void Swap(AskKickDeniedMessage* other); + friend void swap(AskKickDeniedMessage& a, AskKickDeniedMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - AskKickDeniedMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const AskKickDeniedMessage& from); void MergeFrom(const AskKickDeniedMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef AskKickDeniedMessage_KickDeniedReason KickDeniedReason; - static const KickDeniedReason kickDeniedInvalidGameState = AskKickDeniedMessage_KickDeniedReason_kickDeniedInvalidGameState; - static const KickDeniedReason kickDeniedNotPossible = AskKickDeniedMessage_KickDeniedReason_kickDeniedNotPossible; - static const KickDeniedReason kickDeniedTryAgainLater = AskKickDeniedMessage_KickDeniedReason_kickDeniedTryAgainLater; - static const KickDeniedReason kickDeniedAlreadyInProgress = AskKickDeniedMessage_KickDeniedReason_kickDeniedAlreadyInProgress; - static const KickDeniedReason kickDeniedInvalidPlayerId = AskKickDeniedMessage_KickDeniedReason_kickDeniedInvalidPlayerId; + static 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); } @@ -8361,56 +10456,45 @@ class AskKickDeniedMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); + bool has_playerid() const; + void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playerid() const; + void set_playerid(::google::protobuf::uint32 value); // required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; - inline bool has_kickdeniedreason() const; - inline void clear_kickdeniedreason(); + bool has_kickdeniedreason() const; + void clear_kickdeniedreason(); static const int kKickDeniedReasonFieldNumber = 3; - inline ::AskKickDeniedMessage_KickDeniedReason kickdeniedreason() const; - inline void set_kickdeniedreason(::AskKickDeniedMessage_KickDeniedReason value); + ::AskKickDeniedMessage_KickDeniedReason kickdeniedreason() const; + void set_kickdeniedreason(::AskKickDeniedMessage_KickDeniedReason value); // @@protoc_insertion_point(class_scope:AskKickDeniedMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_kickdeniedreason(); - inline void clear_has_kickdeniedreason(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; int kickdeniedreason_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AskKickDeniedMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class StartKickPetitionMessage : public ::google::protobuf::MessageLite { +class StartKickPetitionMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:StartKickPetitionMessage) */ { public: StartKickPetitionMessage(); virtual ~StartKickPetitionMessage(); @@ -8421,137 +10505,156 @@ class StartKickPetitionMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const StartKickPetitionMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const StartKickPetitionMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_StartKickPetitionMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 68; void Swap(StartKickPetitionMessage* other); + friend void swap(StartKickPetitionMessage& a, StartKickPetitionMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - StartKickPetitionMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const StartKickPetitionMessage& from); void MergeFrom(const StartKickPetitionMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 petitionId = 2; - inline bool has_petitionid() const; - inline void clear_petitionid(); + bool has_petitionid() const; + void clear_petitionid(); static const int kPetitionIdFieldNumber = 2; - inline ::google::protobuf::uint32 petitionid() const; - inline void set_petitionid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 petitionid() const; + void set_petitionid(::google::protobuf::uint32 value); // required uint32 proposingPlayerId = 3; - inline bool has_proposingplayerid() const; - inline void clear_proposingplayerid(); + bool has_proposingplayerid() const; + void clear_proposingplayerid(); static const int kProposingPlayerIdFieldNumber = 3; - inline ::google::protobuf::uint32 proposingplayerid() const; - inline void set_proposingplayerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 proposingplayerid() const; + void set_proposingplayerid(::google::protobuf::uint32 value); // required uint32 kickPlayerId = 4; - inline bool has_kickplayerid() const; - inline void clear_kickplayerid(); + bool has_kickplayerid() const; + void clear_kickplayerid(); static const int kKickPlayerIdFieldNumber = 4; - inline ::google::protobuf::uint32 kickplayerid() const; - inline void set_kickplayerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 kickplayerid() const; + void set_kickplayerid(::google::protobuf::uint32 value); // required uint32 kickTimeoutSec = 5; - inline bool has_kicktimeoutsec() const; - inline void clear_kicktimeoutsec(); + bool has_kicktimeoutsec() const; + void clear_kicktimeoutsec(); static const int kKickTimeoutSecFieldNumber = 5; - inline ::google::protobuf::uint32 kicktimeoutsec() const; - inline void set_kicktimeoutsec(::google::protobuf::uint32 value); + ::google::protobuf::uint32 kicktimeoutsec() const; + void set_kicktimeoutsec(::google::protobuf::uint32 value); // required uint32 numVotesNeededToKick = 6; - inline bool has_numvotesneededtokick() const; - inline void clear_numvotesneededtokick(); + bool has_numvotesneededtokick() const; + void clear_numvotesneededtokick(); static const int kNumVotesNeededToKickFieldNumber = 6; - inline ::google::protobuf::uint32 numvotesneededtokick() const; - inline void set_numvotesneededtokick(::google::protobuf::uint32 value); + ::google::protobuf::uint32 numvotesneededtokick() const; + void set_numvotesneededtokick(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:StartKickPetitionMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_petitionid(); - inline void clear_has_petitionid(); - inline void set_has_proposingplayerid(); - inline void clear_has_proposingplayerid(); - inline void set_has_kickplayerid(); - inline void clear_has_kickplayerid(); - inline void set_has_kicktimeoutsec(); - inline void clear_has_kicktimeoutsec(); - inline void set_has_numvotesneededtokick(); - inline void clear_has_numvotesneededtokick(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 petitionid_; ::google::protobuf::uint32 proposingplayerid_; ::google::protobuf::uint32 kickplayerid_; ::google::protobuf::uint32 kicktimeoutsec_; ::google::protobuf::uint32 numvotesneededtokick_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static StartKickPetitionMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class VoteKickRequestMessage : public ::google::protobuf::MessageLite { +class VoteKickRequestMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:VoteKickRequestMessage) */ { public: VoteKickRequestMessage(); virtual ~VoteKickRequestMessage(); @@ -8562,107 +10665,132 @@ class VoteKickRequestMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const VoteKickRequestMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const VoteKickRequestMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_VoteKickRequestMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 69; void Swap(VoteKickRequestMessage* other); + friend void swap(VoteKickRequestMessage& a, VoteKickRequestMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - VoteKickRequestMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const VoteKickRequestMessage& from); void MergeFrom(const VoteKickRequestMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 petitionId = 2; - inline bool has_petitionid() const; - inline void clear_petitionid(); + bool has_petitionid() const; + void clear_petitionid(); static const int kPetitionIdFieldNumber = 2; - inline ::google::protobuf::uint32 petitionid() const; - inline void set_petitionid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 petitionid() const; + void set_petitionid(::google::protobuf::uint32 value); // required bool voteKick = 3; - inline bool has_votekick() const; - inline void clear_votekick(); + bool has_votekick() const; + void clear_votekick(); static const int kVoteKickFieldNumber = 3; - inline bool votekick() const; - inline void set_votekick(bool value); + bool votekick() const; + void set_votekick(bool value); // @@protoc_insertion_point(class_scope:VoteKickRequestMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_petitionid(); - inline void clear_has_petitionid(); - inline void set_has_votekick(); - inline void clear_has_votekick(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 petitionid_; bool votekick_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static VoteKickRequestMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class VoteKickReplyMessage : public ::google::protobuf::MessageLite { +class VoteKickReplyMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:VoteKickReplyMessage) */ { public: VoteKickReplyMessage(); virtual ~VoteKickReplyMessage(); @@ -8673,58 +10801,97 @@ class VoteKickReplyMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const VoteKickReplyMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const VoteKickReplyMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_VoteKickReplyMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 70; void Swap(VoteKickReplyMessage* other); + friend void swap(VoteKickReplyMessage& a, VoteKickReplyMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - VoteKickReplyMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const VoteKickReplyMessage& from); void MergeFrom(const VoteKickReplyMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef VoteKickReplyMessage_VoteKickReplyType VoteKickReplyType; - static const VoteKickReplyType voteKickAck = VoteKickReplyMessage_VoteKickReplyType_voteKickAck; - static const VoteKickReplyType voteKickDeniedInvalid = VoteKickReplyMessage_VoteKickReplyType_voteKickDeniedInvalid; - static const VoteKickReplyType voteKickDeniedAlreadyVoted = VoteKickReplyMessage_VoteKickReplyType_voteKickDeniedAlreadyVoted; + static 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); } @@ -8738,56 +10905,45 @@ class VoteKickReplyMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 petitionId = 2; - inline bool has_petitionid() const; - inline void clear_petitionid(); + bool has_petitionid() const; + void clear_petitionid(); static const int kPetitionIdFieldNumber = 2; - inline ::google::protobuf::uint32 petitionid() const; - inline void set_petitionid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 petitionid() const; + void set_petitionid(::google::protobuf::uint32 value); // required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; - inline bool has_votekickreplytype() const; - inline void clear_votekickreplytype(); + bool has_votekickreplytype() const; + void clear_votekickreplytype(); static const int kVoteKickReplyTypeFieldNumber = 3; - inline ::VoteKickReplyMessage_VoteKickReplyType votekickreplytype() const; - inline void set_votekickreplytype(::VoteKickReplyMessage_VoteKickReplyType value); + ::VoteKickReplyMessage_VoteKickReplyType votekickreplytype() const; + void set_votekickreplytype(::VoteKickReplyMessage_VoteKickReplyType value); // @@protoc_insertion_point(class_scope:VoteKickReplyMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_petitionid(); - inline void clear_has_petitionid(); - inline void set_has_votekickreplytype(); - inline void clear_has_votekickreplytype(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 petitionid_; int votekickreplytype_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static VoteKickReplyMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class KickPetitionUpdateMessage : public ::google::protobuf::MessageLite { +class KickPetitionUpdateMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:KickPetitionUpdateMessage) */ { public: KickPetitionUpdateMessage(); virtual ~KickPetitionUpdateMessage(); @@ -8798,127 +10954,148 @@ class KickPetitionUpdateMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const KickPetitionUpdateMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const KickPetitionUpdateMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_KickPetitionUpdateMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 71; void Swap(KickPetitionUpdateMessage* other); + friend void swap(KickPetitionUpdateMessage& a, KickPetitionUpdateMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - KickPetitionUpdateMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const KickPetitionUpdateMessage& from); void MergeFrom(const KickPetitionUpdateMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 petitionId = 2; - inline bool has_petitionid() const; - inline void clear_petitionid(); + bool has_petitionid() const; + void clear_petitionid(); static const int kPetitionIdFieldNumber = 2; - inline ::google::protobuf::uint32 petitionid() const; - inline void set_petitionid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 petitionid() const; + void set_petitionid(::google::protobuf::uint32 value); // required uint32 numVotesAgainstKicking = 3; - inline bool has_numvotesagainstkicking() const; - inline void clear_numvotesagainstkicking(); + bool has_numvotesagainstkicking() const; + void clear_numvotesagainstkicking(); static const int kNumVotesAgainstKickingFieldNumber = 3; - inline ::google::protobuf::uint32 numvotesagainstkicking() const; - inline void set_numvotesagainstkicking(::google::protobuf::uint32 value); + ::google::protobuf::uint32 numvotesagainstkicking() const; + void set_numvotesagainstkicking(::google::protobuf::uint32 value); // required uint32 numVotesInFavourOfKicking = 4; - inline bool has_numvotesinfavourofkicking() const; - inline void clear_numvotesinfavourofkicking(); + bool has_numvotesinfavourofkicking() const; + void clear_numvotesinfavourofkicking(); static const int kNumVotesInFavourOfKickingFieldNumber = 4; - inline ::google::protobuf::uint32 numvotesinfavourofkicking() const; - inline void set_numvotesinfavourofkicking(::google::protobuf::uint32 value); + ::google::protobuf::uint32 numvotesinfavourofkicking() const; + void set_numvotesinfavourofkicking(::google::protobuf::uint32 value); // required uint32 numVotesNeededToKick = 5; - inline bool has_numvotesneededtokick() const; - inline void clear_numvotesneededtokick(); + bool has_numvotesneededtokick() const; + void clear_numvotesneededtokick(); static const int kNumVotesNeededToKickFieldNumber = 5; - inline ::google::protobuf::uint32 numvotesneededtokick() const; - inline void set_numvotesneededtokick(::google::protobuf::uint32 value); + ::google::protobuf::uint32 numvotesneededtokick() const; + void set_numvotesneededtokick(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:KickPetitionUpdateMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_petitionid(); - inline void clear_has_petitionid(); - inline void set_has_numvotesagainstkicking(); - inline void clear_has_numvotesagainstkicking(); - inline void set_has_numvotesinfavourofkicking(); - inline void clear_has_numvotesinfavourofkicking(); - inline void set_has_numvotesneededtokick(); - inline void clear_has_numvotesneededtokick(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 petitionid_; ::google::protobuf::uint32 numvotesagainstkicking_; ::google::protobuf::uint32 numvotesinfavourofkicking_; ::google::protobuf::uint32 numvotesneededtokick_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static KickPetitionUpdateMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class EndKickPetitionMessage : public ::google::protobuf::MessageLite { +class EndKickPetitionMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:EndKickPetitionMessage) */ { public: EndKickPetitionMessage(); virtual ~EndKickPetitionMessage(); @@ -8929,59 +11106,99 @@ class EndKickPetitionMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const EndKickPetitionMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const EndKickPetitionMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_EndKickPetitionMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 72; void Swap(EndKickPetitionMessage* other); + friend void swap(EndKickPetitionMessage& a, EndKickPetitionMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - EndKickPetitionMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const EndKickPetitionMessage& from); void MergeFrom(const EndKickPetitionMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef EndKickPetitionMessage_PetitionEndReason PetitionEndReason; - static const PetitionEndReason petitionEndEnoughVotes = EndKickPetitionMessage_PetitionEndReason_petitionEndEnoughVotes; - static const PetitionEndReason petitionEndTooFewPlayers = EndKickPetitionMessage_PetitionEndReason_petitionEndTooFewPlayers; - static const PetitionEndReason petitionEndPlayerLeft = EndKickPetitionMessage_PetitionEndReason_petitionEndPlayerLeft; - static const PetitionEndReason petitionEndTimeout = EndKickPetitionMessage_PetitionEndReason_petitionEndTimeout; + static 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); } @@ -8995,86 +11212,69 @@ class EndKickPetitionMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- // required uint32 gameId = 1; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // required uint32 petitionId = 2; - inline bool has_petitionid() const; - inline void clear_petitionid(); + bool has_petitionid() const; + void clear_petitionid(); static const int kPetitionIdFieldNumber = 2; - inline ::google::protobuf::uint32 petitionid() const; - inline void set_petitionid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 petitionid() const; + void set_petitionid(::google::protobuf::uint32 value); // required uint32 numVotesAgainstKicking = 3; - inline bool has_numvotesagainstkicking() const; - inline void clear_numvotesagainstkicking(); + bool has_numvotesagainstkicking() const; + void clear_numvotesagainstkicking(); static const int kNumVotesAgainstKickingFieldNumber = 3; - inline ::google::protobuf::uint32 numvotesagainstkicking() const; - inline void set_numvotesagainstkicking(::google::protobuf::uint32 value); + ::google::protobuf::uint32 numvotesagainstkicking() const; + void set_numvotesagainstkicking(::google::protobuf::uint32 value); // required uint32 numVotesInFavourOfKicking = 4; - inline bool has_numvotesinfavourofkicking() const; - inline void clear_numvotesinfavourofkicking(); + bool has_numvotesinfavourofkicking() const; + void clear_numvotesinfavourofkicking(); static const int kNumVotesInFavourOfKickingFieldNumber = 4; - inline ::google::protobuf::uint32 numvotesinfavourofkicking() const; - inline void set_numvotesinfavourofkicking(::google::protobuf::uint32 value); + ::google::protobuf::uint32 numvotesinfavourofkicking() const; + void set_numvotesinfavourofkicking(::google::protobuf::uint32 value); // required uint32 resultPlayerKicked = 5; - inline bool has_resultplayerkicked() const; - inline void clear_resultplayerkicked(); + bool has_resultplayerkicked() const; + void clear_resultplayerkicked(); static const int kResultPlayerKickedFieldNumber = 5; - inline ::google::protobuf::uint32 resultplayerkicked() const; - inline void set_resultplayerkicked(::google::protobuf::uint32 value); + ::google::protobuf::uint32 resultplayerkicked() const; + void set_resultplayerkicked(::google::protobuf::uint32 value); // required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; - inline bool has_petitionendreason() const; - inline void clear_petitionendreason(); + bool has_petitionendreason() const; + void clear_petitionendreason(); static const int kPetitionEndReasonFieldNumber = 6; - inline ::EndKickPetitionMessage_PetitionEndReason petitionendreason() const; - inline void set_petitionendreason(::EndKickPetitionMessage_PetitionEndReason value); + ::EndKickPetitionMessage_PetitionEndReason petitionendreason() const; + void set_petitionendreason(::EndKickPetitionMessage_PetitionEndReason value); // @@protoc_insertion_point(class_scope:EndKickPetitionMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_petitionid(); - inline void clear_has_petitionid(); - inline void set_has_numvotesagainstkicking(); - inline void clear_has_numvotesagainstkicking(); - inline void set_has_numvotesinfavourofkicking(); - inline void clear_has_numvotesinfavourofkicking(); - inline void set_has_resultplayerkicked(); - inline void clear_has_resultplayerkicked(); - inline void set_has_petitionendreason(); - inline void clear_has_petitionendreason(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 petitionid_; ::google::protobuf::uint32 numvotesagainstkicking_; ::google::protobuf::uint32 numvotesinfavourofkicking_; ::google::protobuf::uint32 resultplayerkicked_; int petitionendreason_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static EndKickPetitionMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class StatisticsMessage_StatisticsData : public ::google::protobuf::MessageLite { +class StatisticsMessage_StatisticsData : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:StatisticsMessage.StatisticsData) */ { public: StatisticsMessage_StatisticsData(); virtual ~StatisticsMessage_StatisticsData(); @@ -9085,56 +11285,93 @@ class StatisticsMessage_StatisticsData : public ::google::protobuf::MessageLite CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const StatisticsMessage_StatisticsData& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const StatisticsMessage_StatisticsData* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_StatisticsMessage_StatisticsData_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 73; void Swap(StatisticsMessage_StatisticsData* other); + friend void swap(StatisticsMessage_StatisticsData& a, StatisticsMessage_StatisticsData& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - StatisticsMessage_StatisticsData* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + inline StatisticsMessage_StatisticsData* New() const final { + return CreateMaybeMessage(nullptr); + } + + StatisticsMessage_StatisticsData* New(::google::protobuf::Arena* arena) const final { + return CreateMaybeMessage(arena); + } + void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) + final; void CopyFrom(const StatisticsMessage_StatisticsData& from); void MergeFrom(const StatisticsMessage_StatisticsData& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // 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); } @@ -9147,47 +11384,38 @@ class StatisticsMessage_StatisticsData : public ::google::protobuf::MessageLite // accessors ------------------------------------------------------- - // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; - inline bool has_statisticstype() const; - inline void clear_statisticstype(); - static const int kStatisticsTypeFieldNumber = 1; - inline ::StatisticsMessage_StatisticsData_StatisticsType statisticstype() const; - inline void set_statisticstype(::StatisticsMessage_StatisticsData_StatisticsType value); - // required uint32 statisticsValue = 2; - inline bool has_statisticsvalue() const; - inline void clear_statisticsvalue(); + bool has_statisticsvalue() const; + void clear_statisticsvalue(); static const int kStatisticsValueFieldNumber = 2; - inline ::google::protobuf::uint32 statisticsvalue() const; - inline void set_statisticsvalue(::google::protobuf::uint32 value); + ::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(); + static const int kStatisticsTypeFieldNumber = 1; + ::StatisticsMessage_StatisticsData_StatisticsType statisticstype() const; + void set_statisticstype(::StatisticsMessage_StatisticsData_StatisticsType value); // @@protoc_insertion_point(class_scope:StatisticsMessage.StatisticsData) private: - inline void set_has_statisticstype(); - inline void clear_has_statisticstype(); - inline void set_has_statisticsvalue(); - inline void clear_has_statisticsvalue(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - int statisticstype_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 statisticsvalue_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static StatisticsMessage_StatisticsData* default_instance_; + int statisticstype_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class StatisticsMessage : public ::google::protobuf::MessageLite { +class StatisticsMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:StatisticsMessage) */ { public: StatisticsMessage(); virtual ~StatisticsMessage(); @@ -9198,51 +11426,87 @@ class StatisticsMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const StatisticsMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const StatisticsMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_StatisticsMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 74; void Swap(StatisticsMessage* other); + friend void swap(StatisticsMessage& a, StatisticsMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - StatisticsMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const StatisticsMessage& from); void MergeFrom(const StatisticsMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- @@ -9251,39 +11515,31 @@ class StatisticsMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- // repeated .StatisticsMessage.StatisticsData statisticsData = 1; - inline int statisticsdata_size() const; - inline void clear_statisticsdata(); + int statisticsdata_size() const; + void clear_statisticsdata(); static const int kStatisticsDataFieldNumber = 1; - inline const ::StatisticsMessage_StatisticsData& statisticsdata(int index) const; - inline ::StatisticsMessage_StatisticsData* mutable_statisticsdata(int index); - inline ::StatisticsMessage_StatisticsData* add_statisticsdata(); - inline const ::google::protobuf::RepeatedPtrField< ::StatisticsMessage_StatisticsData >& - statisticsdata() const; - inline ::google::protobuf::RepeatedPtrField< ::StatisticsMessage_StatisticsData >* + ::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 >& + statisticsdata() const; // @@protoc_insertion_point(class_scope:StatisticsMessage) private: + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::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_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static StatisticsMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class ChatRequestMessage : public ::google::protobuf::MessageLite { +class ChatRequestMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:ChatRequestMessage) */ { public: ChatRequestMessage(); virtual ~ChatRequestMessage(); @@ -9294,112 +11550,137 @@ class ChatRequestMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const ChatRequestMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ChatRequestMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_ChatRequestMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 75; void Swap(ChatRequestMessage* other); + friend void swap(ChatRequestMessage& a, ChatRequestMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - ChatRequestMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const ChatRequestMessage& from); void MergeFrom(const ChatRequestMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // 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; - inline bool has_targetgameid() const; - inline void clear_targetgameid(); + bool has_targetgameid() const; + void clear_targetgameid(); static const int kTargetGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 targetgameid() const; - inline void set_targetgameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 targetgameid() const; + void set_targetgameid(::google::protobuf::uint32 value); // optional uint32 targetPlayerId = 2; - inline bool has_targetplayerid() const; - inline void clear_targetplayerid(); + bool has_targetplayerid() const; + void clear_targetplayerid(); static const int kTargetPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 targetplayerid() const; - inline void set_targetplayerid(::google::protobuf::uint32 value); - - // required string chatText = 3; - inline bool has_chattext() const; - inline void clear_chattext(); - static const int kChatTextFieldNumber = 3; - inline const ::std::string& chattext() const; - inline void set_chattext(const ::std::string& value); - inline void set_chattext(const char* value); - inline void set_chattext(const char* value, size_t size); - inline ::std::string* mutable_chattext(); - inline ::std::string* release_chattext(); - inline void set_allocated_chattext(::std::string* chattext); + ::google::protobuf::uint32 targetplayerid() const; + void set_targetplayerid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:ChatRequestMessage) private: - inline void set_has_targetgameid(); - inline void clear_has_targetgameid(); - inline void set_has_targetplayerid(); - inline void clear_has_targetplayerid(); - inline void set_has_chattext(); - inline void clear_has_chattext(); + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::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_; ::google::protobuf::uint32 targetgameid_; ::google::protobuf::uint32 targetplayerid_; - ::std::string* chattext_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static ChatRequestMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class ChatMessage : public ::google::protobuf::MessageLite { +class ChatMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:ChatMessage) */ { public: ChatMessage(); virtual ~ChatMessage(); @@ -9410,60 +11691,101 @@ class ChatMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const ChatMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ChatMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_ChatMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 76; void Swap(ChatMessage* other); + friend void swap(ChatMessage& a, ChatMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - ChatMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const ChatMessage& from); void MergeFrom(const ChatMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef ChatMessage_ChatType ChatType; - static const ChatType chatTypeLobby = ChatMessage_ChatType_chatTypeLobby; - static const ChatType chatTypeGame = ChatMessage_ChatType_chatTypeGame; - static const ChatType chatTypeBot = ChatMessage_ChatType_chatTypeBot; - static const ChatType chatTypeBroadcast = ChatMessage_ChatType_chatTypeBroadcast; - static const ChatType chatTypePrivate = ChatMessage_ChatType_chatTypePrivate; + static 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); } @@ -9476,72 +11798,62 @@ class ChatMessage : public ::google::protobuf::MessageLite { // 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; - inline bool has_gameid() const; - inline void clear_gameid(); + bool has_gameid() const; + void clear_gameid(); static const int kGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 gameid() const; - inline void set_gameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 gameid() const; + void set_gameid(::google::protobuf::uint32 value); // optional uint32 playerId = 2; - inline bool has_playerid() const; - inline void clear_playerid(); + bool has_playerid() const; + void clear_playerid(); static const int kPlayerIdFieldNumber = 2; - inline ::google::protobuf::uint32 playerid() const; - inline void set_playerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 playerid() const; + void set_playerid(::google::protobuf::uint32 value); // required .ChatMessage.ChatType chatType = 3; - inline bool has_chattype() const; - inline void clear_chattype(); + bool has_chattype() const; + void clear_chattype(); static const int kChatTypeFieldNumber = 3; - inline ::ChatMessage_ChatType chattype() const; - inline void set_chattype(::ChatMessage_ChatType value); - - // required string chatText = 4; - inline bool has_chattext() const; - inline void clear_chattext(); - static const int kChatTextFieldNumber = 4; - inline const ::std::string& chattext() const; - inline void set_chattext(const ::std::string& value); - inline void set_chattext(const char* value); - inline void set_chattext(const char* value, size_t size); - inline ::std::string* mutable_chattext(); - inline ::std::string* release_chattext(); - inline void set_allocated_chattext(::std::string* chattext); + ::ChatMessage_ChatType chattype() const; + void set_chattype(::ChatMessage_ChatType value); // @@protoc_insertion_point(class_scope:ChatMessage) private: - inline void set_has_gameid(); - inline void clear_has_gameid(); - inline void set_has_playerid(); - inline void clear_has_playerid(); - inline void set_has_chattype(); - inline void clear_has_chattype(); - inline void set_has_chattext(); - inline void clear_has_chattext(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::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_; ::google::protobuf::uint32 gameid_; ::google::protobuf::uint32 playerid_; - ::std::string* chattext_; int chattype_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static ChatMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class ChatRejectMessage : public ::google::protobuf::MessageLite { +class ChatRejectMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:ChatRejectMessage) */ { public: ChatRejectMessage(); virtual ~ChatRejectMessage(); @@ -9552,92 +11864,121 @@ class ChatRejectMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const ChatRejectMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ChatRejectMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_ChatRejectMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 77; void Swap(ChatRejectMessage* other); + friend void swap(ChatRejectMessage& a, ChatRejectMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - ChatRejectMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const ChatRejectMessage& from); void MergeFrom(const ChatRejectMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required string chatText = 1; - inline bool has_chattext() const; - inline void clear_chattext(); + bool has_chattext() const; + void clear_chattext(); static const int kChatTextFieldNumber = 1; - inline const ::std::string& chattext() const; - inline void set_chattext(const ::std::string& value); - inline void set_chattext(const char* value); - inline void set_chattext(const char* value, size_t size); - inline ::std::string* mutable_chattext(); - inline ::std::string* release_chattext(); - inline void set_allocated_chattext(::std::string* chattext); + 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); // @@protoc_insertion_point(class_scope:ChatRejectMessage) private: - inline void set_has_chattext(); - inline void clear_has_chattext(); + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - ::std::string* chattext_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static ChatRejectMessage* default_instance_; + ::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; }; // ------------------------------------------------------------------- -class DialogMessage : public ::google::protobuf::MessageLite { +class DialogMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:DialogMessage) */ { public: DialogMessage(); virtual ~DialogMessage(); @@ -9648,92 +11989,121 @@ class DialogMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const DialogMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const DialogMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_DialogMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 78; void Swap(DialogMessage* other); + friend void swap(DialogMessage& a, DialogMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - DialogMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const DialogMessage& from); void MergeFrom(const DialogMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required string notificationText = 1; - inline bool has_notificationtext() const; - inline void clear_notificationtext(); + bool has_notificationtext() const; + void clear_notificationtext(); static const int kNotificationTextFieldNumber = 1; - inline const ::std::string& notificationtext() const; - inline void set_notificationtext(const ::std::string& value); - inline void set_notificationtext(const char* value); - inline void set_notificationtext(const char* value, size_t size); - inline ::std::string* mutable_notificationtext(); - inline ::std::string* release_notificationtext(); - inline void set_allocated_notificationtext(::std::string* notificationtext); + 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); // @@protoc_insertion_point(class_scope:DialogMessage) private: - inline void set_has_notificationtext(); - inline void clear_has_notificationtext(); + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - ::std::string* notificationtext_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static DialogMessage* default_instance_; + ::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; }; // ------------------------------------------------------------------- -class TimeoutWarningMessage : public ::google::protobuf::MessageLite { +class TimeoutWarningMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:TimeoutWarningMessage) */ { public: TimeoutWarningMessage(); virtual ~TimeoutWarningMessage(); @@ -9744,58 +12114,97 @@ class TimeoutWarningMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const TimeoutWarningMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const TimeoutWarningMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_TimeoutWarningMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 79; void Swap(TimeoutWarningMessage* other); + friend void swap(TimeoutWarningMessage& a, TimeoutWarningMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - TimeoutWarningMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const TimeoutWarningMessage& from); void MergeFrom(const TimeoutWarningMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef TimeoutWarningMessage_TimeoutReason TimeoutReason; - static const TimeoutReason timeoutNoDataReceived = TimeoutWarningMessage_TimeoutReason_timeoutNoDataReceived; - static const TimeoutReason timeoutInactiveGame = TimeoutWarningMessage_TimeoutReason_timeoutInactiveGame; - static const TimeoutReason timeoutKickAfterAutofold = TimeoutWarningMessage_TimeoutReason_timeoutKickAfterAutofold; + static 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); } @@ -9809,46 +12218,37 @@ class TimeoutWarningMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- // required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; - inline bool has_timeoutreason() const; - inline void clear_timeoutreason(); + bool has_timeoutreason() const; + void clear_timeoutreason(); static const int kTimeoutReasonFieldNumber = 1; - inline ::TimeoutWarningMessage_TimeoutReason timeoutreason() const; - inline void set_timeoutreason(::TimeoutWarningMessage_TimeoutReason value); + ::TimeoutWarningMessage_TimeoutReason timeoutreason() const; + void set_timeoutreason(::TimeoutWarningMessage_TimeoutReason value); // required uint32 remainingSeconds = 2; - inline bool has_remainingseconds() const; - inline void clear_remainingseconds(); + bool has_remainingseconds() const; + void clear_remainingseconds(); static const int kRemainingSecondsFieldNumber = 2; - inline ::google::protobuf::uint32 remainingseconds() const; - inline void set_remainingseconds(::google::protobuf::uint32 value); + ::google::protobuf::uint32 remainingseconds() const; + void set_remainingseconds(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:TimeoutWarningMessage) private: - inline void set_has_timeoutreason(); - inline void clear_has_timeoutreason(); - inline void set_has_remainingseconds(); - inline void clear_has_remainingseconds(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; int timeoutreason_; ::google::protobuf::uint32 remainingseconds_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static TimeoutWarningMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class ResetTimeoutMessage : public ::google::protobuf::MessageLite { +class ResetTimeoutMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:ResetTimeoutMessage) */ { public: ResetTimeoutMessage(); virtual ~ResetTimeoutMessage(); @@ -9859,51 +12259,87 @@ class ResetTimeoutMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const ResetTimeoutMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ResetTimeoutMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_ResetTimeoutMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 80; void Swap(ResetTimeoutMessage* other); + friend void swap(ResetTimeoutMessage& a, ResetTimeoutMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - ResetTimeoutMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const ResetTimeoutMessage& from); void MergeFrom(const ResetTimeoutMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- @@ -9911,25 +12347,17 @@ class ResetTimeoutMessage : public ::google::protobuf::MessageLite { // @@protoc_insertion_point(class_scope:ResetTimeoutMessage) private: + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static ResetTimeoutMessage* default_instance_; + ::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; }; // ------------------------------------------------------------------- -class ReportAvatarMessage : public ::google::protobuf::MessageLite { +class ReportAvatarMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:ReportAvatarMessage) */ { public: ReportAvatarMessage(); virtual ~ReportAvatarMessage(); @@ -9940,102 +12368,132 @@ class ReportAvatarMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const ReportAvatarMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ReportAvatarMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_ReportAvatarMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 81; void Swap(ReportAvatarMessage* other); + friend void swap(ReportAvatarMessage& a, ReportAvatarMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - ReportAvatarMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const ReportAvatarMessage& from); void MergeFrom(const ReportAvatarMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- - // required uint32 reportedPlayerId = 1; - inline bool has_reportedplayerid() const; - inline void clear_reportedplayerid(); - static const int kReportedPlayerIdFieldNumber = 1; - inline ::google::protobuf::uint32 reportedplayerid() const; - inline void set_reportedplayerid(::google::protobuf::uint32 value); - // required bytes reportedAvatarHash = 2; - inline bool has_reportedavatarhash() const; - inline void clear_reportedavatarhash(); + bool has_reportedavatarhash() const; + void clear_reportedavatarhash(); static const int kReportedAvatarHashFieldNumber = 2; - inline const ::std::string& reportedavatarhash() const; - inline void set_reportedavatarhash(const ::std::string& value); - inline void set_reportedavatarhash(const char* value); - inline void set_reportedavatarhash(const void* value, size_t size); - inline ::std::string* mutable_reportedavatarhash(); - inline ::std::string* release_reportedavatarhash(); - inline void set_allocated_reportedavatarhash(::std::string* reportedavatarhash); + 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(); + static const int kReportedPlayerIdFieldNumber = 1; + ::google::protobuf::uint32 reportedplayerid() const; + void set_reportedplayerid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:ReportAvatarMessage) private: - inline void set_has_reportedplayerid(); - inline void clear_has_reportedplayerid(); - inline void set_has_reportedavatarhash(); - inline void clear_has_reportedavatarhash(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; - ::std::string* reportedavatarhash_; + ::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_; ::google::protobuf::uint32 reportedplayerid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static ReportAvatarMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class ReportAvatarAckMessage : public ::google::protobuf::MessageLite { +class ReportAvatarAckMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:ReportAvatarAckMessage) */ { public: ReportAvatarAckMessage(); virtual ~ReportAvatarAckMessage(); @@ -10046,58 +12504,97 @@ class ReportAvatarAckMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const ReportAvatarAckMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ReportAvatarAckMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_ReportAvatarAckMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 82; void Swap(ReportAvatarAckMessage* other); + friend void swap(ReportAvatarAckMessage& a, ReportAvatarAckMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - ReportAvatarAckMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const ReportAvatarAckMessage& from); void MergeFrom(const ReportAvatarAckMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef ReportAvatarAckMessage_ReportAvatarResult ReportAvatarResult; - static const ReportAvatarResult avatarReportAccepted = ReportAvatarAckMessage_ReportAvatarResult_avatarReportAccepted; - static const ReportAvatarResult avatarReportDuplicate = ReportAvatarAckMessage_ReportAvatarResult_avatarReportDuplicate; - static const ReportAvatarResult avatarReportInvalid = ReportAvatarAckMessage_ReportAvatarResult_avatarReportInvalid; + static 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); } @@ -10111,46 +12608,37 @@ class ReportAvatarAckMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- // required uint32 reportedPlayerId = 1; - inline bool has_reportedplayerid() const; - inline void clear_reportedplayerid(); + bool has_reportedplayerid() const; + void clear_reportedplayerid(); static const int kReportedPlayerIdFieldNumber = 1; - inline ::google::protobuf::uint32 reportedplayerid() const; - inline void set_reportedplayerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 reportedplayerid() const; + void set_reportedplayerid(::google::protobuf::uint32 value); // required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; - inline bool has_reportavatarresult() const; - inline void clear_reportavatarresult(); + bool has_reportavatarresult() const; + void clear_reportavatarresult(); static const int kReportAvatarResultFieldNumber = 2; - inline ::ReportAvatarAckMessage_ReportAvatarResult reportavatarresult() const; - inline void set_reportavatarresult(::ReportAvatarAckMessage_ReportAvatarResult value); + ::ReportAvatarAckMessage_ReportAvatarResult reportavatarresult() const; + void set_reportavatarresult(::ReportAvatarAckMessage_ReportAvatarResult value); // @@protoc_insertion_point(class_scope:ReportAvatarAckMessage) private: - inline void set_has_reportedplayerid(); - inline void clear_has_reportedplayerid(); - inline void set_has_reportavatarresult(); - inline void clear_has_reportavatarresult(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 reportedplayerid_; int reportavatarresult_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static ReportAvatarAckMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class ReportGameMessage : public ::google::protobuf::MessageLite { +class ReportGameMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:ReportGameMessage) */ { public: ReportGameMessage(); virtual ~ReportGameMessage(); @@ -10161,87 +12649,113 @@ class ReportGameMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const ReportGameMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ReportGameMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_ReportGameMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 83; void Swap(ReportGameMessage* other); + friend void swap(ReportGameMessage& a, ReportGameMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - ReportGameMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const ReportGameMessage& from); void MergeFrom(const ReportGameMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 reportedGameId = 1; - inline bool has_reportedgameid() const; - inline void clear_reportedgameid(); + bool has_reportedgameid() const; + void clear_reportedgameid(); static const int kReportedGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 reportedgameid() const; - inline void set_reportedgameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 reportedgameid() const; + void set_reportedgameid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:ReportGameMessage) private: - inline void set_has_reportedgameid(); - inline void clear_has_reportedgameid(); + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 reportedgameid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static ReportGameMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class ReportGameAckMessage : public ::google::protobuf::MessageLite { +class ReportGameAckMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:ReportGameAckMessage) */ { public: ReportGameAckMessage(); virtual ~ReportGameAckMessage(); @@ -10252,58 +12766,97 @@ class ReportGameAckMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const ReportGameAckMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ReportGameAckMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_ReportGameAckMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 84; void Swap(ReportGameAckMessage* other); + friend void swap(ReportGameAckMessage& a, ReportGameAckMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - ReportGameAckMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const ReportGameAckMessage& from); void MergeFrom(const ReportGameAckMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef ReportGameAckMessage_ReportGameResult ReportGameResult; - static const ReportGameResult gameReportAccepted = ReportGameAckMessage_ReportGameResult_gameReportAccepted; - static const ReportGameResult gameReportDuplicate = ReportGameAckMessage_ReportGameResult_gameReportDuplicate; - static const ReportGameResult gameReportInvalid = ReportGameAckMessage_ReportGameResult_gameReportInvalid; + static 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); } @@ -10317,46 +12870,37 @@ class ReportGameAckMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- // required uint32 reportedGameId = 1; - inline bool has_reportedgameid() const; - inline void clear_reportedgameid(); + bool has_reportedgameid() const; + void clear_reportedgameid(); static const int kReportedGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 reportedgameid() const; - inline void set_reportedgameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 reportedgameid() const; + void set_reportedgameid(::google::protobuf::uint32 value); // required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; - inline bool has_reportgameresult() const; - inline void clear_reportgameresult(); + bool has_reportgameresult() const; + void clear_reportgameresult(); static const int kReportGameResultFieldNumber = 2; - inline ::ReportGameAckMessage_ReportGameResult reportgameresult() const; - inline void set_reportgameresult(::ReportGameAckMessage_ReportGameResult value); + ::ReportGameAckMessage_ReportGameResult reportgameresult() const; + void set_reportgameresult(::ReportGameAckMessage_ReportGameResult value); // @@protoc_insertion_point(class_scope:ReportGameAckMessage) private: - inline void set_has_reportedgameid(); - inline void clear_has_reportedgameid(); - inline void set_has_reportgameresult(); - inline void clear_has_reportgameresult(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 reportedgameid_; int reportgameresult_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static ReportGameAckMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class ErrorMessage : public ::google::protobuf::MessageLite { +class ErrorMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:ErrorMessage) */ { public: ErrorMessage(); virtual ~ErrorMessage(); @@ -10367,70 +12911,121 @@ class ErrorMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const ErrorMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ErrorMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_ErrorMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 85; void Swap(ErrorMessage* other); + friend void swap(ErrorMessage& a, ErrorMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - ErrorMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const ErrorMessage& from); void MergeFrom(const ErrorMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef ErrorMessage_ErrorReason ErrorReason; - static const ErrorReason reserved = ErrorMessage_ErrorReason_reserved; - 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); } @@ -10444,36 +13039,26 @@ class ErrorMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- // required .ErrorMessage.ErrorReason errorReason = 1; - inline bool has_errorreason() const; - inline void clear_errorreason(); + bool has_errorreason() const; + void clear_errorreason(); static const int kErrorReasonFieldNumber = 1; - inline ::ErrorMessage_ErrorReason errorreason() const; - inline void set_errorreason(::ErrorMessage_ErrorReason value); + ::ErrorMessage_ErrorReason errorreason() const; + void set_errorreason(::ErrorMessage_ErrorReason value); // @@protoc_insertion_point(class_scope:ErrorMessage) private: - inline void set_has_errorreason(); - inline void clear_has_errorreason(); + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; int errorreason_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static ErrorMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AdminRemoveGameMessage : public ::google::protobuf::MessageLite { +class AdminRemoveGameMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AdminRemoveGameMessage) */ { public: AdminRemoveGameMessage(); virtual ~AdminRemoveGameMessage(); @@ -10484,87 +13069,113 @@ class AdminRemoveGameMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const AdminRemoveGameMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AdminRemoveGameMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AdminRemoveGameMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 86; void Swap(AdminRemoveGameMessage* other); + friend void swap(AdminRemoveGameMessage& a, AdminRemoveGameMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - AdminRemoveGameMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const AdminRemoveGameMessage& from); void MergeFrom(const AdminRemoveGameMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 removeGameId = 1; - inline bool has_removegameid() const; - inline void clear_removegameid(); + bool has_removegameid() const; + void clear_removegameid(); static const int kRemoveGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 removegameid() const; - inline void set_removegameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 removegameid() const; + void set_removegameid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:AdminRemoveGameMessage) private: - inline void set_has_removegameid(); - inline void clear_has_removegameid(); + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 removegameid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AdminRemoveGameMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AdminRemoveGameAckMessage : public ::google::protobuf::MessageLite { +class AdminRemoveGameAckMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AdminRemoveGameAckMessage) */ { public: AdminRemoveGameAckMessage(); virtual ~AdminRemoveGameAckMessage(); @@ -10575,57 +13186,95 @@ class AdminRemoveGameAckMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const AdminRemoveGameAckMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AdminRemoveGameAckMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AdminRemoveGameAckMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 87; void Swap(AdminRemoveGameAckMessage* other); + friend void swap(AdminRemoveGameAckMessage& a, AdminRemoveGameAckMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - AdminRemoveGameAckMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const AdminRemoveGameAckMessage& from); void MergeFrom(const AdminRemoveGameAckMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef AdminRemoveGameAckMessage_AdminRemoveGameResult AdminRemoveGameResult; - static const AdminRemoveGameResult gameRemoveAccepted = AdminRemoveGameAckMessage_AdminRemoveGameResult_gameRemoveAccepted; - static const AdminRemoveGameResult gameRemoveInvalid = AdminRemoveGameAckMessage_AdminRemoveGameResult_gameRemoveInvalid; + static 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); } @@ -10639,46 +13288,37 @@ class AdminRemoveGameAckMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- // required uint32 removeGameId = 1; - inline bool has_removegameid() const; - inline void clear_removegameid(); + bool has_removegameid() const; + void clear_removegameid(); static const int kRemoveGameIdFieldNumber = 1; - inline ::google::protobuf::uint32 removegameid() const; - inline void set_removegameid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 removegameid() const; + void set_removegameid(::google::protobuf::uint32 value); // required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; - inline bool has_removegameresult() const; - inline void clear_removegameresult(); + bool has_removegameresult() const; + void clear_removegameresult(); static const int kRemoveGameResultFieldNumber = 2; - inline ::AdminRemoveGameAckMessage_AdminRemoveGameResult removegameresult() const; - inline void set_removegameresult(::AdminRemoveGameAckMessage_AdminRemoveGameResult value); + ::AdminRemoveGameAckMessage_AdminRemoveGameResult removegameresult() const; + void set_removegameresult(::AdminRemoveGameAckMessage_AdminRemoveGameResult value); // @@protoc_insertion_point(class_scope:AdminRemoveGameAckMessage) private: - inline void set_has_removegameid(); - inline void clear_has_removegameid(); - inline void set_has_removegameresult(); - inline void clear_has_removegameresult(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 removegameid_; int removegameresult_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AdminRemoveGameAckMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AdminBanPlayerMessage : public ::google::protobuf::MessageLite { +class AdminBanPlayerMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AdminBanPlayerMessage) */ { public: AdminBanPlayerMessage(); virtual ~AdminBanPlayerMessage(); @@ -10689,87 +13329,113 @@ class AdminBanPlayerMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const AdminBanPlayerMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AdminBanPlayerMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AdminBanPlayerMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 88; void Swap(AdminBanPlayerMessage* other); + friend void swap(AdminBanPlayerMessage& a, AdminBanPlayerMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - AdminBanPlayerMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const AdminBanPlayerMessage& from); void MergeFrom(const AdminBanPlayerMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required uint32 banPlayerId = 1; - inline bool has_banplayerid() const; - inline void clear_banplayerid(); + bool has_banplayerid() const; + void clear_banplayerid(); static const int kBanPlayerIdFieldNumber = 1; - inline ::google::protobuf::uint32 banplayerid() const; - inline void set_banplayerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 banplayerid() const; + void set_banplayerid(::google::protobuf::uint32 value); // @@protoc_insertion_point(class_scope:AdminBanPlayerMessage) private: - inline void set_has_banplayerid(); - inline void clear_has_banplayerid(); + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 banplayerid_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AdminBanPlayerMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class AdminBanPlayerAckMessage : public ::google::protobuf::MessageLite { +class AdminBanPlayerAckMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:AdminBanPlayerAckMessage) */ { public: AdminBanPlayerAckMessage(); virtual ~AdminBanPlayerAckMessage(); @@ -10780,60 +13446,101 @@ class AdminBanPlayerAckMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const AdminBanPlayerAckMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const AdminBanPlayerAckMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_AdminBanPlayerAckMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 89; void Swap(AdminBanPlayerAckMessage* other); + friend void swap(AdminBanPlayerAckMessage& a, AdminBanPlayerAckMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - AdminBanPlayerAckMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const AdminBanPlayerAckMessage& from); void MergeFrom(const AdminBanPlayerAckMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerResult; - static const AdminBanPlayerResult banPlayerAccepted = AdminBanPlayerAckMessage_AdminBanPlayerResult_banPlayerAccepted; - static const AdminBanPlayerResult banPlayerPending = AdminBanPlayerAckMessage_AdminBanPlayerResult_banPlayerPending; - static const AdminBanPlayerResult banPlayerNoDB = AdminBanPlayerAckMessage_AdminBanPlayerResult_banPlayerNoDB; - static const AdminBanPlayerResult banPlayerDBError = AdminBanPlayerAckMessage_AdminBanPlayerResult_banPlayerDBError; - static const AdminBanPlayerResult banPlayerInvalid = AdminBanPlayerAckMessage_AdminBanPlayerResult_banPlayerInvalid; + static 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); } @@ -10847,46 +13554,37 @@ class AdminBanPlayerAckMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- // required uint32 banPlayerId = 1; - inline bool has_banplayerid() const; - inline void clear_banplayerid(); + bool has_banplayerid() const; + void clear_banplayerid(); static const int kBanPlayerIdFieldNumber = 1; - inline ::google::protobuf::uint32 banplayerid() const; - inline void set_banplayerid(::google::protobuf::uint32 value); + ::google::protobuf::uint32 banplayerid() const; + void set_banplayerid(::google::protobuf::uint32 value); // required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; - inline bool has_banplayerresult() const; - inline void clear_banplayerresult(); + bool has_banplayerresult() const; + void clear_banplayerresult(); static const int kBanPlayerResultFieldNumber = 2; - inline ::AdminBanPlayerAckMessage_AdminBanPlayerResult banplayerresult() const; - inline void set_banplayerresult(::AdminBanPlayerAckMessage_AdminBanPlayerResult value); + ::AdminBanPlayerAckMessage_AdminBanPlayerResult banplayerresult() const; + void set_banplayerresult(::AdminBanPlayerAckMessage_AdminBanPlayerResult value); // @@protoc_insertion_point(class_scope:AdminBanPlayerAckMessage) private: - inline void set_has_banplayerid(); - inline void clear_has_banplayerid(); - inline void set_has_banplayerresult(); - inline void clear_has_banplayerresult(); + class HasBitSetters; - ::std::string _unknown_fields_; + // helper for ByteSizeLong() + size_t RequiredFieldsByteSizeFallback() const; - ::google::protobuf::uint32 _has_bits_[1]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<1> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::uint32 banplayerid_; int banplayerresult_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static AdminBanPlayerAckMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // ------------------------------------------------------------------- -class PokerTHMessage : public ::google::protobuf::MessageLite { +class PokerTHMessage : + public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:PokerTHMessage) */ { public: PokerTHMessage(); virtual ~PokerTHMessage(); @@ -10897,136 +13595,253 @@ class PokerTHMessage : public ::google::protobuf::MessageLite { CopyFrom(from); return *this; } - - inline const ::std::string& unknown_fields() const { - return _unknown_fields_; + #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 &_unknown_fields_; + return _internal_metadata_.mutable_unknown_fields(); } static const PokerTHMessage& default_instance(); - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - // Returns the internal default instance pointer. This function can - // return NULL thus should not be used by the user. This is intended - // for Protobuf internal code. Please use default_instance() declared - // above instead. + static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const PokerTHMessage* internal_default_instance() { - return default_instance_; + return reinterpret_cast( + &_PokerTHMessage_default_instance_); } - #endif + static constexpr int kIndexInFileMessages = + 90; void Swap(PokerTHMessage* other); + friend void swap(PokerTHMessage& a, PokerTHMessage& b) { + a.Swap(&b); + } // implements Message ---------------------------------------------- - PokerTHMessage* New() const; - void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from); + 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; void CopyFrom(const PokerTHMessage& from); void MergeFrom(const PokerTHMessage& from); - void Clear(); - bool IsInitialized() const; + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; - int ByteSize() const; + 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 bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); + ::google::protobuf::io::CodedInputStream* input) final; + #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; + ::google::protobuf::io::CodedOutputStream* output) const final; void DiscardUnknownFields(); - int GetCachedSize() const { return _cached_size_; } + int GetCachedSize() const final { return _cached_size_.Get(); } + 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; + + ::std::string GetTypeName() const final; // nested types ---------------------------------------------------- typedef PokerTHMessage_PokerTHMessageType PokerTHMessageType; - static const PokerTHMessageType Type_AnnounceMessage = PokerTHMessage_PokerTHMessageType_Type_AnnounceMessage; - static const PokerTHMessageType Type_InitMessage = PokerTHMessage_PokerTHMessageType_Type_InitMessage; - static const PokerTHMessageType Type_AuthServerChallengeMessage = PokerTHMessage_PokerTHMessageType_Type_AuthServerChallengeMessage; - static const PokerTHMessageType Type_AuthClientResponseMessage = PokerTHMessage_PokerTHMessageType_Type_AuthClientResponseMessage; - static const PokerTHMessageType Type_AuthServerVerificationMessage = PokerTHMessage_PokerTHMessageType_Type_AuthServerVerificationMessage; - static const PokerTHMessageType Type_InitAckMessage = PokerTHMessage_PokerTHMessageType_Type_InitAckMessage; - static const PokerTHMessageType Type_AvatarRequestMessage = PokerTHMessage_PokerTHMessageType_Type_AvatarRequestMessage; - static const PokerTHMessageType Type_AvatarHeaderMessage = PokerTHMessage_PokerTHMessageType_Type_AvatarHeaderMessage; - static const PokerTHMessageType Type_AvatarDataMessage = PokerTHMessage_PokerTHMessageType_Type_AvatarDataMessage; - static const PokerTHMessageType Type_AvatarEndMessage = PokerTHMessage_PokerTHMessageType_Type_AvatarEndMessage; - static const PokerTHMessageType Type_UnknownAvatarMessage = PokerTHMessage_PokerTHMessageType_Type_UnknownAvatarMessage; - static const PokerTHMessageType Type_PlayerListMessage = PokerTHMessage_PokerTHMessageType_Type_PlayerListMessage; - static const PokerTHMessageType Type_GameListNewMessage = PokerTHMessage_PokerTHMessageType_Type_GameListNewMessage; - static const PokerTHMessageType Type_GameListUpdateMessage = PokerTHMessage_PokerTHMessageType_Type_GameListUpdateMessage; - static const PokerTHMessageType Type_GameListPlayerJoinedMessage = PokerTHMessage_PokerTHMessageType_Type_GameListPlayerJoinedMessage; - static const PokerTHMessageType Type_GameListPlayerLeftMessage = PokerTHMessage_PokerTHMessageType_Type_GameListPlayerLeftMessage; - static const PokerTHMessageType Type_GameListAdminChangedMessage = PokerTHMessage_PokerTHMessageType_Type_GameListAdminChangedMessage; - static const PokerTHMessageType Type_PlayerInfoRequestMessage = PokerTHMessage_PokerTHMessageType_Type_PlayerInfoRequestMessage; - static const PokerTHMessageType Type_PlayerInfoReplyMessage = PokerTHMessage_PokerTHMessageType_Type_PlayerInfoReplyMessage; - static const PokerTHMessageType Type_SubscriptionRequestMessage = PokerTHMessage_PokerTHMessageType_Type_SubscriptionRequestMessage; - static const PokerTHMessageType Type_JoinExistingGameMessage = PokerTHMessage_PokerTHMessageType_Type_JoinExistingGameMessage; - static const PokerTHMessageType Type_JoinNewGameMessage = PokerTHMessage_PokerTHMessageType_Type_JoinNewGameMessage; - static const PokerTHMessageType Type_RejoinExistingGameMessage = PokerTHMessage_PokerTHMessageType_Type_RejoinExistingGameMessage; - static const PokerTHMessageType Type_JoinGameAckMessage = PokerTHMessage_PokerTHMessageType_Type_JoinGameAckMessage; - static const PokerTHMessageType Type_JoinGameFailedMessage = PokerTHMessage_PokerTHMessageType_Type_JoinGameFailedMessage; - static const PokerTHMessageType Type_GamePlayerJoinedMessage = PokerTHMessage_PokerTHMessageType_Type_GamePlayerJoinedMessage; - static const PokerTHMessageType Type_GamePlayerLeftMessage = PokerTHMessage_PokerTHMessageType_Type_GamePlayerLeftMessage; - static const PokerTHMessageType Type_GameAdminChangedMessage = PokerTHMessage_PokerTHMessageType_Type_GameAdminChangedMessage; - static const PokerTHMessageType Type_RemovedFromGameMessage = PokerTHMessage_PokerTHMessageType_Type_RemovedFromGameMessage; - static const PokerTHMessageType Type_KickPlayerRequestMessage = PokerTHMessage_PokerTHMessageType_Type_KickPlayerRequestMessage; - static const PokerTHMessageType Type_LeaveGameRequestMessage = PokerTHMessage_PokerTHMessageType_Type_LeaveGameRequestMessage; - static const PokerTHMessageType Type_InvitePlayerToGameMessage = PokerTHMessage_PokerTHMessageType_Type_InvitePlayerToGameMessage; - static const PokerTHMessageType Type_InviteNotifyMessage = PokerTHMessage_PokerTHMessageType_Type_InviteNotifyMessage; - static const PokerTHMessageType Type_RejectGameInvitationMessage = PokerTHMessage_PokerTHMessageType_Type_RejectGameInvitationMessage; - static const PokerTHMessageType Type_RejectInvNotifyMessage = PokerTHMessage_PokerTHMessageType_Type_RejectInvNotifyMessage; - static const PokerTHMessageType Type_StartEventMessage = PokerTHMessage_PokerTHMessageType_Type_StartEventMessage; - static const PokerTHMessageType Type_StartEventAckMessage = PokerTHMessage_PokerTHMessageType_Type_StartEventAckMessage; - static const PokerTHMessageType Type_GameStartInitialMessage = PokerTHMessage_PokerTHMessageType_Type_GameStartInitialMessage; - static const PokerTHMessageType Type_GameStartRejoinMessage = PokerTHMessage_PokerTHMessageType_Type_GameStartRejoinMessage; - static const PokerTHMessageType Type_HandStartMessage = PokerTHMessage_PokerTHMessageType_Type_HandStartMessage; - static const PokerTHMessageType Type_PlayersTurnMessage = PokerTHMessage_PokerTHMessageType_Type_PlayersTurnMessage; - static const PokerTHMessageType Type_MyActionRequestMessage = PokerTHMessage_PokerTHMessageType_Type_MyActionRequestMessage; - static const PokerTHMessageType Type_YourActionRejectedMessage = PokerTHMessage_PokerTHMessageType_Type_YourActionRejectedMessage; - static const PokerTHMessageType Type_PlayersActionDoneMessage = PokerTHMessage_PokerTHMessageType_Type_PlayersActionDoneMessage; - static const PokerTHMessageType Type_DealFlopCardsMessage = PokerTHMessage_PokerTHMessageType_Type_DealFlopCardsMessage; - static const PokerTHMessageType Type_DealTurnCardMessage = PokerTHMessage_PokerTHMessageType_Type_DealTurnCardMessage; - static const PokerTHMessageType Type_DealRiverCardMessage = PokerTHMessage_PokerTHMessageType_Type_DealRiverCardMessage; - static const PokerTHMessageType Type_AllInShowCardsMessage = PokerTHMessage_PokerTHMessageType_Type_AllInShowCardsMessage; - static const PokerTHMessageType Type_EndOfHandShowCardsMessage = PokerTHMessage_PokerTHMessageType_Type_EndOfHandShowCardsMessage; - static const PokerTHMessageType Type_EndOfHandHideCardsMessage = PokerTHMessage_PokerTHMessageType_Type_EndOfHandHideCardsMessage; - static const PokerTHMessageType Type_ShowMyCardsRequestMessage = PokerTHMessage_PokerTHMessageType_Type_ShowMyCardsRequestMessage; - static const PokerTHMessageType Type_AfterHandShowCardsMessage = PokerTHMessage_PokerTHMessageType_Type_AfterHandShowCardsMessage; - static const PokerTHMessageType Type_EndOfGameMessage = PokerTHMessage_PokerTHMessageType_Type_EndOfGameMessage; - static const PokerTHMessageType Type_PlayerIdChangedMessage = PokerTHMessage_PokerTHMessageType_Type_PlayerIdChangedMessage; - static const PokerTHMessageType Type_AskKickPlayerMessage = PokerTHMessage_PokerTHMessageType_Type_AskKickPlayerMessage; - static const PokerTHMessageType Type_AskKickDeniedMessage = PokerTHMessage_PokerTHMessageType_Type_AskKickDeniedMessage; - static const PokerTHMessageType Type_StartKickPetitionMessage = PokerTHMessage_PokerTHMessageType_Type_StartKickPetitionMessage; - static const PokerTHMessageType Type_VoteKickRequestMessage = PokerTHMessage_PokerTHMessageType_Type_VoteKickRequestMessage; - static const PokerTHMessageType Type_VoteKickReplyMessage = PokerTHMessage_PokerTHMessageType_Type_VoteKickReplyMessage; - static const PokerTHMessageType Type_KickPetitionUpdateMessage = PokerTHMessage_PokerTHMessageType_Type_KickPetitionUpdateMessage; - static const PokerTHMessageType Type_EndKickPetitionMessage = PokerTHMessage_PokerTHMessageType_Type_EndKickPetitionMessage; - static const PokerTHMessageType Type_StatisticsMessage = PokerTHMessage_PokerTHMessageType_Type_StatisticsMessage; - static const PokerTHMessageType Type_ChatRequestMessage = PokerTHMessage_PokerTHMessageType_Type_ChatRequestMessage; - static const PokerTHMessageType Type_ChatMessage = PokerTHMessage_PokerTHMessageType_Type_ChatMessage; - static const PokerTHMessageType Type_ChatRejectMessage = PokerTHMessage_PokerTHMessageType_Type_ChatRejectMessage; - static const PokerTHMessageType Type_DialogMessage = PokerTHMessage_PokerTHMessageType_Type_DialogMessage; - static const PokerTHMessageType Type_TimeoutWarningMessage = PokerTHMessage_PokerTHMessageType_Type_TimeoutWarningMessage; - static const PokerTHMessageType Type_ResetTimeoutMessage = PokerTHMessage_PokerTHMessageType_Type_ResetTimeoutMessage; - static const PokerTHMessageType Type_ReportAvatarMessage = PokerTHMessage_PokerTHMessageType_Type_ReportAvatarMessage; - static const PokerTHMessageType Type_ReportAvatarAckMessage = PokerTHMessage_PokerTHMessageType_Type_ReportAvatarAckMessage; - static const PokerTHMessageType Type_ReportGameMessage = PokerTHMessage_PokerTHMessageType_Type_ReportGameMessage; - static const PokerTHMessageType Type_ReportGameAckMessage = PokerTHMessage_PokerTHMessageType_Type_ReportGameAckMessage; - static const PokerTHMessageType Type_ErrorMessage = PokerTHMessage_PokerTHMessageType_Type_ErrorMessage; - static const PokerTHMessageType Type_AdminRemoveGameMessage = PokerTHMessage_PokerTHMessageType_Type_AdminRemoveGameMessage; - static const PokerTHMessageType Type_AdminRemoveGameAckMessage = PokerTHMessage_PokerTHMessageType_Type_AdminRemoveGameAckMessage; - static const PokerTHMessageType Type_AdminBanPlayerMessage = PokerTHMessage_PokerTHMessageType_Type_AdminBanPlayerMessage; - static const PokerTHMessageType Type_AdminBanPlayerAckMessage = PokerTHMessage_PokerTHMessageType_Type_AdminBanPlayerAckMessage; - static const PokerTHMessageType Type_GameListSpectatorJoinedMessage = PokerTHMessage_PokerTHMessageType_Type_GameListSpectatorJoinedMessage; - static const PokerTHMessageType Type_GameListSpectatorLeftMessage = PokerTHMessage_PokerTHMessageType_Type_GameListSpectatorLeftMessage; - static const PokerTHMessageType Type_GameSpectatorJoinedMessage = PokerTHMessage_PokerTHMessageType_Type_GameSpectatorJoinedMessage; - static const PokerTHMessageType Type_GameSpectatorLeftMessage = PokerTHMessage_PokerTHMessageType_Type_GameSpectatorLeftMessage; + static const PokerTHMessageType Type_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); } @@ -11039,913 +13854,749 @@ class PokerTHMessage : public ::google::protobuf::MessageLite { // accessors ------------------------------------------------------- - // required .PokerTHMessage.PokerTHMessageType messageType = 1; - inline bool has_messagetype() const; - inline void clear_messagetype(); - static const int kMessageTypeFieldNumber = 1; - inline ::PokerTHMessage_PokerTHMessageType messagetype() const; - inline void set_messagetype(::PokerTHMessage_PokerTHMessageType value); - // optional .AnnounceMessage announceMessage = 2; - inline bool has_announcemessage() const; - inline void clear_announcemessage(); + bool has_announcemessage() const; + void clear_announcemessage(); static const int kAnnounceMessageFieldNumber = 2; - inline const ::AnnounceMessage& announcemessage() const; - inline ::AnnounceMessage* mutable_announcemessage(); - inline ::AnnounceMessage* release_announcemessage(); - inline void set_allocated_announcemessage(::AnnounceMessage* announcemessage); + const ::AnnounceMessage& announcemessage() const; + ::AnnounceMessage* release_announcemessage(); + ::AnnounceMessage* mutable_announcemessage(); + void set_allocated_announcemessage(::AnnounceMessage* announcemessage); // optional .InitMessage initMessage = 3; - inline bool has_initmessage() const; - inline void clear_initmessage(); + bool has_initmessage() const; + void clear_initmessage(); static const int kInitMessageFieldNumber = 3; - inline const ::InitMessage& initmessage() const; - inline ::InitMessage* mutable_initmessage(); - inline ::InitMessage* release_initmessage(); - inline void set_allocated_initmessage(::InitMessage* initmessage); + const ::InitMessage& initmessage() const; + ::InitMessage* release_initmessage(); + ::InitMessage* mutable_initmessage(); + void set_allocated_initmessage(::InitMessage* initmessage); // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; - inline bool has_authserverchallengemessage() const; - inline void clear_authserverchallengemessage(); + bool has_authserverchallengemessage() const; + void clear_authserverchallengemessage(); static const int kAuthServerChallengeMessageFieldNumber = 4; - inline const ::AuthServerChallengeMessage& authserverchallengemessage() const; - inline ::AuthServerChallengeMessage* mutable_authserverchallengemessage(); - inline ::AuthServerChallengeMessage* release_authserverchallengemessage(); - inline void set_allocated_authserverchallengemessage(::AuthServerChallengeMessage* authserverchallengemessage); + const ::AuthServerChallengeMessage& authserverchallengemessage() const; + ::AuthServerChallengeMessage* release_authserverchallengemessage(); + ::AuthServerChallengeMessage* mutable_authserverchallengemessage(); + void set_allocated_authserverchallengemessage(::AuthServerChallengeMessage* authserverchallengemessage); // optional .AuthClientResponseMessage authClientResponseMessage = 5; - inline bool has_authclientresponsemessage() const; - inline void clear_authclientresponsemessage(); + bool has_authclientresponsemessage() const; + void clear_authclientresponsemessage(); static const int kAuthClientResponseMessageFieldNumber = 5; - inline const ::AuthClientResponseMessage& authclientresponsemessage() const; - inline ::AuthClientResponseMessage* mutable_authclientresponsemessage(); - inline ::AuthClientResponseMessage* release_authclientresponsemessage(); - inline void set_allocated_authclientresponsemessage(::AuthClientResponseMessage* authclientresponsemessage); + const ::AuthClientResponseMessage& authclientresponsemessage() const; + ::AuthClientResponseMessage* release_authclientresponsemessage(); + ::AuthClientResponseMessage* mutable_authclientresponsemessage(); + void set_allocated_authclientresponsemessage(::AuthClientResponseMessage* authclientresponsemessage); // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; - inline bool has_authserververificationmessage() const; - inline void clear_authserververificationmessage(); + bool has_authserververificationmessage() const; + void clear_authserververificationmessage(); static const int kAuthServerVerificationMessageFieldNumber = 6; - inline const ::AuthServerVerificationMessage& authserververificationmessage() const; - inline ::AuthServerVerificationMessage* mutable_authserververificationmessage(); - inline ::AuthServerVerificationMessage* release_authserververificationmessage(); - inline void set_allocated_authserververificationmessage(::AuthServerVerificationMessage* authserververificationmessage); + const ::AuthServerVerificationMessage& authserververificationmessage() const; + ::AuthServerVerificationMessage* release_authserververificationmessage(); + ::AuthServerVerificationMessage* mutable_authserververificationmessage(); + void set_allocated_authserververificationmessage(::AuthServerVerificationMessage* authserververificationmessage); // optional .InitAckMessage initAckMessage = 7; - inline bool has_initackmessage() const; - inline void clear_initackmessage(); + bool has_initackmessage() const; + void clear_initackmessage(); static const int kInitAckMessageFieldNumber = 7; - inline const ::InitAckMessage& initackmessage() const; - inline ::InitAckMessage* mutable_initackmessage(); - inline ::InitAckMessage* release_initackmessage(); - inline void set_allocated_initackmessage(::InitAckMessage* initackmessage); + const ::InitAckMessage& initackmessage() const; + ::InitAckMessage* release_initackmessage(); + ::InitAckMessage* mutable_initackmessage(); + void set_allocated_initackmessage(::InitAckMessage* initackmessage); // optional .AvatarRequestMessage avatarRequestMessage = 8; - inline bool has_avatarrequestmessage() const; - inline void clear_avatarrequestmessage(); + bool has_avatarrequestmessage() const; + void clear_avatarrequestmessage(); static const int kAvatarRequestMessageFieldNumber = 8; - inline const ::AvatarRequestMessage& avatarrequestmessage() const; - inline ::AvatarRequestMessage* mutable_avatarrequestmessage(); - inline ::AvatarRequestMessage* release_avatarrequestmessage(); - inline void set_allocated_avatarrequestmessage(::AvatarRequestMessage* avatarrequestmessage); + const ::AvatarRequestMessage& avatarrequestmessage() const; + ::AvatarRequestMessage* release_avatarrequestmessage(); + ::AvatarRequestMessage* mutable_avatarrequestmessage(); + void set_allocated_avatarrequestmessage(::AvatarRequestMessage* avatarrequestmessage); // optional .AvatarHeaderMessage avatarHeaderMessage = 9; - inline bool has_avatarheadermessage() const; - inline void clear_avatarheadermessage(); + bool has_avatarheadermessage() const; + void clear_avatarheadermessage(); static const int kAvatarHeaderMessageFieldNumber = 9; - inline const ::AvatarHeaderMessage& avatarheadermessage() const; - inline ::AvatarHeaderMessage* mutable_avatarheadermessage(); - inline ::AvatarHeaderMessage* release_avatarheadermessage(); - inline void set_allocated_avatarheadermessage(::AvatarHeaderMessage* avatarheadermessage); + const ::AvatarHeaderMessage& avatarheadermessage() const; + ::AvatarHeaderMessage* release_avatarheadermessage(); + ::AvatarHeaderMessage* mutable_avatarheadermessage(); + void set_allocated_avatarheadermessage(::AvatarHeaderMessage* avatarheadermessage); // optional .AvatarDataMessage avatarDataMessage = 10; - inline bool has_avatardatamessage() const; - inline void clear_avatardatamessage(); + bool has_avatardatamessage() const; + void clear_avatardatamessage(); static const int kAvatarDataMessageFieldNumber = 10; - inline const ::AvatarDataMessage& avatardatamessage() const; - inline ::AvatarDataMessage* mutable_avatardatamessage(); - inline ::AvatarDataMessage* release_avatardatamessage(); - inline void set_allocated_avatardatamessage(::AvatarDataMessage* avatardatamessage); + const ::AvatarDataMessage& avatardatamessage() const; + ::AvatarDataMessage* release_avatardatamessage(); + ::AvatarDataMessage* mutable_avatardatamessage(); + void set_allocated_avatardatamessage(::AvatarDataMessage* avatardatamessage); // optional .AvatarEndMessage avatarEndMessage = 11; - inline bool has_avatarendmessage() const; - inline void clear_avatarendmessage(); + bool has_avatarendmessage() const; + void clear_avatarendmessage(); static const int kAvatarEndMessageFieldNumber = 11; - inline const ::AvatarEndMessage& avatarendmessage() const; - inline ::AvatarEndMessage* mutable_avatarendmessage(); - inline ::AvatarEndMessage* release_avatarendmessage(); - inline void set_allocated_avatarendmessage(::AvatarEndMessage* avatarendmessage); + const ::AvatarEndMessage& avatarendmessage() const; + ::AvatarEndMessage* release_avatarendmessage(); + ::AvatarEndMessage* mutable_avatarendmessage(); + void set_allocated_avatarendmessage(::AvatarEndMessage* avatarendmessage); // optional .UnknownAvatarMessage unknownAvatarMessage = 12; - inline bool has_unknownavatarmessage() const; - inline void clear_unknownavatarmessage(); + bool has_unknownavatarmessage() const; + void clear_unknownavatarmessage(); static const int kUnknownAvatarMessageFieldNumber = 12; - inline const ::UnknownAvatarMessage& unknownavatarmessage() const; - inline ::UnknownAvatarMessage* mutable_unknownavatarmessage(); - inline ::UnknownAvatarMessage* release_unknownavatarmessage(); - inline void set_allocated_unknownavatarmessage(::UnknownAvatarMessage* unknownavatarmessage); + const ::UnknownAvatarMessage& unknownavatarmessage() const; + ::UnknownAvatarMessage* release_unknownavatarmessage(); + ::UnknownAvatarMessage* mutable_unknownavatarmessage(); + void set_allocated_unknownavatarmessage(::UnknownAvatarMessage* unknownavatarmessage); // optional .PlayerListMessage playerListMessage = 13; - inline bool has_playerlistmessage() const; - inline void clear_playerlistmessage(); + bool has_playerlistmessage() const; + void clear_playerlistmessage(); static const int kPlayerListMessageFieldNumber = 13; - inline const ::PlayerListMessage& playerlistmessage() const; - inline ::PlayerListMessage* mutable_playerlistmessage(); - inline ::PlayerListMessage* release_playerlistmessage(); - inline void set_allocated_playerlistmessage(::PlayerListMessage* playerlistmessage); + const ::PlayerListMessage& playerlistmessage() const; + ::PlayerListMessage* release_playerlistmessage(); + ::PlayerListMessage* mutable_playerlistmessage(); + void set_allocated_playerlistmessage(::PlayerListMessage* playerlistmessage); // optional .GameListNewMessage gameListNewMessage = 14; - inline bool has_gamelistnewmessage() const; - inline void clear_gamelistnewmessage(); + bool has_gamelistnewmessage() const; + void clear_gamelistnewmessage(); static const int kGameListNewMessageFieldNumber = 14; - inline const ::GameListNewMessage& gamelistnewmessage() const; - inline ::GameListNewMessage* mutable_gamelistnewmessage(); - inline ::GameListNewMessage* release_gamelistnewmessage(); - inline void set_allocated_gamelistnewmessage(::GameListNewMessage* gamelistnewmessage); + const ::GameListNewMessage& gamelistnewmessage() const; + ::GameListNewMessage* release_gamelistnewmessage(); + ::GameListNewMessage* mutable_gamelistnewmessage(); + void set_allocated_gamelistnewmessage(::GameListNewMessage* gamelistnewmessage); // optional .GameListUpdateMessage gameListUpdateMessage = 15; - inline bool has_gamelistupdatemessage() const; - inline void clear_gamelistupdatemessage(); + bool has_gamelistupdatemessage() const; + void clear_gamelistupdatemessage(); static const int kGameListUpdateMessageFieldNumber = 15; - inline const ::GameListUpdateMessage& gamelistupdatemessage() const; - inline ::GameListUpdateMessage* mutable_gamelistupdatemessage(); - inline ::GameListUpdateMessage* release_gamelistupdatemessage(); - inline void set_allocated_gamelistupdatemessage(::GameListUpdateMessage* gamelistupdatemessage); + const ::GameListUpdateMessage& gamelistupdatemessage() const; + ::GameListUpdateMessage* release_gamelistupdatemessage(); + ::GameListUpdateMessage* mutable_gamelistupdatemessage(); + void set_allocated_gamelistupdatemessage(::GameListUpdateMessage* gamelistupdatemessage); // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; - inline bool has_gamelistplayerjoinedmessage() const; - inline void clear_gamelistplayerjoinedmessage(); + bool has_gamelistplayerjoinedmessage() const; + void clear_gamelistplayerjoinedmessage(); static const int kGameListPlayerJoinedMessageFieldNumber = 16; - inline const ::GameListPlayerJoinedMessage& gamelistplayerjoinedmessage() const; - inline ::GameListPlayerJoinedMessage* mutable_gamelistplayerjoinedmessage(); - inline ::GameListPlayerJoinedMessage* release_gamelistplayerjoinedmessage(); - inline void set_allocated_gamelistplayerjoinedmessage(::GameListPlayerJoinedMessage* gamelistplayerjoinedmessage); + const ::GameListPlayerJoinedMessage& gamelistplayerjoinedmessage() const; + ::GameListPlayerJoinedMessage* release_gamelistplayerjoinedmessage(); + ::GameListPlayerJoinedMessage* mutable_gamelistplayerjoinedmessage(); + void set_allocated_gamelistplayerjoinedmessage(::GameListPlayerJoinedMessage* gamelistplayerjoinedmessage); // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; - inline bool has_gamelistplayerleftmessage() const; - inline void clear_gamelistplayerleftmessage(); + bool has_gamelistplayerleftmessage() const; + void clear_gamelistplayerleftmessage(); static const int kGameListPlayerLeftMessageFieldNumber = 17; - inline const ::GameListPlayerLeftMessage& gamelistplayerleftmessage() const; - inline ::GameListPlayerLeftMessage* mutable_gamelistplayerleftmessage(); - inline ::GameListPlayerLeftMessage* release_gamelistplayerleftmessage(); - inline void set_allocated_gamelistplayerleftmessage(::GameListPlayerLeftMessage* gamelistplayerleftmessage); + const ::GameListPlayerLeftMessage& gamelistplayerleftmessage() const; + ::GameListPlayerLeftMessage* release_gamelistplayerleftmessage(); + ::GameListPlayerLeftMessage* mutable_gamelistplayerleftmessage(); + void set_allocated_gamelistplayerleftmessage(::GameListPlayerLeftMessage* gamelistplayerleftmessage); // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; - inline bool has_gamelistadminchangedmessage() const; - inline void clear_gamelistadminchangedmessage(); + bool has_gamelistadminchangedmessage() const; + void clear_gamelistadminchangedmessage(); static const int kGameListAdminChangedMessageFieldNumber = 18; - inline const ::GameListAdminChangedMessage& gamelistadminchangedmessage() const; - inline ::GameListAdminChangedMessage* mutable_gamelistadminchangedmessage(); - inline ::GameListAdminChangedMessage* release_gamelistadminchangedmessage(); - inline void set_allocated_gamelistadminchangedmessage(::GameListAdminChangedMessage* gamelistadminchangedmessage); + const ::GameListAdminChangedMessage& gamelistadminchangedmessage() const; + ::GameListAdminChangedMessage* release_gamelistadminchangedmessage(); + ::GameListAdminChangedMessage* mutable_gamelistadminchangedmessage(); + void set_allocated_gamelistadminchangedmessage(::GameListAdminChangedMessage* gamelistadminchangedmessage); // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; - inline bool has_playerinforequestmessage() const; - inline void clear_playerinforequestmessage(); + bool has_playerinforequestmessage() const; + void clear_playerinforequestmessage(); static const int kPlayerInfoRequestMessageFieldNumber = 19; - inline const ::PlayerInfoRequestMessage& playerinforequestmessage() const; - inline ::PlayerInfoRequestMessage* mutable_playerinforequestmessage(); - inline ::PlayerInfoRequestMessage* release_playerinforequestmessage(); - inline void set_allocated_playerinforequestmessage(::PlayerInfoRequestMessage* playerinforequestmessage); + const ::PlayerInfoRequestMessage& playerinforequestmessage() const; + ::PlayerInfoRequestMessage* release_playerinforequestmessage(); + ::PlayerInfoRequestMessage* mutable_playerinforequestmessage(); + void set_allocated_playerinforequestmessage(::PlayerInfoRequestMessage* playerinforequestmessage); // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; - inline bool has_playerinforeplymessage() const; - inline void clear_playerinforeplymessage(); + bool has_playerinforeplymessage() const; + void clear_playerinforeplymessage(); static const int kPlayerInfoReplyMessageFieldNumber = 20; - inline const ::PlayerInfoReplyMessage& playerinforeplymessage() const; - inline ::PlayerInfoReplyMessage* mutable_playerinforeplymessage(); - inline ::PlayerInfoReplyMessage* release_playerinforeplymessage(); - inline void set_allocated_playerinforeplymessage(::PlayerInfoReplyMessage* playerinforeplymessage); + const ::PlayerInfoReplyMessage& playerinforeplymessage() const; + ::PlayerInfoReplyMessage* release_playerinforeplymessage(); + ::PlayerInfoReplyMessage* mutable_playerinforeplymessage(); + void set_allocated_playerinforeplymessage(::PlayerInfoReplyMessage* playerinforeplymessage); // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; - inline bool has_subscriptionrequestmessage() const; - inline void clear_subscriptionrequestmessage(); + bool has_subscriptionrequestmessage() const; + void clear_subscriptionrequestmessage(); static const int kSubscriptionRequestMessageFieldNumber = 21; - inline const ::SubscriptionRequestMessage& subscriptionrequestmessage() const; - inline ::SubscriptionRequestMessage* mutable_subscriptionrequestmessage(); - inline ::SubscriptionRequestMessage* release_subscriptionrequestmessage(); - inline void set_allocated_subscriptionrequestmessage(::SubscriptionRequestMessage* subscriptionrequestmessage); + const ::SubscriptionRequestMessage& subscriptionrequestmessage() const; + ::SubscriptionRequestMessage* release_subscriptionrequestmessage(); + ::SubscriptionRequestMessage* mutable_subscriptionrequestmessage(); + void set_allocated_subscriptionrequestmessage(::SubscriptionRequestMessage* subscriptionrequestmessage); // optional .JoinExistingGameMessage joinExistingGameMessage = 22; - inline bool has_joinexistinggamemessage() const; - inline void clear_joinexistinggamemessage(); + bool has_joinexistinggamemessage() const; + void clear_joinexistinggamemessage(); static const int kJoinExistingGameMessageFieldNumber = 22; - inline const ::JoinExistingGameMessage& joinexistinggamemessage() const; - inline ::JoinExistingGameMessage* mutable_joinexistinggamemessage(); - inline ::JoinExistingGameMessage* release_joinexistinggamemessage(); - inline void set_allocated_joinexistinggamemessage(::JoinExistingGameMessage* joinexistinggamemessage); + const ::JoinExistingGameMessage& joinexistinggamemessage() const; + ::JoinExistingGameMessage* release_joinexistinggamemessage(); + ::JoinExistingGameMessage* mutable_joinexistinggamemessage(); + void set_allocated_joinexistinggamemessage(::JoinExistingGameMessage* joinexistinggamemessage); // optional .JoinNewGameMessage joinNewGameMessage = 23; - inline bool has_joinnewgamemessage() const; - inline void clear_joinnewgamemessage(); + bool has_joinnewgamemessage() const; + void clear_joinnewgamemessage(); static const int kJoinNewGameMessageFieldNumber = 23; - inline const ::JoinNewGameMessage& joinnewgamemessage() const; - inline ::JoinNewGameMessage* mutable_joinnewgamemessage(); - inline ::JoinNewGameMessage* release_joinnewgamemessage(); - inline void set_allocated_joinnewgamemessage(::JoinNewGameMessage* joinnewgamemessage); + const ::JoinNewGameMessage& joinnewgamemessage() const; + ::JoinNewGameMessage* release_joinnewgamemessage(); + ::JoinNewGameMessage* mutable_joinnewgamemessage(); + void set_allocated_joinnewgamemessage(::JoinNewGameMessage* joinnewgamemessage); // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; - inline bool has_rejoinexistinggamemessage() const; - inline void clear_rejoinexistinggamemessage(); + bool has_rejoinexistinggamemessage() const; + void clear_rejoinexistinggamemessage(); static const int kRejoinExistingGameMessageFieldNumber = 24; - inline const ::RejoinExistingGameMessage& rejoinexistinggamemessage() const; - inline ::RejoinExistingGameMessage* mutable_rejoinexistinggamemessage(); - inline ::RejoinExistingGameMessage* release_rejoinexistinggamemessage(); - inline void set_allocated_rejoinexistinggamemessage(::RejoinExistingGameMessage* rejoinexistinggamemessage); + const ::RejoinExistingGameMessage& rejoinexistinggamemessage() const; + ::RejoinExistingGameMessage* release_rejoinexistinggamemessage(); + ::RejoinExistingGameMessage* mutable_rejoinexistinggamemessage(); + void set_allocated_rejoinexistinggamemessage(::RejoinExistingGameMessage* rejoinexistinggamemessage); // optional .JoinGameAckMessage joinGameAckMessage = 25; - inline bool has_joingameackmessage() const; - inline void clear_joingameackmessage(); + bool has_joingameackmessage() const; + void clear_joingameackmessage(); static const int kJoinGameAckMessageFieldNumber = 25; - inline const ::JoinGameAckMessage& joingameackmessage() const; - inline ::JoinGameAckMessage* mutable_joingameackmessage(); - inline ::JoinGameAckMessage* release_joingameackmessage(); - inline void set_allocated_joingameackmessage(::JoinGameAckMessage* joingameackmessage); + const ::JoinGameAckMessage& joingameackmessage() const; + ::JoinGameAckMessage* release_joingameackmessage(); + ::JoinGameAckMessage* mutable_joingameackmessage(); + void set_allocated_joingameackmessage(::JoinGameAckMessage* joingameackmessage); // optional .JoinGameFailedMessage joinGameFailedMessage = 26; - inline bool has_joingamefailedmessage() const; - inline void clear_joingamefailedmessage(); + bool has_joingamefailedmessage() const; + void clear_joingamefailedmessage(); static const int kJoinGameFailedMessageFieldNumber = 26; - inline const ::JoinGameFailedMessage& joingamefailedmessage() const; - inline ::JoinGameFailedMessage* mutable_joingamefailedmessage(); - inline ::JoinGameFailedMessage* release_joingamefailedmessage(); - inline void set_allocated_joingamefailedmessage(::JoinGameFailedMessage* joingamefailedmessage); + const ::JoinGameFailedMessage& joingamefailedmessage() const; + ::JoinGameFailedMessage* release_joingamefailedmessage(); + ::JoinGameFailedMessage* mutable_joingamefailedmessage(); + void set_allocated_joingamefailedmessage(::JoinGameFailedMessage* joingamefailedmessage); // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; - inline bool has_gameplayerjoinedmessage() const; - inline void clear_gameplayerjoinedmessage(); + bool has_gameplayerjoinedmessage() const; + void clear_gameplayerjoinedmessage(); static const int kGamePlayerJoinedMessageFieldNumber = 27; - inline const ::GamePlayerJoinedMessage& gameplayerjoinedmessage() const; - inline ::GamePlayerJoinedMessage* mutable_gameplayerjoinedmessage(); - inline ::GamePlayerJoinedMessage* release_gameplayerjoinedmessage(); - inline void set_allocated_gameplayerjoinedmessage(::GamePlayerJoinedMessage* gameplayerjoinedmessage); + const ::GamePlayerJoinedMessage& gameplayerjoinedmessage() const; + ::GamePlayerJoinedMessage* release_gameplayerjoinedmessage(); + ::GamePlayerJoinedMessage* mutable_gameplayerjoinedmessage(); + void set_allocated_gameplayerjoinedmessage(::GamePlayerJoinedMessage* gameplayerjoinedmessage); // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; - inline bool has_gameplayerleftmessage() const; - inline void clear_gameplayerleftmessage(); + bool has_gameplayerleftmessage() const; + void clear_gameplayerleftmessage(); static const int kGamePlayerLeftMessageFieldNumber = 28; - inline const ::GamePlayerLeftMessage& gameplayerleftmessage() const; - inline ::GamePlayerLeftMessage* mutable_gameplayerleftmessage(); - inline ::GamePlayerLeftMessage* release_gameplayerleftmessage(); - inline void set_allocated_gameplayerleftmessage(::GamePlayerLeftMessage* gameplayerleftmessage); + const ::GamePlayerLeftMessage& gameplayerleftmessage() const; + ::GamePlayerLeftMessage* release_gameplayerleftmessage(); + ::GamePlayerLeftMessage* mutable_gameplayerleftmessage(); + void set_allocated_gameplayerleftmessage(::GamePlayerLeftMessage* gameplayerleftmessage); // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; - inline bool has_gameadminchangedmessage() const; - inline void clear_gameadminchangedmessage(); + bool has_gameadminchangedmessage() const; + void clear_gameadminchangedmessage(); static const int kGameAdminChangedMessageFieldNumber = 29; - inline const ::GameAdminChangedMessage& gameadminchangedmessage() const; - inline ::GameAdminChangedMessage* mutable_gameadminchangedmessage(); - inline ::GameAdminChangedMessage* release_gameadminchangedmessage(); - inline void set_allocated_gameadminchangedmessage(::GameAdminChangedMessage* gameadminchangedmessage); + const ::GameAdminChangedMessage& gameadminchangedmessage() const; + ::GameAdminChangedMessage* release_gameadminchangedmessage(); + ::GameAdminChangedMessage* mutable_gameadminchangedmessage(); + void set_allocated_gameadminchangedmessage(::GameAdminChangedMessage* gameadminchangedmessage); // optional .RemovedFromGameMessage removedFromGameMessage = 30; - inline bool has_removedfromgamemessage() const; - inline void clear_removedfromgamemessage(); + bool has_removedfromgamemessage() const; + void clear_removedfromgamemessage(); static const int kRemovedFromGameMessageFieldNumber = 30; - inline const ::RemovedFromGameMessage& removedfromgamemessage() const; - inline ::RemovedFromGameMessage* mutable_removedfromgamemessage(); - inline ::RemovedFromGameMessage* release_removedfromgamemessage(); - inline void set_allocated_removedfromgamemessage(::RemovedFromGameMessage* removedfromgamemessage); + const ::RemovedFromGameMessage& removedfromgamemessage() const; + ::RemovedFromGameMessage* release_removedfromgamemessage(); + ::RemovedFromGameMessage* mutable_removedfromgamemessage(); + void set_allocated_removedfromgamemessage(::RemovedFromGameMessage* removedfromgamemessage); // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; - inline bool has_kickplayerrequestmessage() const; - inline void clear_kickplayerrequestmessage(); + bool has_kickplayerrequestmessage() const; + void clear_kickplayerrequestmessage(); static const int kKickPlayerRequestMessageFieldNumber = 31; - inline const ::KickPlayerRequestMessage& kickplayerrequestmessage() const; - inline ::KickPlayerRequestMessage* mutable_kickplayerrequestmessage(); - inline ::KickPlayerRequestMessage* release_kickplayerrequestmessage(); - inline void set_allocated_kickplayerrequestmessage(::KickPlayerRequestMessage* kickplayerrequestmessage); + const ::KickPlayerRequestMessage& kickplayerrequestmessage() const; + ::KickPlayerRequestMessage* release_kickplayerrequestmessage(); + ::KickPlayerRequestMessage* mutable_kickplayerrequestmessage(); + void set_allocated_kickplayerrequestmessage(::KickPlayerRequestMessage* kickplayerrequestmessage); // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; - inline bool has_leavegamerequestmessage() const; - inline void clear_leavegamerequestmessage(); + bool has_leavegamerequestmessage() const; + void clear_leavegamerequestmessage(); static const int kLeaveGameRequestMessageFieldNumber = 32; - inline const ::LeaveGameRequestMessage& leavegamerequestmessage() const; - inline ::LeaveGameRequestMessage* mutable_leavegamerequestmessage(); - inline ::LeaveGameRequestMessage* release_leavegamerequestmessage(); - inline void set_allocated_leavegamerequestmessage(::LeaveGameRequestMessage* leavegamerequestmessage); + const ::LeaveGameRequestMessage& leavegamerequestmessage() const; + ::LeaveGameRequestMessage* release_leavegamerequestmessage(); + ::LeaveGameRequestMessage* mutable_leavegamerequestmessage(); + void set_allocated_leavegamerequestmessage(::LeaveGameRequestMessage* leavegamerequestmessage); // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; - inline bool has_inviteplayertogamemessage() const; - inline void clear_inviteplayertogamemessage(); + bool has_inviteplayertogamemessage() const; + void clear_inviteplayertogamemessage(); static const int kInvitePlayerToGameMessageFieldNumber = 33; - inline const ::InvitePlayerToGameMessage& inviteplayertogamemessage() const; - inline ::InvitePlayerToGameMessage* mutable_inviteplayertogamemessage(); - inline ::InvitePlayerToGameMessage* release_inviteplayertogamemessage(); - inline void set_allocated_inviteplayertogamemessage(::InvitePlayerToGameMessage* inviteplayertogamemessage); + const ::InvitePlayerToGameMessage& inviteplayertogamemessage() const; + ::InvitePlayerToGameMessage* release_inviteplayertogamemessage(); + ::InvitePlayerToGameMessage* mutable_inviteplayertogamemessage(); + void set_allocated_inviteplayertogamemessage(::InvitePlayerToGameMessage* inviteplayertogamemessage); // optional .InviteNotifyMessage inviteNotifyMessage = 34; - inline bool has_invitenotifymessage() const; - inline void clear_invitenotifymessage(); + bool has_invitenotifymessage() const; + void clear_invitenotifymessage(); static const int kInviteNotifyMessageFieldNumber = 34; - inline const ::InviteNotifyMessage& invitenotifymessage() const; - inline ::InviteNotifyMessage* mutable_invitenotifymessage(); - inline ::InviteNotifyMessage* release_invitenotifymessage(); - inline void set_allocated_invitenotifymessage(::InviteNotifyMessage* invitenotifymessage); + const ::InviteNotifyMessage& invitenotifymessage() const; + ::InviteNotifyMessage* release_invitenotifymessage(); + ::InviteNotifyMessage* mutable_invitenotifymessage(); + void set_allocated_invitenotifymessage(::InviteNotifyMessage* invitenotifymessage); // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; - inline bool has_rejectgameinvitationmessage() const; - inline void clear_rejectgameinvitationmessage(); + bool has_rejectgameinvitationmessage() const; + void clear_rejectgameinvitationmessage(); static const int kRejectGameInvitationMessageFieldNumber = 35; - inline const ::RejectGameInvitationMessage& rejectgameinvitationmessage() const; - inline ::RejectGameInvitationMessage* mutable_rejectgameinvitationmessage(); - inline ::RejectGameInvitationMessage* release_rejectgameinvitationmessage(); - inline void set_allocated_rejectgameinvitationmessage(::RejectGameInvitationMessage* rejectgameinvitationmessage); + const ::RejectGameInvitationMessage& rejectgameinvitationmessage() const; + ::RejectGameInvitationMessage* release_rejectgameinvitationmessage(); + ::RejectGameInvitationMessage* mutable_rejectgameinvitationmessage(); + void set_allocated_rejectgameinvitationmessage(::RejectGameInvitationMessage* rejectgameinvitationmessage); // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; - inline bool has_rejectinvnotifymessage() const; - inline void clear_rejectinvnotifymessage(); + bool has_rejectinvnotifymessage() const; + void clear_rejectinvnotifymessage(); static const int kRejectInvNotifyMessageFieldNumber = 36; - inline const ::RejectInvNotifyMessage& rejectinvnotifymessage() const; - inline ::RejectInvNotifyMessage* mutable_rejectinvnotifymessage(); - inline ::RejectInvNotifyMessage* release_rejectinvnotifymessage(); - inline void set_allocated_rejectinvnotifymessage(::RejectInvNotifyMessage* rejectinvnotifymessage); + const ::RejectInvNotifyMessage& rejectinvnotifymessage() const; + ::RejectInvNotifyMessage* release_rejectinvnotifymessage(); + ::RejectInvNotifyMessage* mutable_rejectinvnotifymessage(); + void set_allocated_rejectinvnotifymessage(::RejectInvNotifyMessage* rejectinvnotifymessage); // optional .StartEventMessage startEventMessage = 37; - inline bool has_starteventmessage() const; - inline void clear_starteventmessage(); + bool has_starteventmessage() const; + void clear_starteventmessage(); static const int kStartEventMessageFieldNumber = 37; - inline const ::StartEventMessage& starteventmessage() const; - inline ::StartEventMessage* mutable_starteventmessage(); - inline ::StartEventMessage* release_starteventmessage(); - inline void set_allocated_starteventmessage(::StartEventMessage* starteventmessage); + const ::StartEventMessage& starteventmessage() const; + ::StartEventMessage* release_starteventmessage(); + ::StartEventMessage* mutable_starteventmessage(); + void set_allocated_starteventmessage(::StartEventMessage* starteventmessage); // optional .StartEventAckMessage startEventAckMessage = 38; - inline bool has_starteventackmessage() const; - inline void clear_starteventackmessage(); + bool has_starteventackmessage() const; + void clear_starteventackmessage(); static const int kStartEventAckMessageFieldNumber = 38; - inline const ::StartEventAckMessage& starteventackmessage() const; - inline ::StartEventAckMessage* mutable_starteventackmessage(); - inline ::StartEventAckMessage* release_starteventackmessage(); - inline void set_allocated_starteventackmessage(::StartEventAckMessage* starteventackmessage); + const ::StartEventAckMessage& starteventackmessage() const; + ::StartEventAckMessage* release_starteventackmessage(); + ::StartEventAckMessage* mutable_starteventackmessage(); + void set_allocated_starteventackmessage(::StartEventAckMessage* starteventackmessage); // optional .GameStartInitialMessage gameStartInitialMessage = 39; - inline bool has_gamestartinitialmessage() const; - inline void clear_gamestartinitialmessage(); + bool has_gamestartinitialmessage() const; + void clear_gamestartinitialmessage(); static const int kGameStartInitialMessageFieldNumber = 39; - inline const ::GameStartInitialMessage& gamestartinitialmessage() const; - inline ::GameStartInitialMessage* mutable_gamestartinitialmessage(); - inline ::GameStartInitialMessage* release_gamestartinitialmessage(); - inline void set_allocated_gamestartinitialmessage(::GameStartInitialMessage* gamestartinitialmessage); + const ::GameStartInitialMessage& gamestartinitialmessage() const; + ::GameStartInitialMessage* release_gamestartinitialmessage(); + ::GameStartInitialMessage* mutable_gamestartinitialmessage(); + void set_allocated_gamestartinitialmessage(::GameStartInitialMessage* gamestartinitialmessage); // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; - inline bool has_gamestartrejoinmessage() const; - inline void clear_gamestartrejoinmessage(); + bool has_gamestartrejoinmessage() const; + void clear_gamestartrejoinmessage(); static const int kGameStartRejoinMessageFieldNumber = 40; - inline const ::GameStartRejoinMessage& gamestartrejoinmessage() const; - inline ::GameStartRejoinMessage* mutable_gamestartrejoinmessage(); - inline ::GameStartRejoinMessage* release_gamestartrejoinmessage(); - inline void set_allocated_gamestartrejoinmessage(::GameStartRejoinMessage* gamestartrejoinmessage); + const ::GameStartRejoinMessage& gamestartrejoinmessage() const; + ::GameStartRejoinMessage* release_gamestartrejoinmessage(); + ::GameStartRejoinMessage* mutable_gamestartrejoinmessage(); + void set_allocated_gamestartrejoinmessage(::GameStartRejoinMessage* gamestartrejoinmessage); // optional .HandStartMessage handStartMessage = 41; - inline bool has_handstartmessage() const; - inline void clear_handstartmessage(); + bool has_handstartmessage() const; + void clear_handstartmessage(); static const int kHandStartMessageFieldNumber = 41; - inline const ::HandStartMessage& handstartmessage() const; - inline ::HandStartMessage* mutable_handstartmessage(); - inline ::HandStartMessage* release_handstartmessage(); - inline void set_allocated_handstartmessage(::HandStartMessage* handstartmessage); + const ::HandStartMessage& handstartmessage() const; + ::HandStartMessage* release_handstartmessage(); + ::HandStartMessage* mutable_handstartmessage(); + void set_allocated_handstartmessage(::HandStartMessage* handstartmessage); // optional .PlayersTurnMessage playersTurnMessage = 42; - inline bool has_playersturnmessage() const; - inline void clear_playersturnmessage(); + bool has_playersturnmessage() const; + void clear_playersturnmessage(); static const int kPlayersTurnMessageFieldNumber = 42; - inline const ::PlayersTurnMessage& playersturnmessage() const; - inline ::PlayersTurnMessage* mutable_playersturnmessage(); - inline ::PlayersTurnMessage* release_playersturnmessage(); - inline void set_allocated_playersturnmessage(::PlayersTurnMessage* playersturnmessage); + const ::PlayersTurnMessage& playersturnmessage() const; + ::PlayersTurnMessage* release_playersturnmessage(); + ::PlayersTurnMessage* mutable_playersturnmessage(); + void set_allocated_playersturnmessage(::PlayersTurnMessage* playersturnmessage); // optional .MyActionRequestMessage myActionRequestMessage = 43; - inline bool has_myactionrequestmessage() const; - inline void clear_myactionrequestmessage(); + bool has_myactionrequestmessage() const; + void clear_myactionrequestmessage(); static const int kMyActionRequestMessageFieldNumber = 43; - inline const ::MyActionRequestMessage& myactionrequestmessage() const; - inline ::MyActionRequestMessage* mutable_myactionrequestmessage(); - inline ::MyActionRequestMessage* release_myactionrequestmessage(); - inline void set_allocated_myactionrequestmessage(::MyActionRequestMessage* myactionrequestmessage); + const ::MyActionRequestMessage& myactionrequestmessage() const; + ::MyActionRequestMessage* release_myactionrequestmessage(); + ::MyActionRequestMessage* mutable_myactionrequestmessage(); + void set_allocated_myactionrequestmessage(::MyActionRequestMessage* myactionrequestmessage); // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; - inline bool has_youractionrejectedmessage() const; - inline void clear_youractionrejectedmessage(); + bool has_youractionrejectedmessage() const; + void clear_youractionrejectedmessage(); static const int kYourActionRejectedMessageFieldNumber = 44; - inline const ::YourActionRejectedMessage& youractionrejectedmessage() const; - inline ::YourActionRejectedMessage* mutable_youractionrejectedmessage(); - inline ::YourActionRejectedMessage* release_youractionrejectedmessage(); - inline void set_allocated_youractionrejectedmessage(::YourActionRejectedMessage* youractionrejectedmessage); + const ::YourActionRejectedMessage& youractionrejectedmessage() const; + ::YourActionRejectedMessage* release_youractionrejectedmessage(); + ::YourActionRejectedMessage* mutable_youractionrejectedmessage(); + void set_allocated_youractionrejectedmessage(::YourActionRejectedMessage* youractionrejectedmessage); // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; - inline bool has_playersactiondonemessage() const; - inline void clear_playersactiondonemessage(); + bool has_playersactiondonemessage() const; + void clear_playersactiondonemessage(); static const int kPlayersActionDoneMessageFieldNumber = 45; - inline const ::PlayersActionDoneMessage& playersactiondonemessage() const; - inline ::PlayersActionDoneMessage* mutable_playersactiondonemessage(); - inline ::PlayersActionDoneMessage* release_playersactiondonemessage(); - inline void set_allocated_playersactiondonemessage(::PlayersActionDoneMessage* playersactiondonemessage); + const ::PlayersActionDoneMessage& playersactiondonemessage() const; + ::PlayersActionDoneMessage* release_playersactiondonemessage(); + ::PlayersActionDoneMessage* mutable_playersactiondonemessage(); + void set_allocated_playersactiondonemessage(::PlayersActionDoneMessage* playersactiondonemessage); // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; - inline bool has_dealflopcardsmessage() const; - inline void clear_dealflopcardsmessage(); + bool has_dealflopcardsmessage() const; + void clear_dealflopcardsmessage(); static const int kDealFlopCardsMessageFieldNumber = 46; - inline const ::DealFlopCardsMessage& dealflopcardsmessage() const; - inline ::DealFlopCardsMessage* mutable_dealflopcardsmessage(); - inline ::DealFlopCardsMessage* release_dealflopcardsmessage(); - inline void set_allocated_dealflopcardsmessage(::DealFlopCardsMessage* dealflopcardsmessage); + const ::DealFlopCardsMessage& dealflopcardsmessage() const; + ::DealFlopCardsMessage* release_dealflopcardsmessage(); + ::DealFlopCardsMessage* mutable_dealflopcardsmessage(); + void set_allocated_dealflopcardsmessage(::DealFlopCardsMessage* dealflopcardsmessage); // optional .DealTurnCardMessage dealTurnCardMessage = 47; - inline bool has_dealturncardmessage() const; - inline void clear_dealturncardmessage(); + bool has_dealturncardmessage() const; + void clear_dealturncardmessage(); static const int kDealTurnCardMessageFieldNumber = 47; - inline const ::DealTurnCardMessage& dealturncardmessage() const; - inline ::DealTurnCardMessage* mutable_dealturncardmessage(); - inline ::DealTurnCardMessage* release_dealturncardmessage(); - inline void set_allocated_dealturncardmessage(::DealTurnCardMessage* dealturncardmessage); + const ::DealTurnCardMessage& dealturncardmessage() const; + ::DealTurnCardMessage* release_dealturncardmessage(); + ::DealTurnCardMessage* mutable_dealturncardmessage(); + void set_allocated_dealturncardmessage(::DealTurnCardMessage* dealturncardmessage); // optional .DealRiverCardMessage dealRiverCardMessage = 48; - inline bool has_dealrivercardmessage() const; - inline void clear_dealrivercardmessage(); + bool has_dealrivercardmessage() const; + void clear_dealrivercardmessage(); static const int kDealRiverCardMessageFieldNumber = 48; - inline const ::DealRiverCardMessage& dealrivercardmessage() const; - inline ::DealRiverCardMessage* mutable_dealrivercardmessage(); - inline ::DealRiverCardMessage* release_dealrivercardmessage(); - inline void set_allocated_dealrivercardmessage(::DealRiverCardMessage* dealrivercardmessage); + const ::DealRiverCardMessage& dealrivercardmessage() const; + ::DealRiverCardMessage* release_dealrivercardmessage(); + ::DealRiverCardMessage* mutable_dealrivercardmessage(); + void set_allocated_dealrivercardmessage(::DealRiverCardMessage* dealrivercardmessage); // optional .AllInShowCardsMessage allInShowCardsMessage = 49; - inline bool has_allinshowcardsmessage() const; - inline void clear_allinshowcardsmessage(); + bool has_allinshowcardsmessage() const; + void clear_allinshowcardsmessage(); static const int kAllInShowCardsMessageFieldNumber = 49; - inline const ::AllInShowCardsMessage& allinshowcardsmessage() const; - inline ::AllInShowCardsMessage* mutable_allinshowcardsmessage(); - inline ::AllInShowCardsMessage* release_allinshowcardsmessage(); - inline void set_allocated_allinshowcardsmessage(::AllInShowCardsMessage* allinshowcardsmessage); + const ::AllInShowCardsMessage& allinshowcardsmessage() const; + ::AllInShowCardsMessage* release_allinshowcardsmessage(); + ::AllInShowCardsMessage* mutable_allinshowcardsmessage(); + void set_allocated_allinshowcardsmessage(::AllInShowCardsMessage* allinshowcardsmessage); // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; - inline bool has_endofhandshowcardsmessage() const; - inline void clear_endofhandshowcardsmessage(); + bool has_endofhandshowcardsmessage() const; + void clear_endofhandshowcardsmessage(); static const int kEndOfHandShowCardsMessageFieldNumber = 50; - inline const ::EndOfHandShowCardsMessage& endofhandshowcardsmessage() const; - inline ::EndOfHandShowCardsMessage* mutable_endofhandshowcardsmessage(); - inline ::EndOfHandShowCardsMessage* release_endofhandshowcardsmessage(); - inline void set_allocated_endofhandshowcardsmessage(::EndOfHandShowCardsMessage* endofhandshowcardsmessage); + const ::EndOfHandShowCardsMessage& endofhandshowcardsmessage() const; + ::EndOfHandShowCardsMessage* release_endofhandshowcardsmessage(); + ::EndOfHandShowCardsMessage* mutable_endofhandshowcardsmessage(); + void set_allocated_endofhandshowcardsmessage(::EndOfHandShowCardsMessage* endofhandshowcardsmessage); // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; - inline bool has_endofhandhidecardsmessage() const; - inline void clear_endofhandhidecardsmessage(); + bool has_endofhandhidecardsmessage() const; + void clear_endofhandhidecardsmessage(); static const int kEndOfHandHideCardsMessageFieldNumber = 51; - inline const ::EndOfHandHideCardsMessage& endofhandhidecardsmessage() const; - inline ::EndOfHandHideCardsMessage* mutable_endofhandhidecardsmessage(); - inline ::EndOfHandHideCardsMessage* release_endofhandhidecardsmessage(); - inline void set_allocated_endofhandhidecardsmessage(::EndOfHandHideCardsMessage* endofhandhidecardsmessage); + const ::EndOfHandHideCardsMessage& endofhandhidecardsmessage() const; + ::EndOfHandHideCardsMessage* release_endofhandhidecardsmessage(); + ::EndOfHandHideCardsMessage* mutable_endofhandhidecardsmessage(); + void set_allocated_endofhandhidecardsmessage(::EndOfHandHideCardsMessage* endofhandhidecardsmessage); // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; - inline bool has_showmycardsrequestmessage() const; - inline void clear_showmycardsrequestmessage(); + bool has_showmycardsrequestmessage() const; + void clear_showmycardsrequestmessage(); static const int kShowMyCardsRequestMessageFieldNumber = 52; - inline const ::ShowMyCardsRequestMessage& showmycardsrequestmessage() const; - inline ::ShowMyCardsRequestMessage* mutable_showmycardsrequestmessage(); - inline ::ShowMyCardsRequestMessage* release_showmycardsrequestmessage(); - inline void set_allocated_showmycardsrequestmessage(::ShowMyCardsRequestMessage* showmycardsrequestmessage); + const ::ShowMyCardsRequestMessage& showmycardsrequestmessage() const; + ::ShowMyCardsRequestMessage* release_showmycardsrequestmessage(); + ::ShowMyCardsRequestMessage* mutable_showmycardsrequestmessage(); + void set_allocated_showmycardsrequestmessage(::ShowMyCardsRequestMessage* showmycardsrequestmessage); // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; - inline bool has_afterhandshowcardsmessage() const; - inline void clear_afterhandshowcardsmessage(); + bool has_afterhandshowcardsmessage() const; + void clear_afterhandshowcardsmessage(); static const int kAfterHandShowCardsMessageFieldNumber = 53; - inline const ::AfterHandShowCardsMessage& afterhandshowcardsmessage() const; - inline ::AfterHandShowCardsMessage* mutable_afterhandshowcardsmessage(); - inline ::AfterHandShowCardsMessage* release_afterhandshowcardsmessage(); - inline void set_allocated_afterhandshowcardsmessage(::AfterHandShowCardsMessage* afterhandshowcardsmessage); + const ::AfterHandShowCardsMessage& afterhandshowcardsmessage() const; + ::AfterHandShowCardsMessage* release_afterhandshowcardsmessage(); + ::AfterHandShowCardsMessage* mutable_afterhandshowcardsmessage(); + void set_allocated_afterhandshowcardsmessage(::AfterHandShowCardsMessage* afterhandshowcardsmessage); // optional .EndOfGameMessage endOfGameMessage = 54; - inline bool has_endofgamemessage() const; - inline void clear_endofgamemessage(); + bool has_endofgamemessage() const; + void clear_endofgamemessage(); static const int kEndOfGameMessageFieldNumber = 54; - inline const ::EndOfGameMessage& endofgamemessage() const; - inline ::EndOfGameMessage* mutable_endofgamemessage(); - inline ::EndOfGameMessage* release_endofgamemessage(); - inline void set_allocated_endofgamemessage(::EndOfGameMessage* endofgamemessage); + const ::EndOfGameMessage& endofgamemessage() const; + ::EndOfGameMessage* release_endofgamemessage(); + ::EndOfGameMessage* mutable_endofgamemessage(); + void set_allocated_endofgamemessage(::EndOfGameMessage* endofgamemessage); // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; - inline bool has_playeridchangedmessage() const; - inline void clear_playeridchangedmessage(); + bool has_playeridchangedmessage() const; + void clear_playeridchangedmessage(); static const int kPlayerIdChangedMessageFieldNumber = 55; - inline const ::PlayerIdChangedMessage& playeridchangedmessage() const; - inline ::PlayerIdChangedMessage* mutable_playeridchangedmessage(); - inline ::PlayerIdChangedMessage* release_playeridchangedmessage(); - inline void set_allocated_playeridchangedmessage(::PlayerIdChangedMessage* playeridchangedmessage); + const ::PlayerIdChangedMessage& playeridchangedmessage() const; + ::PlayerIdChangedMessage* release_playeridchangedmessage(); + ::PlayerIdChangedMessage* mutable_playeridchangedmessage(); + void set_allocated_playeridchangedmessage(::PlayerIdChangedMessage* playeridchangedmessage); // optional .AskKickPlayerMessage askKickPlayerMessage = 56; - inline bool has_askkickplayermessage() const; - inline void clear_askkickplayermessage(); + bool has_askkickplayermessage() const; + void clear_askkickplayermessage(); static const int kAskKickPlayerMessageFieldNumber = 56; - inline const ::AskKickPlayerMessage& askkickplayermessage() const; - inline ::AskKickPlayerMessage* mutable_askkickplayermessage(); - inline ::AskKickPlayerMessage* release_askkickplayermessage(); - inline void set_allocated_askkickplayermessage(::AskKickPlayerMessage* askkickplayermessage); + const ::AskKickPlayerMessage& askkickplayermessage() const; + ::AskKickPlayerMessage* release_askkickplayermessage(); + ::AskKickPlayerMessage* mutable_askkickplayermessage(); + void set_allocated_askkickplayermessage(::AskKickPlayerMessage* askkickplayermessage); // optional .AskKickDeniedMessage askKickDeniedMessage = 57; - inline bool has_askkickdeniedmessage() const; - inline void clear_askkickdeniedmessage(); + bool has_askkickdeniedmessage() const; + void clear_askkickdeniedmessage(); static const int kAskKickDeniedMessageFieldNumber = 57; - inline const ::AskKickDeniedMessage& askkickdeniedmessage() const; - inline ::AskKickDeniedMessage* mutable_askkickdeniedmessage(); - inline ::AskKickDeniedMessage* release_askkickdeniedmessage(); - inline void set_allocated_askkickdeniedmessage(::AskKickDeniedMessage* askkickdeniedmessage); + const ::AskKickDeniedMessage& askkickdeniedmessage() const; + ::AskKickDeniedMessage* release_askkickdeniedmessage(); + ::AskKickDeniedMessage* mutable_askkickdeniedmessage(); + void set_allocated_askkickdeniedmessage(::AskKickDeniedMessage* askkickdeniedmessage); // optional .StartKickPetitionMessage startKickPetitionMessage = 58; - inline bool has_startkickpetitionmessage() const; - inline void clear_startkickpetitionmessage(); + bool has_startkickpetitionmessage() const; + void clear_startkickpetitionmessage(); static const int kStartKickPetitionMessageFieldNumber = 58; - inline const ::StartKickPetitionMessage& startkickpetitionmessage() const; - inline ::StartKickPetitionMessage* mutable_startkickpetitionmessage(); - inline ::StartKickPetitionMessage* release_startkickpetitionmessage(); - inline void set_allocated_startkickpetitionmessage(::StartKickPetitionMessage* startkickpetitionmessage); + const ::StartKickPetitionMessage& startkickpetitionmessage() const; + ::StartKickPetitionMessage* release_startkickpetitionmessage(); + ::StartKickPetitionMessage* mutable_startkickpetitionmessage(); + void set_allocated_startkickpetitionmessage(::StartKickPetitionMessage* startkickpetitionmessage); // optional .VoteKickRequestMessage voteKickRequestMessage = 59; - inline bool has_votekickrequestmessage() const; - inline void clear_votekickrequestmessage(); + bool has_votekickrequestmessage() const; + void clear_votekickrequestmessage(); static const int kVoteKickRequestMessageFieldNumber = 59; - inline const ::VoteKickRequestMessage& votekickrequestmessage() const; - inline ::VoteKickRequestMessage* mutable_votekickrequestmessage(); - inline ::VoteKickRequestMessage* release_votekickrequestmessage(); - inline void set_allocated_votekickrequestmessage(::VoteKickRequestMessage* votekickrequestmessage); + const ::VoteKickRequestMessage& votekickrequestmessage() const; + ::VoteKickRequestMessage* release_votekickrequestmessage(); + ::VoteKickRequestMessage* mutable_votekickrequestmessage(); + void set_allocated_votekickrequestmessage(::VoteKickRequestMessage* votekickrequestmessage); // optional .VoteKickReplyMessage voteKickReplyMessage = 60; - inline bool has_votekickreplymessage() const; - inline void clear_votekickreplymessage(); + bool has_votekickreplymessage() const; + void clear_votekickreplymessage(); static const int kVoteKickReplyMessageFieldNumber = 60; - inline const ::VoteKickReplyMessage& votekickreplymessage() const; - inline ::VoteKickReplyMessage* mutable_votekickreplymessage(); - inline ::VoteKickReplyMessage* release_votekickreplymessage(); - inline void set_allocated_votekickreplymessage(::VoteKickReplyMessage* votekickreplymessage); + const ::VoteKickReplyMessage& votekickreplymessage() const; + ::VoteKickReplyMessage* release_votekickreplymessage(); + ::VoteKickReplyMessage* mutable_votekickreplymessage(); + void set_allocated_votekickreplymessage(::VoteKickReplyMessage* votekickreplymessage); // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; - inline bool has_kickpetitionupdatemessage() const; - inline void clear_kickpetitionupdatemessage(); + bool has_kickpetitionupdatemessage() const; + void clear_kickpetitionupdatemessage(); static const int kKickPetitionUpdateMessageFieldNumber = 61; - inline const ::KickPetitionUpdateMessage& kickpetitionupdatemessage() const; - inline ::KickPetitionUpdateMessage* mutable_kickpetitionupdatemessage(); - inline ::KickPetitionUpdateMessage* release_kickpetitionupdatemessage(); - inline void set_allocated_kickpetitionupdatemessage(::KickPetitionUpdateMessage* kickpetitionupdatemessage); + const ::KickPetitionUpdateMessage& kickpetitionupdatemessage() const; + ::KickPetitionUpdateMessage* release_kickpetitionupdatemessage(); + ::KickPetitionUpdateMessage* mutable_kickpetitionupdatemessage(); + void set_allocated_kickpetitionupdatemessage(::KickPetitionUpdateMessage* kickpetitionupdatemessage); // optional .EndKickPetitionMessage endKickPetitionMessage = 62; - inline bool has_endkickpetitionmessage() const; - inline void clear_endkickpetitionmessage(); + bool has_endkickpetitionmessage() const; + void clear_endkickpetitionmessage(); static const int kEndKickPetitionMessageFieldNumber = 62; - inline const ::EndKickPetitionMessage& endkickpetitionmessage() const; - inline ::EndKickPetitionMessage* mutable_endkickpetitionmessage(); - inline ::EndKickPetitionMessage* release_endkickpetitionmessage(); - inline void set_allocated_endkickpetitionmessage(::EndKickPetitionMessage* endkickpetitionmessage); + const ::EndKickPetitionMessage& endkickpetitionmessage() const; + ::EndKickPetitionMessage* release_endkickpetitionmessage(); + ::EndKickPetitionMessage* mutable_endkickpetitionmessage(); + void set_allocated_endkickpetitionmessage(::EndKickPetitionMessage* endkickpetitionmessage); // optional .StatisticsMessage statisticsMessage = 63; - inline bool has_statisticsmessage() const; - inline void clear_statisticsmessage(); + bool has_statisticsmessage() const; + void clear_statisticsmessage(); static const int kStatisticsMessageFieldNumber = 63; - inline const ::StatisticsMessage& statisticsmessage() const; - inline ::StatisticsMessage* mutable_statisticsmessage(); - inline ::StatisticsMessage* release_statisticsmessage(); - inline void set_allocated_statisticsmessage(::StatisticsMessage* statisticsmessage); + const ::StatisticsMessage& statisticsmessage() const; + ::StatisticsMessage* release_statisticsmessage(); + ::StatisticsMessage* mutable_statisticsmessage(); + void set_allocated_statisticsmessage(::StatisticsMessage* statisticsmessage); // optional .ChatRequestMessage chatRequestMessage = 64; - inline bool has_chatrequestmessage() const; - inline void clear_chatrequestmessage(); + bool has_chatrequestmessage() const; + void clear_chatrequestmessage(); static const int kChatRequestMessageFieldNumber = 64; - inline const ::ChatRequestMessage& chatrequestmessage() const; - inline ::ChatRequestMessage* mutable_chatrequestmessage(); - inline ::ChatRequestMessage* release_chatrequestmessage(); - inline void set_allocated_chatrequestmessage(::ChatRequestMessage* chatrequestmessage); + const ::ChatRequestMessage& chatrequestmessage() const; + ::ChatRequestMessage* release_chatrequestmessage(); + ::ChatRequestMessage* mutable_chatrequestmessage(); + void set_allocated_chatrequestmessage(::ChatRequestMessage* chatrequestmessage); // optional .ChatMessage chatMessage = 65; - inline bool has_chatmessage() const; - inline void clear_chatmessage(); + bool has_chatmessage() const; + void clear_chatmessage(); static const int kChatMessageFieldNumber = 65; - inline const ::ChatMessage& chatmessage() const; - inline ::ChatMessage* mutable_chatmessage(); - inline ::ChatMessage* release_chatmessage(); - inline void set_allocated_chatmessage(::ChatMessage* chatmessage); + const ::ChatMessage& chatmessage() const; + ::ChatMessage* release_chatmessage(); + ::ChatMessage* mutable_chatmessage(); + void set_allocated_chatmessage(::ChatMessage* chatmessage); // optional .ChatRejectMessage chatRejectMessage = 66; - inline bool has_chatrejectmessage() const; - inline void clear_chatrejectmessage(); + bool has_chatrejectmessage() const; + void clear_chatrejectmessage(); static const int kChatRejectMessageFieldNumber = 66; - inline const ::ChatRejectMessage& chatrejectmessage() const; - inline ::ChatRejectMessage* mutable_chatrejectmessage(); - inline ::ChatRejectMessage* release_chatrejectmessage(); - inline void set_allocated_chatrejectmessage(::ChatRejectMessage* chatrejectmessage); + const ::ChatRejectMessage& chatrejectmessage() const; + ::ChatRejectMessage* release_chatrejectmessage(); + ::ChatRejectMessage* mutable_chatrejectmessage(); + void set_allocated_chatrejectmessage(::ChatRejectMessage* chatrejectmessage); // optional .DialogMessage dialogMessage = 67; - inline bool has_dialogmessage() const; - inline void clear_dialogmessage(); + bool has_dialogmessage() const; + void clear_dialogmessage(); static const int kDialogMessageFieldNumber = 67; - inline const ::DialogMessage& dialogmessage() const; - inline ::DialogMessage* mutable_dialogmessage(); - inline ::DialogMessage* release_dialogmessage(); - inline void set_allocated_dialogmessage(::DialogMessage* dialogmessage); + const ::DialogMessage& dialogmessage() const; + ::DialogMessage* release_dialogmessage(); + ::DialogMessage* mutable_dialogmessage(); + void set_allocated_dialogmessage(::DialogMessage* dialogmessage); // optional .TimeoutWarningMessage timeoutWarningMessage = 68; - inline bool has_timeoutwarningmessage() const; - inline void clear_timeoutwarningmessage(); + bool has_timeoutwarningmessage() const; + void clear_timeoutwarningmessage(); static const int kTimeoutWarningMessageFieldNumber = 68; - inline const ::TimeoutWarningMessage& timeoutwarningmessage() const; - inline ::TimeoutWarningMessage* mutable_timeoutwarningmessage(); - inline ::TimeoutWarningMessage* release_timeoutwarningmessage(); - inline void set_allocated_timeoutwarningmessage(::TimeoutWarningMessage* timeoutwarningmessage); + const ::TimeoutWarningMessage& timeoutwarningmessage() const; + ::TimeoutWarningMessage* release_timeoutwarningmessage(); + ::TimeoutWarningMessage* mutable_timeoutwarningmessage(); + void set_allocated_timeoutwarningmessage(::TimeoutWarningMessage* timeoutwarningmessage); // optional .ResetTimeoutMessage resetTimeoutMessage = 69; - inline bool has_resettimeoutmessage() const; - inline void clear_resettimeoutmessage(); + bool has_resettimeoutmessage() const; + void clear_resettimeoutmessage(); static const int kResetTimeoutMessageFieldNumber = 69; - inline const ::ResetTimeoutMessage& resettimeoutmessage() const; - inline ::ResetTimeoutMessage* mutable_resettimeoutmessage(); - inline ::ResetTimeoutMessage* release_resettimeoutmessage(); - inline void set_allocated_resettimeoutmessage(::ResetTimeoutMessage* resettimeoutmessage); + const ::ResetTimeoutMessage& resettimeoutmessage() const; + ::ResetTimeoutMessage* release_resettimeoutmessage(); + ::ResetTimeoutMessage* mutable_resettimeoutmessage(); + void set_allocated_resettimeoutmessage(::ResetTimeoutMessage* resettimeoutmessage); // optional .ReportAvatarMessage reportAvatarMessage = 70; - inline bool has_reportavatarmessage() const; - inline void clear_reportavatarmessage(); + bool has_reportavatarmessage() const; + void clear_reportavatarmessage(); static const int kReportAvatarMessageFieldNumber = 70; - inline const ::ReportAvatarMessage& reportavatarmessage() const; - inline ::ReportAvatarMessage* mutable_reportavatarmessage(); - inline ::ReportAvatarMessage* release_reportavatarmessage(); - inline void set_allocated_reportavatarmessage(::ReportAvatarMessage* reportavatarmessage); + const ::ReportAvatarMessage& reportavatarmessage() const; + ::ReportAvatarMessage* release_reportavatarmessage(); + ::ReportAvatarMessage* mutable_reportavatarmessage(); + void set_allocated_reportavatarmessage(::ReportAvatarMessage* reportavatarmessage); // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; - inline bool has_reportavatarackmessage() const; - inline void clear_reportavatarackmessage(); + bool has_reportavatarackmessage() const; + void clear_reportavatarackmessage(); static const int kReportAvatarAckMessageFieldNumber = 71; - inline const ::ReportAvatarAckMessage& reportavatarackmessage() const; - inline ::ReportAvatarAckMessage* mutable_reportavatarackmessage(); - inline ::ReportAvatarAckMessage* release_reportavatarackmessage(); - inline void set_allocated_reportavatarackmessage(::ReportAvatarAckMessage* reportavatarackmessage); + const ::ReportAvatarAckMessage& reportavatarackmessage() const; + ::ReportAvatarAckMessage* release_reportavatarackmessage(); + ::ReportAvatarAckMessage* mutable_reportavatarackmessage(); + void set_allocated_reportavatarackmessage(::ReportAvatarAckMessage* reportavatarackmessage); // optional .ReportGameMessage reportGameMessage = 72; - inline bool has_reportgamemessage() const; - inline void clear_reportgamemessage(); + bool has_reportgamemessage() const; + void clear_reportgamemessage(); static const int kReportGameMessageFieldNumber = 72; - inline const ::ReportGameMessage& reportgamemessage() const; - inline ::ReportGameMessage* mutable_reportgamemessage(); - inline ::ReportGameMessage* release_reportgamemessage(); - inline void set_allocated_reportgamemessage(::ReportGameMessage* reportgamemessage); + const ::ReportGameMessage& reportgamemessage() const; + ::ReportGameMessage* release_reportgamemessage(); + ::ReportGameMessage* mutable_reportgamemessage(); + void set_allocated_reportgamemessage(::ReportGameMessage* reportgamemessage); // optional .ReportGameAckMessage reportGameAckMessage = 73; - inline bool has_reportgameackmessage() const; - inline void clear_reportgameackmessage(); + bool has_reportgameackmessage() const; + void clear_reportgameackmessage(); static const int kReportGameAckMessageFieldNumber = 73; - inline const ::ReportGameAckMessage& reportgameackmessage() const; - inline ::ReportGameAckMessage* mutable_reportgameackmessage(); - inline ::ReportGameAckMessage* release_reportgameackmessage(); - inline void set_allocated_reportgameackmessage(::ReportGameAckMessage* reportgameackmessage); + const ::ReportGameAckMessage& reportgameackmessage() const; + ::ReportGameAckMessage* release_reportgameackmessage(); + ::ReportGameAckMessage* mutable_reportgameackmessage(); + void set_allocated_reportgameackmessage(::ReportGameAckMessage* reportgameackmessage); // optional .ErrorMessage errorMessage = 74; - inline bool has_errormessage() const; - inline void clear_errormessage(); + bool has_errormessage() const; + void clear_errormessage(); static const int kErrorMessageFieldNumber = 74; - inline const ::ErrorMessage& errormessage() const; - inline ::ErrorMessage* mutable_errormessage(); - inline ::ErrorMessage* release_errormessage(); - inline void set_allocated_errormessage(::ErrorMessage* errormessage); + const ::ErrorMessage& errormessage() const; + ::ErrorMessage* release_errormessage(); + ::ErrorMessage* mutable_errormessage(); + void set_allocated_errormessage(::ErrorMessage* errormessage); // optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; - inline bool has_adminremovegamemessage() const; - inline void clear_adminremovegamemessage(); + bool has_adminremovegamemessage() const; + void clear_adminremovegamemessage(); static const int kAdminRemoveGameMessageFieldNumber = 75; - inline const ::AdminRemoveGameMessage& adminremovegamemessage() const; - inline ::AdminRemoveGameMessage* mutable_adminremovegamemessage(); - inline ::AdminRemoveGameMessage* release_adminremovegamemessage(); - inline void set_allocated_adminremovegamemessage(::AdminRemoveGameMessage* adminremovegamemessage); + const ::AdminRemoveGameMessage& adminremovegamemessage() const; + ::AdminRemoveGameMessage* release_adminremovegamemessage(); + ::AdminRemoveGameMessage* mutable_adminremovegamemessage(); + void set_allocated_adminremovegamemessage(::AdminRemoveGameMessage* adminremovegamemessage); // optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; - inline bool has_adminremovegameackmessage() const; - inline void clear_adminremovegameackmessage(); + bool has_adminremovegameackmessage() const; + void clear_adminremovegameackmessage(); static const int kAdminRemoveGameAckMessageFieldNumber = 76; - inline const ::AdminRemoveGameAckMessage& adminremovegameackmessage() const; - inline ::AdminRemoveGameAckMessage* mutable_adminremovegameackmessage(); - inline ::AdminRemoveGameAckMessage* release_adminremovegameackmessage(); - inline void set_allocated_adminremovegameackmessage(::AdminRemoveGameAckMessage* adminremovegameackmessage); + const ::AdminRemoveGameAckMessage& adminremovegameackmessage() const; + ::AdminRemoveGameAckMessage* release_adminremovegameackmessage(); + ::AdminRemoveGameAckMessage* mutable_adminremovegameackmessage(); + void set_allocated_adminremovegameackmessage(::AdminRemoveGameAckMessage* adminremovegameackmessage); // optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; - inline bool has_adminbanplayermessage() const; - inline void clear_adminbanplayermessage(); + bool has_adminbanplayermessage() const; + void clear_adminbanplayermessage(); static const int kAdminBanPlayerMessageFieldNumber = 77; - inline const ::AdminBanPlayerMessage& adminbanplayermessage() const; - inline ::AdminBanPlayerMessage* mutable_adminbanplayermessage(); - inline ::AdminBanPlayerMessage* release_adminbanplayermessage(); - inline void set_allocated_adminbanplayermessage(::AdminBanPlayerMessage* adminbanplayermessage); + const ::AdminBanPlayerMessage& adminbanplayermessage() const; + ::AdminBanPlayerMessage* release_adminbanplayermessage(); + ::AdminBanPlayerMessage* mutable_adminbanplayermessage(); + void set_allocated_adminbanplayermessage(::AdminBanPlayerMessage* adminbanplayermessage); // optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; - inline bool has_adminbanplayerackmessage() const; - inline void clear_adminbanplayerackmessage(); + bool has_adminbanplayerackmessage() const; + void clear_adminbanplayerackmessage(); static const int kAdminBanPlayerAckMessageFieldNumber = 78; - inline const ::AdminBanPlayerAckMessage& adminbanplayerackmessage() const; - inline ::AdminBanPlayerAckMessage* mutable_adminbanplayerackmessage(); - inline ::AdminBanPlayerAckMessage* release_adminbanplayerackmessage(); - inline void set_allocated_adminbanplayerackmessage(::AdminBanPlayerAckMessage* adminbanplayerackmessage); + const ::AdminBanPlayerAckMessage& adminbanplayerackmessage() const; + ::AdminBanPlayerAckMessage* release_adminbanplayerackmessage(); + ::AdminBanPlayerAckMessage* mutable_adminbanplayerackmessage(); + void set_allocated_adminbanplayerackmessage(::AdminBanPlayerAckMessage* adminbanplayerackmessage); // optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; - inline bool has_gamelistspectatorjoinedmessage() const; - inline void clear_gamelistspectatorjoinedmessage(); + bool has_gamelistspectatorjoinedmessage() const; + void clear_gamelistspectatorjoinedmessage(); static const int kGameListSpectatorJoinedMessageFieldNumber = 79; - inline const ::GameListSpectatorJoinedMessage& gamelistspectatorjoinedmessage() const; - inline ::GameListSpectatorJoinedMessage* mutable_gamelistspectatorjoinedmessage(); - inline ::GameListSpectatorJoinedMessage* release_gamelistspectatorjoinedmessage(); - inline void set_allocated_gamelistspectatorjoinedmessage(::GameListSpectatorJoinedMessage* gamelistspectatorjoinedmessage); + const ::GameListSpectatorJoinedMessage& gamelistspectatorjoinedmessage() const; + ::GameListSpectatorJoinedMessage* release_gamelistspectatorjoinedmessage(); + ::GameListSpectatorJoinedMessage* mutable_gamelistspectatorjoinedmessage(); + void set_allocated_gamelistspectatorjoinedmessage(::GameListSpectatorJoinedMessage* gamelistspectatorjoinedmessage); // optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; - inline bool has_gamelistspectatorleftmessage() const; - inline void clear_gamelistspectatorleftmessage(); + bool has_gamelistspectatorleftmessage() const; + void clear_gamelistspectatorleftmessage(); static const int kGameListSpectatorLeftMessageFieldNumber = 80; - inline const ::GameListSpectatorLeftMessage& gamelistspectatorleftmessage() const; - inline ::GameListSpectatorLeftMessage* mutable_gamelistspectatorleftmessage(); - inline ::GameListSpectatorLeftMessage* release_gamelistspectatorleftmessage(); - inline void set_allocated_gamelistspectatorleftmessage(::GameListSpectatorLeftMessage* gamelistspectatorleftmessage); + const ::GameListSpectatorLeftMessage& gamelistspectatorleftmessage() const; + ::GameListSpectatorLeftMessage* release_gamelistspectatorleftmessage(); + ::GameListSpectatorLeftMessage* mutable_gamelistspectatorleftmessage(); + void set_allocated_gamelistspectatorleftmessage(::GameListSpectatorLeftMessage* gamelistspectatorleftmessage); // optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; - inline bool has_gamespectatorjoinedmessage() const; - inline void clear_gamespectatorjoinedmessage(); + bool has_gamespectatorjoinedmessage() const; + void clear_gamespectatorjoinedmessage(); static const int kGameSpectatorJoinedMessageFieldNumber = 81; - inline const ::GameSpectatorJoinedMessage& gamespectatorjoinedmessage() const; - inline ::GameSpectatorJoinedMessage* mutable_gamespectatorjoinedmessage(); - inline ::GameSpectatorJoinedMessage* release_gamespectatorjoinedmessage(); - inline void set_allocated_gamespectatorjoinedmessage(::GameSpectatorJoinedMessage* gamespectatorjoinedmessage); + const ::GameSpectatorJoinedMessage& gamespectatorjoinedmessage() const; + ::GameSpectatorJoinedMessage* release_gamespectatorjoinedmessage(); + ::GameSpectatorJoinedMessage* mutable_gamespectatorjoinedmessage(); + void set_allocated_gamespectatorjoinedmessage(::GameSpectatorJoinedMessage* gamespectatorjoinedmessage); // optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; - inline bool has_gamespectatorleftmessage() const; - inline void clear_gamespectatorleftmessage(); + bool has_gamespectatorleftmessage() const; + void clear_gamespectatorleftmessage(); static const int kGameSpectatorLeftMessageFieldNumber = 82; - inline const ::GameSpectatorLeftMessage& gamespectatorleftmessage() const; - inline ::GameSpectatorLeftMessage* mutable_gamespectatorleftmessage(); - inline ::GameSpectatorLeftMessage* release_gamespectatorleftmessage(); - inline void set_allocated_gamespectatorleftmessage(::GameSpectatorLeftMessage* gamespectatorleftmessage); + 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(); + static const int kMessageTypeFieldNumber = 1; + ::PokerTHMessage_PokerTHMessageType messagetype() const; + void set_messagetype(::PokerTHMessage_PokerTHMessageType value); // @@protoc_insertion_point(class_scope:PokerTHMessage) private: - inline void set_has_messagetype(); - inline void clear_has_messagetype(); - inline void set_has_announcemessage(); - inline void clear_has_announcemessage(); - inline void set_has_initmessage(); - inline void clear_has_initmessage(); - inline void set_has_authserverchallengemessage(); - inline void clear_has_authserverchallengemessage(); - inline void set_has_authclientresponsemessage(); - inline void clear_has_authclientresponsemessage(); - inline void set_has_authserververificationmessage(); - inline void clear_has_authserververificationmessage(); - inline void set_has_initackmessage(); - inline void clear_has_initackmessage(); - inline void set_has_avatarrequestmessage(); - inline void clear_has_avatarrequestmessage(); - inline void set_has_avatarheadermessage(); - inline void clear_has_avatarheadermessage(); - inline void set_has_avatardatamessage(); - inline void clear_has_avatardatamessage(); - inline void set_has_avatarendmessage(); - inline void clear_has_avatarendmessage(); - inline void set_has_unknownavatarmessage(); - inline void clear_has_unknownavatarmessage(); - inline void set_has_playerlistmessage(); - inline void clear_has_playerlistmessage(); - inline void set_has_gamelistnewmessage(); - inline void clear_has_gamelistnewmessage(); - inline void set_has_gamelistupdatemessage(); - inline void clear_has_gamelistupdatemessage(); - inline void set_has_gamelistplayerjoinedmessage(); - inline void clear_has_gamelistplayerjoinedmessage(); - inline void set_has_gamelistplayerleftmessage(); - inline void clear_has_gamelistplayerleftmessage(); - inline void set_has_gamelistadminchangedmessage(); - inline void clear_has_gamelistadminchangedmessage(); - inline void set_has_playerinforequestmessage(); - inline void clear_has_playerinforequestmessage(); - inline void set_has_playerinforeplymessage(); - inline void clear_has_playerinforeplymessage(); - inline void set_has_subscriptionrequestmessage(); - inline void clear_has_subscriptionrequestmessage(); - inline void set_has_joinexistinggamemessage(); - inline void clear_has_joinexistinggamemessage(); - inline void set_has_joinnewgamemessage(); - inline void clear_has_joinnewgamemessage(); - inline void set_has_rejoinexistinggamemessage(); - inline void clear_has_rejoinexistinggamemessage(); - inline void set_has_joingameackmessage(); - inline void clear_has_joingameackmessage(); - inline void set_has_joingamefailedmessage(); - inline void clear_has_joingamefailedmessage(); - inline void set_has_gameplayerjoinedmessage(); - inline void clear_has_gameplayerjoinedmessage(); - inline void set_has_gameplayerleftmessage(); - inline void clear_has_gameplayerleftmessage(); - inline void set_has_gameadminchangedmessage(); - inline void clear_has_gameadminchangedmessage(); - inline void set_has_removedfromgamemessage(); - inline void clear_has_removedfromgamemessage(); - inline void set_has_kickplayerrequestmessage(); - inline void clear_has_kickplayerrequestmessage(); - inline void set_has_leavegamerequestmessage(); - inline void clear_has_leavegamerequestmessage(); - inline void set_has_inviteplayertogamemessage(); - inline void clear_has_inviteplayertogamemessage(); - inline void set_has_invitenotifymessage(); - inline void clear_has_invitenotifymessage(); - inline void set_has_rejectgameinvitationmessage(); - inline void clear_has_rejectgameinvitationmessage(); - inline void set_has_rejectinvnotifymessage(); - inline void clear_has_rejectinvnotifymessage(); - inline void set_has_starteventmessage(); - inline void clear_has_starteventmessage(); - inline void set_has_starteventackmessage(); - inline void clear_has_starteventackmessage(); - inline void set_has_gamestartinitialmessage(); - inline void clear_has_gamestartinitialmessage(); - inline void set_has_gamestartrejoinmessage(); - inline void clear_has_gamestartrejoinmessage(); - inline void set_has_handstartmessage(); - inline void clear_has_handstartmessage(); - inline void set_has_playersturnmessage(); - inline void clear_has_playersturnmessage(); - inline void set_has_myactionrequestmessage(); - inline void clear_has_myactionrequestmessage(); - inline void set_has_youractionrejectedmessage(); - inline void clear_has_youractionrejectedmessage(); - inline void set_has_playersactiondonemessage(); - inline void clear_has_playersactiondonemessage(); - inline void set_has_dealflopcardsmessage(); - inline void clear_has_dealflopcardsmessage(); - inline void set_has_dealturncardmessage(); - inline void clear_has_dealturncardmessage(); - inline void set_has_dealrivercardmessage(); - inline void clear_has_dealrivercardmessage(); - inline void set_has_allinshowcardsmessage(); - inline void clear_has_allinshowcardsmessage(); - inline void set_has_endofhandshowcardsmessage(); - inline void clear_has_endofhandshowcardsmessage(); - inline void set_has_endofhandhidecardsmessage(); - inline void clear_has_endofhandhidecardsmessage(); - inline void set_has_showmycardsrequestmessage(); - inline void clear_has_showmycardsrequestmessage(); - inline void set_has_afterhandshowcardsmessage(); - inline void clear_has_afterhandshowcardsmessage(); - inline void set_has_endofgamemessage(); - inline void clear_has_endofgamemessage(); - inline void set_has_playeridchangedmessage(); - inline void clear_has_playeridchangedmessage(); - inline void set_has_askkickplayermessage(); - inline void clear_has_askkickplayermessage(); - inline void set_has_askkickdeniedmessage(); - inline void clear_has_askkickdeniedmessage(); - inline void set_has_startkickpetitionmessage(); - inline void clear_has_startkickpetitionmessage(); - inline void set_has_votekickrequestmessage(); - inline void clear_has_votekickrequestmessage(); - inline void set_has_votekickreplymessage(); - inline void clear_has_votekickreplymessage(); - inline void set_has_kickpetitionupdatemessage(); - inline void clear_has_kickpetitionupdatemessage(); - inline void set_has_endkickpetitionmessage(); - inline void clear_has_endkickpetitionmessage(); - inline void set_has_statisticsmessage(); - inline void clear_has_statisticsmessage(); - inline void set_has_chatrequestmessage(); - inline void clear_has_chatrequestmessage(); - inline void set_has_chatmessage(); - inline void clear_has_chatmessage(); - inline void set_has_chatrejectmessage(); - inline void clear_has_chatrejectmessage(); - inline void set_has_dialogmessage(); - inline void clear_has_dialogmessage(); - inline void set_has_timeoutwarningmessage(); - inline void clear_has_timeoutwarningmessage(); - inline void set_has_resettimeoutmessage(); - inline void clear_has_resettimeoutmessage(); - inline void set_has_reportavatarmessage(); - inline void clear_has_reportavatarmessage(); - inline void set_has_reportavatarackmessage(); - inline void clear_has_reportavatarackmessage(); - inline void set_has_reportgamemessage(); - inline void clear_has_reportgamemessage(); - inline void set_has_reportgameackmessage(); - inline void clear_has_reportgameackmessage(); - inline void set_has_errormessage(); - inline void clear_has_errormessage(); - inline void set_has_adminremovegamemessage(); - inline void clear_has_adminremovegamemessage(); - inline void set_has_adminremovegameackmessage(); - inline void clear_has_adminremovegameackmessage(); - inline void set_has_adminbanplayermessage(); - inline void clear_has_adminbanplayermessage(); - inline void set_has_adminbanplayerackmessage(); - inline void clear_has_adminbanplayerackmessage(); - inline void set_has_gamelistspectatorjoinedmessage(); - inline void clear_has_gamelistspectatorjoinedmessage(); - inline void set_has_gamelistspectatorleftmessage(); - inline void clear_has_gamelistspectatorleftmessage(); - inline void set_has_gamespectatorjoinedmessage(); - inline void clear_has_gamespectatorjoinedmessage(); - inline void set_has_gamespectatorleftmessage(); - inline void clear_has_gamespectatorleftmessage(); + class HasBitSetters; - ::std::string _unknown_fields_; - - ::google::protobuf::uint32 _has_bits_[3]; - mutable int _cached_size_; + ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; + ::google::protobuf::internal::HasBits<3> _has_bits_; + mutable ::google::protobuf::internal::CachedSize _cached_size_; ::AnnounceMessage* announcemessage_; ::InitMessage* initmessage_; ::AuthServerChallengeMessage* authserverchallengemessage_; @@ -12028,113 +14679,86 @@ class PokerTHMessage : public ::google::protobuf::MessageLite { ::GameSpectatorJoinedMessage* gamespectatorjoinedmessage_; ::GameSpectatorLeftMessage* gamespectatorleftmessage_; int messagetype_; - #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - friend void protobuf_AddDesc_pokerth_2eproto_impl(); - #else - friend void protobuf_AddDesc_pokerth_2eproto(); - #endif - friend void protobuf_AssignDesc_pokerth_2eproto(); - friend void protobuf_ShutdownFile_pokerth_2eproto(); - - void InitAsDefaultInstance(); - static PokerTHMessage* default_instance_; + friend struct ::TableStruct_pokerth_2eproto; }; // =================================================================== // =================================================================== +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ // NetGameInfo // required string gameName = 1; inline bool NetGameInfo::has_gamename() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void NetGameInfo::set_has_gamename() { - _has_bits_[0] |= 0x00000001u; -} -inline void NetGameInfo::clear_has_gamename() { - _has_bits_[0] &= ~0x00000001u; -} inline void NetGameInfo::clear_gamename() { - if (gamename_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - gamename_->clear(); - } - clear_has_gamename(); + gamename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } inline const ::std::string& NetGameInfo::gamename() const { // @@protoc_insertion_point(field_get:NetGameInfo.gameName) - return *gamename_; + return gamename_.GetNoArena(); } inline void NetGameInfo::set_gamename(const ::std::string& value) { - set_has_gamename(); - if (gamename_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - gamename_ = new ::std::string; - } - gamename_->assign(value); + _has_bits_[0] |= 0x00000001u; + gamename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:NetGameInfo.gameName) } +#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) { - set_has_gamename(); - if (gamename_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - gamename_ = new ::std::string; - } - gamename_->assign(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) } inline void NetGameInfo::set_gamename(const char* value, size_t size) { - set_has_gamename(); - if (gamename_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - gamename_ = new ::std::string; - } - gamename_->assign(reinterpret_cast(value), 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) } inline ::std::string* NetGameInfo::mutable_gamename() { - set_has_gamename(); - if (gamename_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - gamename_ = new ::std::string; - } + _has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_mutable:NetGameInfo.gameName) - return gamename_; + return gamename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* NetGameInfo::release_gamename() { - clear_has_gamename(); - if (gamename_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = gamename_; - gamename_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete gamename_; - } - if (gamename) { - set_has_gamename(); - gamename_ = gamename; + if (gamename != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_gamename(); - gamename_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } + 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] & 0x00000002u) != 0; -} -inline void NetGameInfo::set_has_netgametype() { - _has_bits_[0] |= 0x00000002u; -} -inline void NetGameInfo::clear_has_netgametype() { - _has_bits_[0] &= ~0x00000002u; + return (_has_bits_[0] & 0x00000400u) != 0; } inline void NetGameInfo::clear_netgametype() { netgametype_ = 1; - clear_has_netgametype(); + _has_bits_[0] &= ~0x00000400u; } inline ::NetGameInfo_NetGameType NetGameInfo::netgametype() const { // @@protoc_insertion_point(field_get:NetGameInfo.netGameType) @@ -12142,48 +14766,36 @@ inline ::NetGameInfo_NetGameType NetGameInfo::netgametype() const { } inline void NetGameInfo::set_netgametype(::NetGameInfo_NetGameType value) { assert(::NetGameInfo_NetGameType_IsValid(value)); - set_has_netgametype(); + _has_bits_[0] |= 0x00000400u; netgametype_ = value; // @@protoc_insertion_point(field_set:NetGameInfo.netGameType) } // required uint32 maxNumPlayers = 3; inline bool NetGameInfo::has_maxnumplayers() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void NetGameInfo::set_has_maxnumplayers() { - _has_bits_[0] |= 0x00000004u; -} -inline void NetGameInfo::clear_has_maxnumplayers() { - _has_bits_[0] &= ~0x00000004u; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void NetGameInfo::clear_maxnumplayers() { maxnumplayers_ = 0u; - clear_has_maxnumplayers(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_maxnumplayers(); + _has_bits_[0] |= 0x00000002u; maxnumplayers_ = value; // @@protoc_insertion_point(field_set:NetGameInfo.maxNumPlayers) } // required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; inline bool NetGameInfo::has_raiseintervalmode() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void NetGameInfo::set_has_raiseintervalmode() { - _has_bits_[0] |= 0x00000008u; -} -inline void NetGameInfo::clear_has_raiseintervalmode() { - _has_bits_[0] &= ~0x00000008u; + return (_has_bits_[0] & 0x00000800u) != 0; } inline void NetGameInfo::clear_raiseintervalmode() { raiseintervalmode_ = 1; - clear_has_raiseintervalmode(); + _has_bits_[0] &= ~0x00000800u; } inline ::NetGameInfo_RaiseIntervalMode NetGameInfo::raiseintervalmode() const { // @@protoc_insertion_point(field_get:NetGameInfo.raiseIntervalMode) @@ -12191,72 +14803,54 @@ inline ::NetGameInfo_RaiseIntervalMode NetGameInfo::raiseintervalmode() const { } inline void NetGameInfo::set_raiseintervalmode(::NetGameInfo_RaiseIntervalMode value) { assert(::NetGameInfo_RaiseIntervalMode_IsValid(value)); - set_has_raiseintervalmode(); + _has_bits_[0] |= 0x00000800u; raiseintervalmode_ = value; // @@protoc_insertion_point(field_set:NetGameInfo.raiseIntervalMode) } // optional uint32 raiseEveryHands = 5; inline bool NetGameInfo::has_raiseeveryhands() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void NetGameInfo::set_has_raiseeveryhands() { - _has_bits_[0] |= 0x00000010u; -} -inline void NetGameInfo::clear_has_raiseeveryhands() { - _has_bits_[0] &= ~0x00000010u; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void NetGameInfo::clear_raiseeveryhands() { raiseeveryhands_ = 0u; - clear_has_raiseeveryhands(); + _has_bits_[0] &= ~0x00000004u; } 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) { - set_has_raiseeveryhands(); + _has_bits_[0] |= 0x00000004u; raiseeveryhands_ = value; // @@protoc_insertion_point(field_set:NetGameInfo.raiseEveryHands) } // optional uint32 raiseEveryMinutes = 6; inline bool NetGameInfo::has_raiseeveryminutes() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void NetGameInfo::set_has_raiseeveryminutes() { - _has_bits_[0] |= 0x00000020u; -} -inline void NetGameInfo::clear_has_raiseeveryminutes() { - _has_bits_[0] &= ~0x00000020u; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void NetGameInfo::clear_raiseeveryminutes() { raiseeveryminutes_ = 0u; - clear_has_raiseeveryminutes(); + _has_bits_[0] &= ~0x00000008u; } 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) { - set_has_raiseeveryminutes(); + _has_bits_[0] |= 0x00000008u; raiseeveryminutes_ = value; // @@protoc_insertion_point(field_set:NetGameInfo.raiseEveryMinutes) } // required .NetGameInfo.EndRaiseMode endRaiseMode = 7; inline bool NetGameInfo::has_endraisemode() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void NetGameInfo::set_has_endraisemode() { - _has_bits_[0] |= 0x00000040u; -} -inline void NetGameInfo::clear_has_endraisemode() { - _has_bits_[0] &= ~0x00000040u; + return (_has_bits_[0] & 0x00001000u) != 0; } inline void NetGameInfo::clear_endraisemode() { endraisemode_ = 1; - clear_has_endraisemode(); + _has_bits_[0] &= ~0x00001000u; } inline ::NetGameInfo_EndRaiseMode NetGameInfo::endraisemode() const { // @@protoc_insertion_point(field_get:NetGameInfo.endRaiseMode) @@ -12264,151 +14858,115 @@ inline ::NetGameInfo_EndRaiseMode NetGameInfo::endraisemode() const { } inline void NetGameInfo::set_endraisemode(::NetGameInfo_EndRaiseMode value) { assert(::NetGameInfo_EndRaiseMode_IsValid(value)); - set_has_endraisemode(); + _has_bits_[0] |= 0x00001000u; endraisemode_ = value; // @@protoc_insertion_point(field_set:NetGameInfo.endRaiseMode) } // optional uint32 endRaiseSmallBlindValue = 8; inline bool NetGameInfo::has_endraisesmallblindvalue() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -inline void NetGameInfo::set_has_endraisesmallblindvalue() { - _has_bits_[0] |= 0x00000080u; -} -inline void NetGameInfo::clear_has_endraisesmallblindvalue() { - _has_bits_[0] &= ~0x00000080u; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void NetGameInfo::clear_endraisesmallblindvalue() { endraisesmallblindvalue_ = 0u; - clear_has_endraisesmallblindvalue(); + _has_bits_[0] &= ~0x00000010u; } 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) { - set_has_endraisesmallblindvalue(); + _has_bits_[0] |= 0x00000010u; endraisesmallblindvalue_ = value; // @@protoc_insertion_point(field_set:NetGameInfo.endRaiseSmallBlindValue) } // required uint32 proposedGuiSpeed = 9; inline bool NetGameInfo::has_proposedguispeed() const { - return (_has_bits_[0] & 0x00000100u) != 0; -} -inline void NetGameInfo::set_has_proposedguispeed() { - _has_bits_[0] |= 0x00000100u; -} -inline void NetGameInfo::clear_has_proposedguispeed() { - _has_bits_[0] &= ~0x00000100u; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void NetGameInfo::clear_proposedguispeed() { proposedguispeed_ = 0u; - clear_has_proposedguispeed(); + _has_bits_[0] &= ~0x00000020u; } 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) { - set_has_proposedguispeed(); + _has_bits_[0] |= 0x00000020u; proposedguispeed_ = value; // @@protoc_insertion_point(field_set:NetGameInfo.proposedGuiSpeed) } // required uint32 delayBetweenHands = 10; inline bool NetGameInfo::has_delaybetweenhands() const { - return (_has_bits_[0] & 0x00000200u) != 0; -} -inline void NetGameInfo::set_has_delaybetweenhands() { - _has_bits_[0] |= 0x00000200u; -} -inline void NetGameInfo::clear_has_delaybetweenhands() { - _has_bits_[0] &= ~0x00000200u; + return (_has_bits_[0] & 0x00000040u) != 0; } inline void NetGameInfo::clear_delaybetweenhands() { delaybetweenhands_ = 0u; - clear_has_delaybetweenhands(); + _has_bits_[0] &= ~0x00000040u; } 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) { - set_has_delaybetweenhands(); + _has_bits_[0] |= 0x00000040u; delaybetweenhands_ = value; // @@protoc_insertion_point(field_set:NetGameInfo.delayBetweenHands) } // required uint32 playerActionTimeout = 11; inline bool NetGameInfo::has_playeractiontimeout() const { - return (_has_bits_[0] & 0x00000400u) != 0; -} -inline void NetGameInfo::set_has_playeractiontimeout() { - _has_bits_[0] |= 0x00000400u; -} -inline void NetGameInfo::clear_has_playeractiontimeout() { - _has_bits_[0] &= ~0x00000400u; + return (_has_bits_[0] & 0x00000080u) != 0; } inline void NetGameInfo::clear_playeractiontimeout() { playeractiontimeout_ = 0u; - clear_has_playeractiontimeout(); + _has_bits_[0] &= ~0x00000080u; } 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) { - set_has_playeractiontimeout(); + _has_bits_[0] |= 0x00000080u; playeractiontimeout_ = value; // @@protoc_insertion_point(field_set:NetGameInfo.playerActionTimeout) } // required uint32 firstSmallBlind = 12; inline bool NetGameInfo::has_firstsmallblind() const { - return (_has_bits_[0] & 0x00000800u) != 0; -} -inline void NetGameInfo::set_has_firstsmallblind() { - _has_bits_[0] |= 0x00000800u; -} -inline void NetGameInfo::clear_has_firstsmallblind() { - _has_bits_[0] &= ~0x00000800u; + return (_has_bits_[0] & 0x00000100u) != 0; } inline void NetGameInfo::clear_firstsmallblind() { firstsmallblind_ = 0u; - clear_has_firstsmallblind(); + _has_bits_[0] &= ~0x00000100u; } 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) { - set_has_firstsmallblind(); + _has_bits_[0] |= 0x00000100u; firstsmallblind_ = value; // @@protoc_insertion_point(field_set:NetGameInfo.firstSmallBlind) } // required uint32 startMoney = 13; inline bool NetGameInfo::has_startmoney() const { - return (_has_bits_[0] & 0x00001000u) != 0; -} -inline void NetGameInfo::set_has_startmoney() { - _has_bits_[0] |= 0x00001000u; -} -inline void NetGameInfo::clear_has_startmoney() { - _has_bits_[0] &= ~0x00001000u; + return (_has_bits_[0] & 0x00000200u) != 0; } inline void NetGameInfo::clear_startmoney() { startmoney_ = 0u; - clear_has_startmoney(); + _has_bits_[0] &= ~0x00000200u; } 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) { - set_has_startmoney(); + _has_bits_[0] |= 0x00000200u; startmoney_ = value; // @@protoc_insertion_point(field_set:NetGameInfo.startMoney) } @@ -12445,24 +15003,18 @@ NetGameInfo::mutable_manualblinds() { // optional bool allowSpectators = 15 [default = true]; inline bool NetGameInfo::has_allowspectators() const { - return (_has_bits_[0] & 0x00004000u) != 0; -} -inline void NetGameInfo::set_has_allowspectators() { - _has_bits_[0] |= 0x00004000u; -} -inline void NetGameInfo::clear_has_allowspectators() { - _has_bits_[0] &= ~0x00004000u; + return (_has_bits_[0] & 0x00002000u) != 0; } inline void NetGameInfo::clear_allowspectators() { allowspectators_ = true; - clear_has_allowspectators(); + _has_bits_[0] &= ~0x00002000u; } inline bool NetGameInfo::allowspectators() const { // @@protoc_insertion_point(field_get:NetGameInfo.allowSpectators) return allowspectators_; } inline void NetGameInfo::set_allowspectators(bool value) { - set_has_allowspectators(); + _has_bits_[0] |= 0x00002000u; allowspectators_ = value; // @@protoc_insertion_point(field_set:NetGameInfo.allowSpectators) } @@ -12475,22 +15027,16 @@ inline void NetGameInfo::set_allowspectators(bool value) { inline bool PlayerResult::has_playerid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void PlayerResult::set_has_playerid() { - _has_bits_[0] |= 0x00000001u; -} -inline void PlayerResult::clear_has_playerid() { - _has_bits_[0] &= ~0x00000001u; -} inline void PlayerResult::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_playerid(); + _has_bits_[0] |= 0x00000001u; playerid_ = value; // @@protoc_insertion_point(field_set:PlayerResult.playerId) } @@ -12499,22 +15045,16 @@ inline void PlayerResult::set_playerid(::google::protobuf::uint32 value) { inline bool PlayerResult::has_resultcard1() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void PlayerResult::set_has_resultcard1() { - _has_bits_[0] |= 0x00000002u; -} -inline void PlayerResult::clear_has_resultcard1() { - _has_bits_[0] &= ~0x00000002u; -} inline void PlayerResult::clear_resultcard1() { resultcard1_ = 0u; - clear_has_resultcard1(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_resultcard1(); + _has_bits_[0] |= 0x00000002u; resultcard1_ = value; // @@protoc_insertion_point(field_set:PlayerResult.resultCard1) } @@ -12523,22 +15063,16 @@ inline void PlayerResult::set_resultcard1(::google::protobuf::uint32 value) { inline bool PlayerResult::has_resultcard2() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void PlayerResult::set_has_resultcard2() { - _has_bits_[0] |= 0x00000004u; -} -inline void PlayerResult::clear_has_resultcard2() { - _has_bits_[0] &= ~0x00000004u; -} inline void PlayerResult::clear_resultcard2() { resultcard2_ = 0u; - clear_has_resultcard2(); + _has_bits_[0] &= ~0x00000004u; } 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) { - set_has_resultcard2(); + _has_bits_[0] |= 0x00000004u; resultcard2_ = value; // @@protoc_insertion_point(field_set:PlayerResult.resultCard2) } @@ -12575,72 +15109,54 @@ PlayerResult::mutable_besthandposition() { // required uint32 moneyWon = 5; inline bool PlayerResult::has_moneywon() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void PlayerResult::set_has_moneywon() { - _has_bits_[0] |= 0x00000010u; -} -inline void PlayerResult::clear_has_moneywon() { - _has_bits_[0] &= ~0x00000010u; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void PlayerResult::clear_moneywon() { moneywon_ = 0u; - clear_has_moneywon(); + _has_bits_[0] &= ~0x00000008u; } 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) { - set_has_moneywon(); + _has_bits_[0] |= 0x00000008u; moneywon_ = value; // @@protoc_insertion_point(field_set:PlayerResult.moneyWon) } // required uint32 playerMoney = 6; inline bool PlayerResult::has_playermoney() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void PlayerResult::set_has_playermoney() { - _has_bits_[0] |= 0x00000020u; -} -inline void PlayerResult::clear_has_playermoney() { - _has_bits_[0] &= ~0x00000020u; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void PlayerResult::clear_playermoney() { playermoney_ = 0u; - clear_has_playermoney(); + _has_bits_[0] &= ~0x00000010u; } 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) { - set_has_playermoney(); + _has_bits_[0] |= 0x00000010u; playermoney_ = value; // @@protoc_insertion_point(field_set:PlayerResult.playerMoney) } // optional uint32 cardsValue = 7; inline bool PlayerResult::has_cardsvalue() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void PlayerResult::set_has_cardsvalue() { - _has_bits_[0] |= 0x00000040u; -} -inline void PlayerResult::clear_has_cardsvalue() { - _has_bits_[0] &= ~0x00000040u; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void PlayerResult::clear_cardsvalue() { cardsvalue_ = 0u; - clear_has_cardsvalue(); + _has_bits_[0] &= ~0x00000020u; } 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) { - set_has_cardsvalue(); + _has_bits_[0] |= 0x00000020u; cardsvalue_ = value; // @@protoc_insertion_point(field_set:PlayerResult.cardsValue) } @@ -12653,22 +15169,16 @@ 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::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(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_majorversion(); + _has_bits_[0] |= 0x00000001u; majorversion_ = value; // @@protoc_insertion_point(field_set:AnnounceMessage.Version.majorVersion) } @@ -12677,22 +15187,16 @@ inline void AnnounceMessage_Version::set_majorversion(::google::protobuf::uint32 inline bool AnnounceMessage_Version::has_minorversion() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void AnnounceMessage_Version::set_has_minorversion() { - _has_bits_[0] |= 0x00000002u; -} -inline void AnnounceMessage_Version::clear_has_minorversion() { - _has_bits_[0] &= ~0x00000002u; -} inline void AnnounceMessage_Version::clear_minorversion() { minorversion_ = 0u; - clear_has_minorversion(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_minorversion(); + _has_bits_[0] |= 0x00000002u; minorversion_ = value; // @@protoc_insertion_point(field_set:AnnounceMessage.Version.minorVersion) } @@ -12705,44 +15209,48 @@ inline void AnnounceMessage_Version::set_minorversion(::google::protobuf::uint32 inline bool AnnounceMessage::has_protocolversion() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AnnounceMessage::set_has_protocolversion() { - _has_bits_[0] |= 0x00000001u; -} -inline void AnnounceMessage::clear_has_protocolversion() { +inline void AnnounceMessage::clear_protocolversion() { + if (protocolversion_ != nullptr) protocolversion_->Clear(); _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) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return protocolversion_ != NULL ? *protocolversion_ : *default_instance().protocolversion_; -#else - return protocolversion_ != NULL ? *protocolversion_ : *default_instance_->protocolversion_; -#endif + 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; } inline ::AnnounceMessage_Version* AnnounceMessage::mutable_protocolversion() { - set_has_protocolversion(); - if (protocolversion_ == NULL) protocolversion_ = new ::AnnounceMessage_Version; + _has_bits_[0] |= 0x00000001u; + if (protocolversion_ == nullptr) { + auto* p = CreateMaybeMessage<::AnnounceMessage_Version>(GetArenaNoVirtual()); + protocolversion_ = p; + } // @@protoc_insertion_point(field_mutable:AnnounceMessage.protocolVersion) return protocolversion_; } -inline ::AnnounceMessage_Version* AnnounceMessage::release_protocolversion() { - clear_has_protocolversion(); - ::AnnounceMessage_Version* temp = protocolversion_; - protocolversion_ = NULL; - return temp; -} inline void AnnounceMessage::set_allocated_protocolversion(::AnnounceMessage_Version* protocolversion) { - delete protocolversion_; - protocolversion_ = protocolversion; - if (protocolversion) { - set_has_protocolversion(); - } else { - clear_has_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) } @@ -12750,44 +15258,48 @@ inline void AnnounceMessage::set_allocated_protocolversion(::AnnounceMessage_Ver inline bool AnnounceMessage::has_latestgameversion() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void AnnounceMessage::set_has_latestgameversion() { - _has_bits_[0] |= 0x00000002u; -} -inline void AnnounceMessage::clear_has_latestgameversion() { +inline void AnnounceMessage::clear_latestgameversion() { + if (latestgameversion_ != nullptr) latestgameversion_->Clear(); _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) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return latestgameversion_ != NULL ? *latestgameversion_ : *default_instance().latestgameversion_; -#else - return latestgameversion_ != NULL ? *latestgameversion_ : *default_instance_->latestgameversion_; -#endif + 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; } inline ::AnnounceMessage_Version* AnnounceMessage::mutable_latestgameversion() { - set_has_latestgameversion(); - if (latestgameversion_ == NULL) latestgameversion_ = new ::AnnounceMessage_Version; + _has_bits_[0] |= 0x00000002u; + if (latestgameversion_ == nullptr) { + auto* p = CreateMaybeMessage<::AnnounceMessage_Version>(GetArenaNoVirtual()); + latestgameversion_ = p; + } // @@protoc_insertion_point(field_mutable:AnnounceMessage.latestGameVersion) return latestgameversion_; } -inline ::AnnounceMessage_Version* AnnounceMessage::release_latestgameversion() { - clear_has_latestgameversion(); - ::AnnounceMessage_Version* temp = latestgameversion_; - latestgameversion_ = NULL; - return temp; -} inline void AnnounceMessage::set_allocated_latestgameversion(::AnnounceMessage_Version* latestgameversion) { - delete latestgameversion_; - latestgameversion_ = latestgameversion; - if (latestgameversion) { - set_has_latestgameversion(); - } else { - clear_has_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) } @@ -12795,22 +15307,16 @@ inline void AnnounceMessage::set_allocated_latestgameversion(::AnnounceMessage_V inline bool AnnounceMessage::has_latestbetarevision() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void AnnounceMessage::set_has_latestbetarevision() { - _has_bits_[0] |= 0x00000004u; -} -inline void AnnounceMessage::clear_has_latestbetarevision() { - _has_bits_[0] &= ~0x00000004u; -} inline void AnnounceMessage::clear_latestbetarevision() { latestbetarevision_ = 0u; - clear_has_latestbetarevision(); + _has_bits_[0] &= ~0x00000004u; } 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) { - set_has_latestbetarevision(); + _has_bits_[0] |= 0x00000004u; latestbetarevision_ = value; // @@protoc_insertion_point(field_set:AnnounceMessage.latestBetaRevision) } @@ -12819,15 +15325,9 @@ inline void AnnounceMessage::set_latestbetarevision(::google::protobuf::uint32 v inline bool AnnounceMessage::has_servertype() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void AnnounceMessage::set_has_servertype() { - _has_bits_[0] |= 0x00000008u; -} -inline void AnnounceMessage::clear_has_servertype() { - _has_bits_[0] &= ~0x00000008u; -} inline void AnnounceMessage::clear_servertype() { servertype_ = 0; - clear_has_servertype(); + _has_bits_[0] &= ~0x00000008u; } inline ::AnnounceMessage_ServerType AnnounceMessage::servertype() const { // @@protoc_insertion_point(field_get:AnnounceMessage.serverType) @@ -12835,7 +15335,7 @@ inline ::AnnounceMessage_ServerType AnnounceMessage::servertype() const { } inline void AnnounceMessage::set_servertype(::AnnounceMessage_ServerType value) { assert(::AnnounceMessage_ServerType_IsValid(value)); - set_has_servertype(); + _has_bits_[0] |= 0x00000008u; servertype_ = value; // @@protoc_insertion_point(field_set:AnnounceMessage.serverType) } @@ -12844,22 +15344,16 @@ inline void AnnounceMessage::set_servertype(::AnnounceMessage_ServerType value) inline bool AnnounceMessage::has_numplayersonserver() const { return (_has_bits_[0] & 0x00000010u) != 0; } -inline void AnnounceMessage::set_has_numplayersonserver() { - _has_bits_[0] |= 0x00000010u; -} -inline void AnnounceMessage::clear_has_numplayersonserver() { - _has_bits_[0] &= ~0x00000010u; -} inline void AnnounceMessage::clear_numplayersonserver() { numplayersonserver_ = 0u; - clear_has_numplayersonserver(); + _has_bits_[0] &= ~0x00000010u; } 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) { - set_has_numplayersonserver(); + _has_bits_[0] |= 0x00000010u; numplayersonserver_ = value; // @@protoc_insertion_point(field_set:AnnounceMessage.numPlayersOnServer) } @@ -12870,238 +15364,198 @@ inline void AnnounceMessage::set_numplayersonserver(::google::protobuf::uint32 v // required .AnnounceMessage.Version requestedVersion = 1; inline bool InitMessage::has_requestedversion() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void InitMessage::set_has_requestedversion() { - _has_bits_[0] |= 0x00000001u; -} -inline void InitMessage::clear_has_requestedversion() { - _has_bits_[0] &= ~0x00000001u; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void InitMessage::clear_requestedversion() { - if (requestedversion_ != NULL) requestedversion_->::AnnounceMessage_Version::Clear(); - clear_has_requestedversion(); + if (requestedversion_ != nullptr) requestedversion_->Clear(); + _has_bits_[0] &= ~0x00000020u; } inline const ::AnnounceMessage_Version& InitMessage::requestedversion() const { + const ::AnnounceMessage_Version* p = requestedversion_; // @@protoc_insertion_point(field_get:InitMessage.requestedVersion) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return requestedversion_ != NULL ? *requestedversion_ : *default_instance().requestedversion_; -#else - return requestedversion_ != NULL ? *requestedversion_ : *default_instance_->requestedversion_; -#endif + 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; } inline ::AnnounceMessage_Version* InitMessage::mutable_requestedversion() { - set_has_requestedversion(); - if (requestedversion_ == NULL) requestedversion_ = new ::AnnounceMessage_Version; + _has_bits_[0] |= 0x00000020u; + if (requestedversion_ == nullptr) { + auto* p = CreateMaybeMessage<::AnnounceMessage_Version>(GetArenaNoVirtual()); + requestedversion_ = p; + } // @@protoc_insertion_point(field_mutable:InitMessage.requestedVersion) return requestedversion_; } -inline ::AnnounceMessage_Version* InitMessage::release_requestedversion() { - clear_has_requestedversion(); - ::AnnounceMessage_Version* temp = requestedversion_; - requestedversion_ = NULL; - return temp; -} inline void InitMessage::set_allocated_requestedversion(::AnnounceMessage_Version* requestedversion) { - delete requestedversion_; - requestedversion_ = requestedversion; - if (requestedversion) { - set_has_requestedversion(); - } else { - clear_has_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) } // required uint32 buildId = 2; inline bool InitMessage::has_buildid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void InitMessage::set_has_buildid() { - _has_bits_[0] |= 0x00000002u; -} -inline void InitMessage::clear_has_buildid() { - _has_bits_[0] &= ~0x00000002u; + return (_has_bits_[0] & 0x00000040u) != 0; } inline void InitMessage::clear_buildid() { buildid_ = 0u; - clear_has_buildid(); + _has_bits_[0] &= ~0x00000040u; } 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) { - set_has_buildid(); + _has_bits_[0] |= 0x00000040u; buildid_ = value; // @@protoc_insertion_point(field_set:InitMessage.buildId) } // optional bytes myLastSessionId = 3; inline bool InitMessage::has_mylastsessionid() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void InitMessage::set_has_mylastsessionid() { - _has_bits_[0] |= 0x00000004u; -} -inline void InitMessage::clear_has_mylastsessionid() { - _has_bits_[0] &= ~0x00000004u; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void InitMessage::clear_mylastsessionid() { - if (mylastsessionid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - mylastsessionid_->clear(); - } - clear_has_mylastsessionid(); + mylastsessionid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } inline const ::std::string& InitMessage::mylastsessionid() const { // @@protoc_insertion_point(field_get:InitMessage.myLastSessionId) - return *mylastsessionid_; + return mylastsessionid_.GetNoArena(); } inline void InitMessage::set_mylastsessionid(const ::std::string& value) { - set_has_mylastsessionid(); - if (mylastsessionid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - mylastsessionid_ = new ::std::string; - } - mylastsessionid_->assign(value); + _has_bits_[0] |= 0x00000001u; + mylastsessionid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:InitMessage.myLastSessionId) } +#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) { - set_has_mylastsessionid(); - if (mylastsessionid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - mylastsessionid_ = new ::std::string; - } - mylastsessionid_->assign(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) } inline void InitMessage::set_mylastsessionid(const void* value, size_t size) { - set_has_mylastsessionid(); - if (mylastsessionid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - mylastsessionid_ = new ::std::string; - } - mylastsessionid_->assign(reinterpret_cast(value), 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) } inline ::std::string* InitMessage::mutable_mylastsessionid() { - set_has_mylastsessionid(); - if (mylastsessionid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - mylastsessionid_ = new ::std::string; - } + _has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_mutable:InitMessage.myLastSessionId) - return mylastsessionid_; + return mylastsessionid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* InitMessage::release_mylastsessionid() { - clear_has_mylastsessionid(); - if (mylastsessionid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = mylastsessionid_; - mylastsessionid_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete mylastsessionid_; - } - if (mylastsessionid) { - set_has_mylastsessionid(); - mylastsessionid_ = mylastsessionid; + if (mylastsessionid != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_mylastsessionid(); - mylastsessionid_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } + 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] & 0x00000008u) != 0; -} -inline void InitMessage::set_has_authserverpassword() { - _has_bits_[0] |= 0x00000008u; -} -inline void InitMessage::clear_has_authserverpassword() { - _has_bits_[0] &= ~0x00000008u; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void InitMessage::clear_authserverpassword() { - if (authserverpassword_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - authserverpassword_->clear(); - } - clear_has_authserverpassword(); + authserverpassword_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000002u; } inline const ::std::string& InitMessage::authserverpassword() const { // @@protoc_insertion_point(field_get:InitMessage.authServerPassword) - return *authserverpassword_; + return authserverpassword_.GetNoArena(); } inline void InitMessage::set_authserverpassword(const ::std::string& value) { - set_has_authserverpassword(); - if (authserverpassword_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - authserverpassword_ = new ::std::string; - } - authserverpassword_->assign(value); + _has_bits_[0] |= 0x00000002u; + authserverpassword_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:InitMessage.authServerPassword) } +#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) { - set_has_authserverpassword(); - if (authserverpassword_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - authserverpassword_ = new ::std::string; - } - authserverpassword_->assign(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) } inline void InitMessage::set_authserverpassword(const char* value, size_t size) { - set_has_authserverpassword(); - if (authserverpassword_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - authserverpassword_ = new ::std::string; - } - authserverpassword_->assign(reinterpret_cast(value), 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) } inline ::std::string* InitMessage::mutable_authserverpassword() { - set_has_authserverpassword(); - if (authserverpassword_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - authserverpassword_ = new ::std::string; - } + _has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_mutable:InitMessage.authServerPassword) - return authserverpassword_; + return authserverpassword_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* InitMessage::release_authserverpassword() { - clear_has_authserverpassword(); - if (authserverpassword_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = authserverpassword_; - authserverpassword_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete authserverpassword_; - } - if (authserverpassword) { - set_has_authserverpassword(); - authserverpassword_ = authserverpassword; + if (authserverpassword != nullptr) { + _has_bits_[0] |= 0x00000002u; } else { - clear_has_authserverpassword(); - authserverpassword_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000002u; } + 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] & 0x00000010u) != 0; -} -inline void InitMessage::set_has_login() { - _has_bits_[0] |= 0x00000010u; -} -inline void InitMessage::clear_has_login() { - _has_bits_[0] &= ~0x00000010u; + return (_has_bits_[0] & 0x00000080u) != 0; } inline void InitMessage::clear_login() { login_ = 0; - clear_has_login(); + _has_bits_[0] &= ~0x00000080u; } inline ::InitMessage_LoginType InitMessage::login() const { // @@protoc_insertion_point(field_get:InitMessage.login) @@ -13109,236 +15563,188 @@ inline ::InitMessage_LoginType InitMessage::login() const { } inline void InitMessage::set_login(::InitMessage_LoginType value) { assert(::InitMessage_LoginType_IsValid(value)); - set_has_login(); + _has_bits_[0] |= 0x00000080u; login_ = value; // @@protoc_insertion_point(field_set:InitMessage.login) } // optional string nickName = 6; inline bool InitMessage::has_nickname() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void InitMessage::set_has_nickname() { - _has_bits_[0] |= 0x00000020u; -} -inline void InitMessage::clear_has_nickname() { - _has_bits_[0] &= ~0x00000020u; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void InitMessage::clear_nickname() { - if (nickname_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - nickname_->clear(); - } - clear_has_nickname(); + nickname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000004u; } inline const ::std::string& InitMessage::nickname() const { // @@protoc_insertion_point(field_get:InitMessage.nickName) - return *nickname_; + return nickname_.GetNoArena(); } inline void InitMessage::set_nickname(const ::std::string& value) { - set_has_nickname(); - if (nickname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - nickname_ = new ::std::string; - } - nickname_->assign(value); + _has_bits_[0] |= 0x00000004u; + nickname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:InitMessage.nickName) } +#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) { - set_has_nickname(); - if (nickname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - nickname_ = new ::std::string; - } - nickname_->assign(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) } inline void InitMessage::set_nickname(const char* value, size_t size) { - set_has_nickname(); - if (nickname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - nickname_ = new ::std::string; - } - nickname_->assign(reinterpret_cast(value), 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) } inline ::std::string* InitMessage::mutable_nickname() { - set_has_nickname(); - if (nickname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - nickname_ = new ::std::string; - } + _has_bits_[0] |= 0x00000004u; // @@protoc_insertion_point(field_mutable:InitMessage.nickName) - return nickname_; + return nickname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* InitMessage::release_nickname() { - clear_has_nickname(); - if (nickname_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = nickname_; - nickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete nickname_; - } - if (nickname) { - set_has_nickname(); - nickname_ = nickname; + if (nickname != nullptr) { + _has_bits_[0] |= 0x00000004u; } else { - clear_has_nickname(); - nickname_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000004u; } + 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] & 0x00000040u) != 0; -} -inline void InitMessage::set_has_clientuserdata() { - _has_bits_[0] |= 0x00000040u; -} -inline void InitMessage::clear_has_clientuserdata() { - _has_bits_[0] &= ~0x00000040u; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void InitMessage::clear_clientuserdata() { - if (clientuserdata_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - clientuserdata_->clear(); - } - clear_has_clientuserdata(); + clientuserdata_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000008u; } inline const ::std::string& InitMessage::clientuserdata() const { // @@protoc_insertion_point(field_get:InitMessage.clientUserData) - return *clientuserdata_; + return clientuserdata_.GetNoArena(); } inline void InitMessage::set_clientuserdata(const ::std::string& value) { - set_has_clientuserdata(); - if (clientuserdata_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - clientuserdata_ = new ::std::string; - } - clientuserdata_->assign(value); + _has_bits_[0] |= 0x00000008u; + clientuserdata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:InitMessage.clientUserData) } +#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) { - set_has_clientuserdata(); - if (clientuserdata_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - clientuserdata_ = new ::std::string; - } - clientuserdata_->assign(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) } inline void InitMessage::set_clientuserdata(const void* value, size_t size) { - set_has_clientuserdata(); - if (clientuserdata_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - clientuserdata_ = new ::std::string; - } - clientuserdata_->assign(reinterpret_cast(value), 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) } inline ::std::string* InitMessage::mutable_clientuserdata() { - set_has_clientuserdata(); - if (clientuserdata_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - clientuserdata_ = new ::std::string; - } + _has_bits_[0] |= 0x00000008u; // @@protoc_insertion_point(field_mutable:InitMessage.clientUserData) - return clientuserdata_; + return clientuserdata_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* InitMessage::release_clientuserdata() { - clear_has_clientuserdata(); - if (clientuserdata_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = clientuserdata_; - clientuserdata_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete clientuserdata_; - } - if (clientuserdata) { - set_has_clientuserdata(); - clientuserdata_ = clientuserdata; + if (clientuserdata != nullptr) { + _has_bits_[0] |= 0x00000008u; } else { - clear_has_clientuserdata(); - clientuserdata_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000008u; } + 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] & 0x00000080u) != 0; -} -inline void InitMessage::set_has_avatarhash() { - _has_bits_[0] |= 0x00000080u; -} -inline void InitMessage::clear_has_avatarhash() { - _has_bits_[0] &= ~0x00000080u; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void InitMessage::clear_avatarhash() { - if (avatarhash_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - avatarhash_->clear(); - } - clear_has_avatarhash(); + avatarhash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000010u; } inline const ::std::string& InitMessage::avatarhash() const { // @@protoc_insertion_point(field_get:InitMessage.avatarHash) - return *avatarhash_; + return avatarhash_.GetNoArena(); } inline void InitMessage::set_avatarhash(const ::std::string& value) { - set_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - avatarhash_ = new ::std::string; - } - avatarhash_->assign(value); + _has_bits_[0] |= 0x00000010u; + avatarhash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:InitMessage.avatarHash) } +#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) { - set_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - avatarhash_ = new ::std::string; - } - avatarhash_->assign(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) } inline void InitMessage::set_avatarhash(const void* value, size_t size) { - set_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - avatarhash_ = new ::std::string; - } - avatarhash_->assign(reinterpret_cast(value), 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) } inline ::std::string* InitMessage::mutable_avatarhash() { - set_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - avatarhash_ = new ::std::string; - } + _has_bits_[0] |= 0x00000010u; // @@protoc_insertion_point(field_mutable:InitMessage.avatarHash) - return avatarhash_; + return avatarhash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* InitMessage::release_avatarhash() { - clear_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = avatarhash_; - avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete avatarhash_; - } - if (avatarhash) { - set_has_avatarhash(); - avatarhash_ = avatarhash; + if (avatarhash != nullptr) { + _has_bits_[0] |= 0x00000010u; } else { - clear_has_avatarhash(); - avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000010u; } + avatarhash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), avatarhash); // @@protoc_insertion_point(field_set_allocated:InitMessage.avatarHash) } @@ -13350,75 +15756,59 @@ inline void InitMessage::set_allocated_avatarhash(::std::string* avatarhash) { inline bool AuthServerChallengeMessage::has_serverchallenge() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AuthServerChallengeMessage::set_has_serverchallenge() { - _has_bits_[0] |= 0x00000001u; -} -inline void AuthServerChallengeMessage::clear_has_serverchallenge() { - _has_bits_[0] &= ~0x00000001u; -} inline void AuthServerChallengeMessage::clear_serverchallenge() { - if (serverchallenge_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - serverchallenge_->clear(); - } - clear_has_serverchallenge(); + serverchallenge_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } inline const ::std::string& AuthServerChallengeMessage::serverchallenge() const { // @@protoc_insertion_point(field_get:AuthServerChallengeMessage.serverChallenge) - return *serverchallenge_; + return serverchallenge_.GetNoArena(); } inline void AuthServerChallengeMessage::set_serverchallenge(const ::std::string& value) { - set_has_serverchallenge(); - if (serverchallenge_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - serverchallenge_ = new ::std::string; - } - serverchallenge_->assign(value); + _has_bits_[0] |= 0x00000001u; + serverchallenge_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:AuthServerChallengeMessage.serverChallenge) } +#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) { - set_has_serverchallenge(); - if (serverchallenge_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - serverchallenge_ = new ::std::string; - } - serverchallenge_->assign(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) } inline void AuthServerChallengeMessage::set_serverchallenge(const void* value, size_t size) { - set_has_serverchallenge(); - if (serverchallenge_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - serverchallenge_ = new ::std::string; - } - serverchallenge_->assign(reinterpret_cast(value), 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) } inline ::std::string* AuthServerChallengeMessage::mutable_serverchallenge() { - set_has_serverchallenge(); - if (serverchallenge_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - serverchallenge_ = new ::std::string; - } + _has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_mutable:AuthServerChallengeMessage.serverChallenge) - return serverchallenge_; + return serverchallenge_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* AuthServerChallengeMessage::release_serverchallenge() { - clear_has_serverchallenge(); - if (serverchallenge_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = serverchallenge_; - serverchallenge_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete serverchallenge_; - } - if (serverchallenge) { - set_has_serverchallenge(); - serverchallenge_ = serverchallenge; + if (serverchallenge != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_serverchallenge(); - serverchallenge_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } + serverchallenge_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), serverchallenge); // @@protoc_insertion_point(field_set_allocated:AuthServerChallengeMessage.serverChallenge) } @@ -13430,75 +15820,59 @@ inline void AuthServerChallengeMessage::set_allocated_serverchallenge(::std::str inline bool AuthClientResponseMessage::has_clientresponse() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AuthClientResponseMessage::set_has_clientresponse() { - _has_bits_[0] |= 0x00000001u; -} -inline void AuthClientResponseMessage::clear_has_clientresponse() { - _has_bits_[0] &= ~0x00000001u; -} inline void AuthClientResponseMessage::clear_clientresponse() { - if (clientresponse_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - clientresponse_->clear(); - } - clear_has_clientresponse(); + clientresponse_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } inline const ::std::string& AuthClientResponseMessage::clientresponse() const { // @@protoc_insertion_point(field_get:AuthClientResponseMessage.clientResponse) - return *clientresponse_; + return clientresponse_.GetNoArena(); } inline void AuthClientResponseMessage::set_clientresponse(const ::std::string& value) { - set_has_clientresponse(); - if (clientresponse_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - clientresponse_ = new ::std::string; - } - clientresponse_->assign(value); + _has_bits_[0] |= 0x00000001u; + clientresponse_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:AuthClientResponseMessage.clientResponse) } +#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) { - set_has_clientresponse(); - if (clientresponse_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - clientresponse_ = new ::std::string; - } - clientresponse_->assign(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) } inline void AuthClientResponseMessage::set_clientresponse(const void* value, size_t size) { - set_has_clientresponse(); - if (clientresponse_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - clientresponse_ = new ::std::string; - } - clientresponse_->assign(reinterpret_cast(value), 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) } inline ::std::string* AuthClientResponseMessage::mutable_clientresponse() { - set_has_clientresponse(); - if (clientresponse_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - clientresponse_ = new ::std::string; - } + _has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_mutable:AuthClientResponseMessage.clientResponse) - return clientresponse_; + return clientresponse_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* AuthClientResponseMessage::release_clientresponse() { - clear_has_clientresponse(); - if (clientresponse_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = clientresponse_; - clientresponse_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete clientresponse_; - } - if (clientresponse) { - set_has_clientresponse(); - clientresponse_ = clientresponse; + if (clientresponse != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_clientresponse(); - clientresponse_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } + clientresponse_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), clientresponse); // @@protoc_insertion_point(field_set_allocated:AuthClientResponseMessage.clientResponse) } @@ -13510,75 +15884,59 @@ inline void AuthClientResponseMessage::set_allocated_clientresponse(::std::strin inline bool AuthServerVerificationMessage::has_serververification() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AuthServerVerificationMessage::set_has_serververification() { - _has_bits_[0] |= 0x00000001u; -} -inline void AuthServerVerificationMessage::clear_has_serververification() { - _has_bits_[0] &= ~0x00000001u; -} inline void AuthServerVerificationMessage::clear_serververification() { - if (serververification_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - serververification_->clear(); - } - clear_has_serververification(); + serververification_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } inline const ::std::string& AuthServerVerificationMessage::serververification() const { // @@protoc_insertion_point(field_get:AuthServerVerificationMessage.serverVerification) - return *serververification_; + return serververification_.GetNoArena(); } inline void AuthServerVerificationMessage::set_serververification(const ::std::string& value) { - set_has_serververification(); - if (serververification_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - serververification_ = new ::std::string; - } - serververification_->assign(value); + _has_bits_[0] |= 0x00000001u; + serververification_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:AuthServerVerificationMessage.serverVerification) } +#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) { - set_has_serververification(); - if (serververification_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - serververification_ = new ::std::string; - } - serververification_->assign(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) } inline void AuthServerVerificationMessage::set_serververification(const void* value, size_t size) { - set_has_serververification(); - if (serververification_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - serververification_ = new ::std::string; - } - serververification_->assign(reinterpret_cast(value), 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) } inline ::std::string* AuthServerVerificationMessage::mutable_serververification() { - set_has_serververification(); - if (serververification_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - serververification_ = new ::std::string; - } + _has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_mutable:AuthServerVerificationMessage.serverVerification) - return serververification_; + return serververification_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* AuthServerVerificationMessage::release_serververification() { - clear_has_serververification(); - if (serververification_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = serververification_; - serververification_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete serververification_; - } - if (serververification) { - set_has_serververification(); - serververification_ = serververification; + if (serververification != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_serververification(); - serververification_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } + serververification_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), serververification); // @@protoc_insertion_point(field_set_allocated:AuthServerVerificationMessage.serverVerification) } @@ -13590,175 +15948,137 @@ inline void AuthServerVerificationMessage::set_allocated_serververification(::st inline bool InitAckMessage::has_yoursessionid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void InitAckMessage::set_has_yoursessionid() { - _has_bits_[0] |= 0x00000001u; -} -inline void InitAckMessage::clear_has_yoursessionid() { - _has_bits_[0] &= ~0x00000001u; -} inline void InitAckMessage::clear_yoursessionid() { - if (yoursessionid_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - yoursessionid_->clear(); - } - clear_has_yoursessionid(); + yoursessionid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } inline const ::std::string& InitAckMessage::yoursessionid() const { // @@protoc_insertion_point(field_get:InitAckMessage.yourSessionId) - return *yoursessionid_; + return yoursessionid_.GetNoArena(); } inline void InitAckMessage::set_yoursessionid(const ::std::string& value) { - set_has_yoursessionid(); - if (yoursessionid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - yoursessionid_ = new ::std::string; - } - yoursessionid_->assign(value); + _has_bits_[0] |= 0x00000001u; + yoursessionid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:InitAckMessage.yourSessionId) } +#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) { - set_has_yoursessionid(); - if (yoursessionid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - yoursessionid_ = new ::std::string; - } - yoursessionid_->assign(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) } inline void InitAckMessage::set_yoursessionid(const void* value, size_t size) { - set_has_yoursessionid(); - if (yoursessionid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - yoursessionid_ = new ::std::string; - } - yoursessionid_->assign(reinterpret_cast(value), 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) } inline ::std::string* InitAckMessage::mutable_yoursessionid() { - set_has_yoursessionid(); - if (yoursessionid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - yoursessionid_ = new ::std::string; - } + _has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_mutable:InitAckMessage.yourSessionId) - return yoursessionid_; + return yoursessionid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* InitAckMessage::release_yoursessionid() { - clear_has_yoursessionid(); - if (yoursessionid_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = yoursessionid_; - yoursessionid_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete yoursessionid_; - } - if (yoursessionid) { - set_has_yoursessionid(); - yoursessionid_ = yoursessionid; + if (yoursessionid != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_yoursessionid(); - yoursessionid_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } + 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] & 0x00000002u) != 0; -} -inline void InitAckMessage::set_has_yourplayerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void InitAckMessage::clear_has_yourplayerid() { - _has_bits_[0] &= ~0x00000002u; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void InitAckMessage::clear_yourplayerid() { yourplayerid_ = 0u; - clear_has_yourplayerid(); + _has_bits_[0] &= ~0x00000004u; } 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) { - set_has_yourplayerid(); + _has_bits_[0] |= 0x00000004u; yourplayerid_ = value; // @@protoc_insertion_point(field_set:InitAckMessage.yourPlayerId) } // optional bytes yourAvatarHash = 3; inline bool InitAckMessage::has_youravatarhash() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void InitAckMessage::set_has_youravatarhash() { - _has_bits_[0] |= 0x00000004u; -} -inline void InitAckMessage::clear_has_youravatarhash() { - _has_bits_[0] &= ~0x00000004u; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void InitAckMessage::clear_youravatarhash() { - if (youravatarhash_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - youravatarhash_->clear(); - } - clear_has_youravatarhash(); + youravatarhash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000002u; } inline const ::std::string& InitAckMessage::youravatarhash() const { // @@protoc_insertion_point(field_get:InitAckMessage.yourAvatarHash) - return *youravatarhash_; + return youravatarhash_.GetNoArena(); } inline void InitAckMessage::set_youravatarhash(const ::std::string& value) { - set_has_youravatarhash(); - if (youravatarhash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - youravatarhash_ = new ::std::string; - } - youravatarhash_->assign(value); + _has_bits_[0] |= 0x00000002u; + youravatarhash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:InitAckMessage.yourAvatarHash) } +#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) { - set_has_youravatarhash(); - if (youravatarhash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - youravatarhash_ = new ::std::string; - } - youravatarhash_->assign(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) } inline void InitAckMessage::set_youravatarhash(const void* value, size_t size) { - set_has_youravatarhash(); - if (youravatarhash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - youravatarhash_ = new ::std::string; - } - youravatarhash_->assign(reinterpret_cast(value), 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) } inline ::std::string* InitAckMessage::mutable_youravatarhash() { - set_has_youravatarhash(); - if (youravatarhash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - youravatarhash_ = new ::std::string; - } + _has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_mutable:InitAckMessage.yourAvatarHash) - return youravatarhash_; + return youravatarhash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* InitAckMessage::release_youravatarhash() { - clear_has_youravatarhash(); - if (youravatarhash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = youravatarhash_; - youravatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete youravatarhash_; - } - if (youravatarhash) { - set_has_youravatarhash(); - youravatarhash_ = youravatarhash; + if (youravatarhash != nullptr) { + _has_bits_[0] |= 0x00000002u; } else { - clear_has_youravatarhash(); - youravatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000002u; } + youravatarhash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), youravatarhash); // @@protoc_insertion_point(field_set_allocated:InitAckMessage.yourAvatarHash) } @@ -13766,22 +16086,16 @@ inline void InitAckMessage::set_allocated_youravatarhash(::std::string* youravat inline bool InitAckMessage::has_rejoingameid() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void InitAckMessage::set_has_rejoingameid() { - _has_bits_[0] |= 0x00000008u; -} -inline void InitAckMessage::clear_has_rejoingameid() { - _has_bits_[0] &= ~0x00000008u; -} inline void InitAckMessage::clear_rejoingameid() { rejoingameid_ = 0u; - clear_has_rejoingameid(); + _has_bits_[0] &= ~0x00000008u; } 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) { - set_has_rejoingameid(); + _has_bits_[0] |= 0x00000008u; rejoingameid_ = value; // @@protoc_insertion_point(field_set:InitAckMessage.rejoinGameId) } @@ -13792,101 +16106,79 @@ inline void InitAckMessage::set_rejoingameid(::google::protobuf::uint32 value) { // required uint32 requestId = 1; inline bool AvatarRequestMessage::has_requestid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AvatarRequestMessage::set_has_requestid() { - _has_bits_[0] |= 0x00000001u; -} -inline void AvatarRequestMessage::clear_has_requestid() { - _has_bits_[0] &= ~0x00000001u; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void AvatarRequestMessage::clear_requestid() { requestid_ = 0u; - clear_has_requestid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_requestid(); + _has_bits_[0] |= 0x00000002u; requestid_ = value; // @@protoc_insertion_point(field_set:AvatarRequestMessage.requestId) } // required bytes avatarHash = 2; inline bool AvatarRequestMessage::has_avatarhash() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void AvatarRequestMessage::set_has_avatarhash() { - _has_bits_[0] |= 0x00000002u; -} -inline void AvatarRequestMessage::clear_has_avatarhash() { - _has_bits_[0] &= ~0x00000002u; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void AvatarRequestMessage::clear_avatarhash() { - if (avatarhash_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - avatarhash_->clear(); - } - clear_has_avatarhash(); + avatarhash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } inline const ::std::string& AvatarRequestMessage::avatarhash() const { // @@protoc_insertion_point(field_get:AvatarRequestMessage.avatarHash) - return *avatarhash_; + return avatarhash_.GetNoArena(); } inline void AvatarRequestMessage::set_avatarhash(const ::std::string& value) { - set_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - avatarhash_ = new ::std::string; - } - avatarhash_->assign(value); + _has_bits_[0] |= 0x00000001u; + avatarhash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:AvatarRequestMessage.avatarHash) } +#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) { - set_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - avatarhash_ = new ::std::string; - } - avatarhash_->assign(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) } inline void AvatarRequestMessage::set_avatarhash(const void* value, size_t size) { - set_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - avatarhash_ = new ::std::string; - } - avatarhash_->assign(reinterpret_cast(value), 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) } inline ::std::string* AvatarRequestMessage::mutable_avatarhash() { - set_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - avatarhash_ = new ::std::string; - } + _has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_mutable:AvatarRequestMessage.avatarHash) - return avatarhash_; + return avatarhash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* AvatarRequestMessage::release_avatarhash() { - clear_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = avatarhash_; - avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete avatarhash_; - } - if (avatarhash) { - set_has_avatarhash(); - avatarhash_ = avatarhash; + if (avatarhash != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_avatarhash(); - avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } + avatarhash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), avatarhash); // @@protoc_insertion_point(field_set_allocated:AvatarRequestMessage.avatarHash) } @@ -13898,39 +16190,27 @@ inline void AvatarRequestMessage::set_allocated_avatarhash(::std::string* avatar inline bool AvatarHeaderMessage::has_requestid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AvatarHeaderMessage::set_has_requestid() { - _has_bits_[0] |= 0x00000001u; -} -inline void AvatarHeaderMessage::clear_has_requestid() { - _has_bits_[0] &= ~0x00000001u; -} inline void AvatarHeaderMessage::clear_requestid() { requestid_ = 0u; - clear_has_requestid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_requestid(); + _has_bits_[0] |= 0x00000001u; requestid_ = value; // @@protoc_insertion_point(field_set:AvatarHeaderMessage.requestId) } // required .NetAvatarType avatarType = 2; inline bool AvatarHeaderMessage::has_avatartype() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void AvatarHeaderMessage::set_has_avatartype() { - _has_bits_[0] |= 0x00000002u; -} -inline void AvatarHeaderMessage::clear_has_avatartype() { - _has_bits_[0] &= ~0x00000002u; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void AvatarHeaderMessage::clear_avatartype() { avatartype_ = 1; - clear_has_avatartype(); + _has_bits_[0] &= ~0x00000004u; } inline ::NetAvatarType AvatarHeaderMessage::avatartype() const { // @@protoc_insertion_point(field_get:AvatarHeaderMessage.avatarType) @@ -13938,31 +16218,25 @@ inline ::NetAvatarType AvatarHeaderMessage::avatartype() const { } inline void AvatarHeaderMessage::set_avatartype(::NetAvatarType value) { assert(::NetAvatarType_IsValid(value)); - set_has_avatartype(); + _has_bits_[0] |= 0x00000004u; avatartype_ = value; // @@protoc_insertion_point(field_set:AvatarHeaderMessage.avatarType) } // required uint32 avatarSize = 3; inline bool AvatarHeaderMessage::has_avatarsize() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void AvatarHeaderMessage::set_has_avatarsize() { - _has_bits_[0] |= 0x00000004u; -} -inline void AvatarHeaderMessage::clear_has_avatarsize() { - _has_bits_[0] &= ~0x00000004u; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void AvatarHeaderMessage::clear_avatarsize() { avatarsize_ = 0u; - clear_has_avatarsize(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_avatarsize(); + _has_bits_[0] |= 0x00000002u; avatarsize_ = value; // @@protoc_insertion_point(field_set:AvatarHeaderMessage.avatarSize) } @@ -13973,101 +16247,79 @@ inline void AvatarHeaderMessage::set_avatarsize(::google::protobuf::uint32 value // required uint32 requestId = 1; inline bool AvatarDataMessage::has_requestid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AvatarDataMessage::set_has_requestid() { - _has_bits_[0] |= 0x00000001u; -} -inline void AvatarDataMessage::clear_has_requestid() { - _has_bits_[0] &= ~0x00000001u; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void AvatarDataMessage::clear_requestid() { requestid_ = 0u; - clear_has_requestid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_requestid(); + _has_bits_[0] |= 0x00000002u; requestid_ = value; // @@protoc_insertion_point(field_set:AvatarDataMessage.requestId) } // required bytes avatarBlock = 2; inline bool AvatarDataMessage::has_avatarblock() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void AvatarDataMessage::set_has_avatarblock() { - _has_bits_[0] |= 0x00000002u; -} -inline void AvatarDataMessage::clear_has_avatarblock() { - _has_bits_[0] &= ~0x00000002u; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void AvatarDataMessage::clear_avatarblock() { - if (avatarblock_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - avatarblock_->clear(); - } - clear_has_avatarblock(); + avatarblock_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } inline const ::std::string& AvatarDataMessage::avatarblock() const { // @@protoc_insertion_point(field_get:AvatarDataMessage.avatarBlock) - return *avatarblock_; + return avatarblock_.GetNoArena(); } inline void AvatarDataMessage::set_avatarblock(const ::std::string& value) { - set_has_avatarblock(); - if (avatarblock_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - avatarblock_ = new ::std::string; - } - avatarblock_->assign(value); + _has_bits_[0] |= 0x00000001u; + avatarblock_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:AvatarDataMessage.avatarBlock) } +#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) { - set_has_avatarblock(); - if (avatarblock_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - avatarblock_ = new ::std::string; - } - avatarblock_->assign(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) } inline void AvatarDataMessage::set_avatarblock(const void* value, size_t size) { - set_has_avatarblock(); - if (avatarblock_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - avatarblock_ = new ::std::string; - } - avatarblock_->assign(reinterpret_cast(value), 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) } inline ::std::string* AvatarDataMessage::mutable_avatarblock() { - set_has_avatarblock(); - if (avatarblock_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - avatarblock_ = new ::std::string; - } + _has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_mutable:AvatarDataMessage.avatarBlock) - return avatarblock_; + return avatarblock_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* AvatarDataMessage::release_avatarblock() { - clear_has_avatarblock(); - if (avatarblock_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = avatarblock_; - avatarblock_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete avatarblock_; - } - if (avatarblock) { - set_has_avatarblock(); - avatarblock_ = avatarblock; + if (avatarblock != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_avatarblock(); - avatarblock_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } + avatarblock_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), avatarblock); // @@protoc_insertion_point(field_set_allocated:AvatarDataMessage.avatarBlock) } @@ -14079,22 +16331,16 @@ inline void AvatarDataMessage::set_allocated_avatarblock(::std::string* avatarbl inline bool AvatarEndMessage::has_requestid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AvatarEndMessage::set_has_requestid() { - _has_bits_[0] |= 0x00000001u; -} -inline void AvatarEndMessage::clear_has_requestid() { - _has_bits_[0] &= ~0x00000001u; -} inline void AvatarEndMessage::clear_requestid() { requestid_ = 0u; - clear_has_requestid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_requestid(); + _has_bits_[0] |= 0x00000001u; requestid_ = value; // @@protoc_insertion_point(field_set:AvatarEndMessage.requestId) } @@ -14107,22 +16353,16 @@ inline void AvatarEndMessage::set_requestid(::google::protobuf::uint32 value) { inline bool UnknownAvatarMessage::has_requestid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void UnknownAvatarMessage::set_has_requestid() { - _has_bits_[0] |= 0x00000001u; -} -inline void UnknownAvatarMessage::clear_has_requestid() { - _has_bits_[0] &= ~0x00000001u; -} inline void UnknownAvatarMessage::clear_requestid() { requestid_ = 0u; - clear_has_requestid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_requestid(); + _has_bits_[0] |= 0x00000001u; requestid_ = value; // @@protoc_insertion_point(field_set:UnknownAvatarMessage.requestId) } @@ -14135,22 +16375,16 @@ inline void UnknownAvatarMessage::set_requestid(::google::protobuf::uint32 value inline bool PlayerListMessage::has_playerid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void PlayerListMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000001u; -} -inline void PlayerListMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000001u; -} inline void PlayerListMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_playerid(); + _has_bits_[0] |= 0x00000001u; playerid_ = value; // @@protoc_insertion_point(field_set:PlayerListMessage.playerId) } @@ -14159,15 +16393,9 @@ inline void PlayerListMessage::set_playerid(::google::protobuf::uint32 value) { inline bool PlayerListMessage::has_playerlistnotification() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void PlayerListMessage::set_has_playerlistnotification() { - _has_bits_[0] |= 0x00000002u; -} -inline void PlayerListMessage::clear_has_playerlistnotification() { - _has_bits_[0] &= ~0x00000002u; -} inline void PlayerListMessage::clear_playerlistnotification() { playerlistnotification_ = 0; - clear_has_playerlistnotification(); + _has_bits_[0] &= ~0x00000002u; } inline ::PlayerListMessage_PlayerListNotification PlayerListMessage::playerlistnotification() const { // @@protoc_insertion_point(field_get:PlayerListMessage.playerListNotification) @@ -14175,7 +16403,7 @@ inline ::PlayerListMessage_PlayerListNotification PlayerListMessage::playerlistn } inline void PlayerListMessage::set_playerlistnotification(::PlayerListMessage_PlayerListNotification value) { assert(::PlayerListMessage_PlayerListNotification_IsValid(value)); - set_has_playerlistnotification(); + _has_bits_[0] |= 0x00000002u; playerlistnotification_ = value; // @@protoc_insertion_point(field_set:PlayerListMessage.playerListNotification) } @@ -14186,41 +16414,29 @@ inline void PlayerListMessage::set_playerlistnotification(::PlayerListMessage_Pl // required uint32 gameId = 1; inline bool GameListNewMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void GameListNewMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameListNewMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void GameListNewMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000002u; gameid_ = value; // @@protoc_insertion_point(field_set:GameListNewMessage.gameId) } // required .NetGameMode gameMode = 2; inline bool GameListNewMessage::has_gamemode() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void GameListNewMessage::set_has_gamemode() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameListNewMessage::clear_has_gamemode() { - _has_bits_[0] &= ~0x00000002u; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void GameListNewMessage::clear_gamemode() { gamemode_ = 1; - clear_has_gamemode(); + _has_bits_[0] &= ~0x00000010u; } inline ::NetGameMode GameListNewMessage::gamemode() const { // @@protoc_insertion_point(field_get:GameListNewMessage.gameMode) @@ -14228,7 +16444,7 @@ inline ::NetGameMode GameListNewMessage::gamemode() const { } inline void GameListNewMessage::set_gamemode(::NetGameMode value) { assert(::NetGameMode_IsValid(value)); - set_has_gamemode(); + _has_bits_[0] |= 0x00000010u; gamemode_ = value; // @@protoc_insertion_point(field_set:GameListNewMessage.gameMode) } @@ -14237,22 +16453,16 @@ inline void GameListNewMessage::set_gamemode(::NetGameMode value) { inline bool GameListNewMessage::has_isprivate() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void GameListNewMessage::set_has_isprivate() { - _has_bits_[0] |= 0x00000004u; -} -inline void GameListNewMessage::clear_has_isprivate() { - _has_bits_[0] &= ~0x00000004u; -} inline void GameListNewMessage::clear_isprivate() { isprivate_ = false; - clear_has_isprivate(); + _has_bits_[0] &= ~0x00000004u; } inline bool GameListNewMessage::isprivate() const { // @@protoc_insertion_point(field_get:GameListNewMessage.isPrivate) return isprivate_; } inline void GameListNewMessage::set_isprivate(bool value) { - set_has_isprivate(); + _has_bits_[0] |= 0x00000004u; isprivate_ = value; // @@protoc_insertion_point(field_set:GameListNewMessage.isPrivate) } @@ -14289,70 +16499,68 @@ GameListNewMessage::mutable_playerids() { // required uint32 adminPlayerId = 5; inline bool GameListNewMessage::has_adminplayerid() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void GameListNewMessage::set_has_adminplayerid() { - _has_bits_[0] |= 0x00000010u; -} -inline void GameListNewMessage::clear_has_adminplayerid() { - _has_bits_[0] &= ~0x00000010u; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void GameListNewMessage::clear_adminplayerid() { adminplayerid_ = 0u; - clear_has_adminplayerid(); + _has_bits_[0] &= ~0x00000008u; } 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) { - set_has_adminplayerid(); + _has_bits_[0] |= 0x00000008u; adminplayerid_ = value; // @@protoc_insertion_point(field_set:GameListNewMessage.adminPlayerId) } // required .NetGameInfo gameInfo = 6; inline bool GameListNewMessage::has_gameinfo() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void GameListNewMessage::set_has_gameinfo() { - _has_bits_[0] |= 0x00000020u; -} -inline void GameListNewMessage::clear_has_gameinfo() { - _has_bits_[0] &= ~0x00000020u; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void GameListNewMessage::clear_gameinfo() { - if (gameinfo_ != NULL) gameinfo_->::NetGameInfo::Clear(); - clear_has_gameinfo(); + if (gameinfo_ != nullptr) gameinfo_->Clear(); + _has_bits_[0] &= ~0x00000001u; } inline const ::NetGameInfo& GameListNewMessage::gameinfo() const { + const ::NetGameInfo* p = gameinfo_; // @@protoc_insertion_point(field_get:GameListNewMessage.gameInfo) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gameinfo_ != NULL ? *gameinfo_ : *default_instance().gameinfo_; -#else - return gameinfo_ != NULL ? *gameinfo_ : *default_instance_->gameinfo_; -#endif + 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; } inline ::NetGameInfo* GameListNewMessage::mutable_gameinfo() { - set_has_gameinfo(); - if (gameinfo_ == NULL) gameinfo_ = new ::NetGameInfo; + _has_bits_[0] |= 0x00000001u; + if (gameinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::NetGameInfo>(GetArenaNoVirtual()); + gameinfo_ = p; + } // @@protoc_insertion_point(field_mutable:GameListNewMessage.gameInfo) return gameinfo_; } -inline ::NetGameInfo* GameListNewMessage::release_gameinfo() { - clear_has_gameinfo(); - ::NetGameInfo* temp = gameinfo_; - gameinfo_ = NULL; - return temp; -} inline void GameListNewMessage::set_allocated_gameinfo(::NetGameInfo* gameinfo) { - delete gameinfo_; - gameinfo_ = gameinfo; - if (gameinfo) { - set_has_gameinfo(); - } else { - clear_has_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) } @@ -14394,22 +16602,16 @@ GameListNewMessage::mutable_spectatorids() { inline bool GameListUpdateMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GameListUpdateMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameListUpdateMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void GameListUpdateMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:GameListUpdateMessage.gameId) } @@ -14418,15 +16620,9 @@ inline void GameListUpdateMessage::set_gameid(::google::protobuf::uint32 value) inline bool GameListUpdateMessage::has_gamemode() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GameListUpdateMessage::set_has_gamemode() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameListUpdateMessage::clear_has_gamemode() { - _has_bits_[0] &= ~0x00000002u; -} inline void GameListUpdateMessage::clear_gamemode() { gamemode_ = 1; - clear_has_gamemode(); + _has_bits_[0] &= ~0x00000002u; } inline ::NetGameMode GameListUpdateMessage::gamemode() const { // @@protoc_insertion_point(field_get:GameListUpdateMessage.gameMode) @@ -14434,7 +16630,7 @@ inline ::NetGameMode GameListUpdateMessage::gamemode() const { } inline void GameListUpdateMessage::set_gamemode(::NetGameMode value) { assert(::NetGameMode_IsValid(value)); - set_has_gamemode(); + _has_bits_[0] |= 0x00000002u; gamemode_ = value; // @@protoc_insertion_point(field_set:GameListUpdateMessage.gameMode) } @@ -14447,22 +16643,16 @@ inline void GameListUpdateMessage::set_gamemode(::NetGameMode value) { inline bool GameListPlayerJoinedMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GameListPlayerJoinedMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameListPlayerJoinedMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void GameListPlayerJoinedMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:GameListPlayerJoinedMessage.gameId) } @@ -14471,22 +16661,16 @@ inline void GameListPlayerJoinedMessage::set_gameid(::google::protobuf::uint32 v inline bool GameListPlayerJoinedMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GameListPlayerJoinedMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameListPlayerJoinedMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; -} inline void GameListPlayerJoinedMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_playerid(); + _has_bits_[0] |= 0x00000002u; playerid_ = value; // @@protoc_insertion_point(field_set:GameListPlayerJoinedMessage.playerId) } @@ -14499,22 +16683,16 @@ inline void GameListPlayerJoinedMessage::set_playerid(::google::protobuf::uint32 inline bool GameListPlayerLeftMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GameListPlayerLeftMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameListPlayerLeftMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void GameListPlayerLeftMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:GameListPlayerLeftMessage.gameId) } @@ -14523,22 +16701,16 @@ inline void GameListPlayerLeftMessage::set_gameid(::google::protobuf::uint32 val inline bool GameListPlayerLeftMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GameListPlayerLeftMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameListPlayerLeftMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; -} inline void GameListPlayerLeftMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_playerid(); + _has_bits_[0] |= 0x00000002u; playerid_ = value; // @@protoc_insertion_point(field_set:GameListPlayerLeftMessage.playerId) } @@ -14551,22 +16723,16 @@ inline void GameListPlayerLeftMessage::set_playerid(::google::protobuf::uint32 v inline bool GameListSpectatorJoinedMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GameListSpectatorJoinedMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameListSpectatorJoinedMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void GameListSpectatorJoinedMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:GameListSpectatorJoinedMessage.gameId) } @@ -14575,22 +16741,16 @@ inline void GameListSpectatorJoinedMessage::set_gameid(::google::protobuf::uint3 inline bool GameListSpectatorJoinedMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GameListSpectatorJoinedMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameListSpectatorJoinedMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; -} inline void GameListSpectatorJoinedMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_playerid(); + _has_bits_[0] |= 0x00000002u; playerid_ = value; // @@protoc_insertion_point(field_set:GameListSpectatorJoinedMessage.playerId) } @@ -14603,22 +16763,16 @@ inline void GameListSpectatorJoinedMessage::set_playerid(::google::protobuf::uin inline bool GameListSpectatorLeftMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GameListSpectatorLeftMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameListSpectatorLeftMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void GameListSpectatorLeftMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:GameListSpectatorLeftMessage.gameId) } @@ -14627,22 +16781,16 @@ inline void GameListSpectatorLeftMessage::set_gameid(::google::protobuf::uint32 inline bool GameListSpectatorLeftMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GameListSpectatorLeftMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameListSpectatorLeftMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; -} inline void GameListSpectatorLeftMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_playerid(); + _has_bits_[0] |= 0x00000002u; playerid_ = value; // @@protoc_insertion_point(field_set:GameListSpectatorLeftMessage.playerId) } @@ -14655,22 +16803,16 @@ inline void GameListSpectatorLeftMessage::set_playerid(::google::protobuf::uint3 inline bool GameListAdminChangedMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GameListAdminChangedMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameListAdminChangedMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void GameListAdminChangedMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:GameListAdminChangedMessage.gameId) } @@ -14679,22 +16821,16 @@ inline void GameListAdminChangedMessage::set_gameid(::google::protobuf::uint32 v inline bool GameListAdminChangedMessage::has_newadminplayerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GameListAdminChangedMessage::set_has_newadminplayerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameListAdminChangedMessage::clear_has_newadminplayerid() { - _has_bits_[0] &= ~0x00000002u; -} inline void GameListAdminChangedMessage::clear_newadminplayerid() { newadminplayerid_ = 0u; - clear_has_newadminplayerid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_newadminplayerid(); + _has_bits_[0] |= 0x00000002u; newadminplayerid_ = value; // @@protoc_insertion_point(field_set:GameListAdminChangedMessage.newAdminPlayerId) } @@ -14739,17 +16875,11 @@ PlayerInfoRequestMessage::mutable_playerid() { // required .NetAvatarType avatarType = 1; inline bool PlayerInfoReplyMessage_PlayerInfoData_AvatarData::has_avatartype() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_has_avatartype() { - _has_bits_[0] |= 0x00000001u; -} -inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::clear_has_avatartype() { - _has_bits_[0] &= ~0x00000001u; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::clear_avatartype() { avatartype_ = 1; - clear_has_avatartype(); + _has_bits_[0] &= ~0x00000002u; } inline ::NetAvatarType PlayerInfoReplyMessage_PlayerInfoData_AvatarData::avatartype() const { // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarType) @@ -14757,84 +16887,68 @@ inline ::NetAvatarType PlayerInfoReplyMessage_PlayerInfoData_AvatarData::avatart } inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_avatartype(::NetAvatarType value) { assert(::NetAvatarType_IsValid(value)); - set_has_avatartype(); + _has_bits_[0] |= 0x00000002u; 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] & 0x00000002u) != 0; -} -inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_has_avatarhash() { - _has_bits_[0] |= 0x00000002u; -} -inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::clear_has_avatarhash() { - _has_bits_[0] &= ~0x00000002u; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::clear_avatarhash() { - if (avatarhash_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - avatarhash_->clear(); - } - clear_has_avatarhash(); + avatarhash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } inline const ::std::string& PlayerInfoReplyMessage_PlayerInfoData_AvatarData::avatarhash() const { // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarHash) - return *avatarhash_; + return avatarhash_.GetNoArena(); } inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_avatarhash(const ::std::string& value) { - set_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - avatarhash_ = new ::std::string; - } - avatarhash_->assign(value); + _has_bits_[0] |= 0x00000001u; + avatarhash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarHash) } +#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) { - set_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - avatarhash_ = new ::std::string; - } - avatarhash_->assign(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) } inline void PlayerInfoReplyMessage_PlayerInfoData_AvatarData::set_avatarhash(const void* value, size_t size) { - set_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - avatarhash_ = new ::std::string; - } - avatarhash_->assign(reinterpret_cast(value), 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) } inline ::std::string* PlayerInfoReplyMessage_PlayerInfoData_AvatarData::mutable_avatarhash() { - set_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - avatarhash_ = new ::std::string; - } + _has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_mutable:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarHash) - return avatarhash_; + return avatarhash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* PlayerInfoReplyMessage_PlayerInfoData_AvatarData::release_avatarhash() { - clear_has_avatarhash(); - if (avatarhash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = avatarhash_; - avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete avatarhash_; - } - if (avatarhash) { - set_has_avatarhash(); - avatarhash_ = avatarhash; + if (avatarhash != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_avatarhash(); - avatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } + avatarhash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), avatarhash); // @@protoc_insertion_point(field_set_allocated:PlayerInfoReplyMessage.PlayerInfoData.AvatarData.avatarHash) } @@ -14846,115 +16960,87 @@ 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::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::GetEmptyStringAlreadyInited()) { - playername_->clear(); - } - clear_has_playername(); + playername_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } inline const ::std::string& PlayerInfoReplyMessage_PlayerInfoData::playername() const { // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.PlayerInfoData.playerName) - return *playername_; + return playername_.GetNoArena(); } inline void PlayerInfoReplyMessage_PlayerInfoData::set_playername(const ::std::string& value) { - set_has_playername(); - if (playername_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - playername_ = new ::std::string; - } - playername_->assign(value); + _has_bits_[0] |= 0x00000001u; + playername_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:PlayerInfoReplyMessage.PlayerInfoData.playerName) } +#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) { - set_has_playername(); - if (playername_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - playername_ = new ::std::string; - } - playername_->assign(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) } inline void PlayerInfoReplyMessage_PlayerInfoData::set_playername(const char* value, size_t size) { - set_has_playername(); - if (playername_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - playername_ = new ::std::string; - } - playername_->assign(reinterpret_cast(value), 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) } inline ::std::string* PlayerInfoReplyMessage_PlayerInfoData::mutable_playername() { - set_has_playername(); - if (playername_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - playername_ = new ::std::string; - } + _has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_mutable:PlayerInfoReplyMessage.PlayerInfoData.playerName) - return playername_; + return playername_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* PlayerInfoReplyMessage_PlayerInfoData::release_playername() { - clear_has_playername(); - if (playername_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = playername_; - playername_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete playername_; - } - if (playername) { - set_has_playername(); - playername_ = playername; + if (playername != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_playername(); - playername_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } + 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] & 0x00000002u) != 0; -} -inline void PlayerInfoReplyMessage_PlayerInfoData::set_has_ishuman() { - _has_bits_[0] |= 0x00000002u; -} -inline void PlayerInfoReplyMessage_PlayerInfoData::clear_has_ishuman() { - _has_bits_[0] &= ~0x00000002u; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void PlayerInfoReplyMessage_PlayerInfoData::clear_ishuman() { ishuman_ = false; - clear_has_ishuman(); + _has_bits_[0] &= ~0x00000008u; } inline bool PlayerInfoReplyMessage_PlayerInfoData::ishuman() const { // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.PlayerInfoData.isHuman) return ishuman_; } inline void PlayerInfoReplyMessage_PlayerInfoData::set_ishuman(bool value) { - set_has_ishuman(); + _has_bits_[0] |= 0x00000008u; 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] & 0x00000004u) != 0; -} -inline void PlayerInfoReplyMessage_PlayerInfoData::set_has_playerrights() { - _has_bits_[0] |= 0x00000004u; -} -inline void PlayerInfoReplyMessage_PlayerInfoData::clear_has_playerrights() { - _has_bits_[0] &= ~0x00000004u; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void PlayerInfoReplyMessage_PlayerInfoData::clear_playerrights() { playerrights_ = 1; - clear_has_playerrights(); + _has_bits_[0] &= ~0x00000010u; } inline ::NetPlayerInfoRights PlayerInfoReplyMessage_PlayerInfoData::playerrights() const { // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.PlayerInfoData.playerRights) @@ -14962,129 +17048,117 @@ inline ::NetPlayerInfoRights PlayerInfoReplyMessage_PlayerInfoData::playerrights } inline void PlayerInfoReplyMessage_PlayerInfoData::set_playerrights(::NetPlayerInfoRights value) { assert(::NetPlayerInfoRights_IsValid(value)); - set_has_playerrights(); + _has_bits_[0] |= 0x00000010u; 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] & 0x00000008u) != 0; -} -inline void PlayerInfoReplyMessage_PlayerInfoData::set_has_countrycode() { - _has_bits_[0] |= 0x00000008u; -} -inline void PlayerInfoReplyMessage_PlayerInfoData::clear_has_countrycode() { - _has_bits_[0] &= ~0x00000008u; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void PlayerInfoReplyMessage_PlayerInfoData::clear_countrycode() { - if (countrycode_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - countrycode_->clear(); - } - clear_has_countrycode(); + countrycode_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000002u; } inline const ::std::string& PlayerInfoReplyMessage_PlayerInfoData::countrycode() const { // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.PlayerInfoData.countryCode) - return *countrycode_; + return countrycode_.GetNoArena(); } inline void PlayerInfoReplyMessage_PlayerInfoData::set_countrycode(const ::std::string& value) { - set_has_countrycode(); - if (countrycode_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - countrycode_ = new ::std::string; - } - countrycode_->assign(value); + _has_bits_[0] |= 0x00000002u; + countrycode_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:PlayerInfoReplyMessage.PlayerInfoData.countryCode) } +#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) { - set_has_countrycode(); - if (countrycode_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - countrycode_ = new ::std::string; - } - countrycode_->assign(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) } inline void PlayerInfoReplyMessage_PlayerInfoData::set_countrycode(const char* value, size_t size) { - set_has_countrycode(); - if (countrycode_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - countrycode_ = new ::std::string; - } - countrycode_->assign(reinterpret_cast(value), 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) } inline ::std::string* PlayerInfoReplyMessage_PlayerInfoData::mutable_countrycode() { - set_has_countrycode(); - if (countrycode_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - countrycode_ = new ::std::string; - } + _has_bits_[0] |= 0x00000002u; // @@protoc_insertion_point(field_mutable:PlayerInfoReplyMessage.PlayerInfoData.countryCode) - return countrycode_; + return countrycode_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* PlayerInfoReplyMessage_PlayerInfoData::release_countrycode() { - clear_has_countrycode(); - if (countrycode_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = countrycode_; - countrycode_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete countrycode_; - } - if (countrycode) { - set_has_countrycode(); - countrycode_ = countrycode; + if (countrycode != nullptr) { + _has_bits_[0] |= 0x00000002u; } else { - clear_has_countrycode(); - countrycode_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000002u; } + 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] & 0x00000010u) != 0; -} -inline void PlayerInfoReplyMessage_PlayerInfoData::set_has_avatardata() { - _has_bits_[0] |= 0x00000010u; -} -inline void PlayerInfoReplyMessage_PlayerInfoData::clear_has_avatardata() { - _has_bits_[0] &= ~0x00000010u; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void PlayerInfoReplyMessage_PlayerInfoData::clear_avatardata() { - if (avatardata_ != NULL) avatardata_->::PlayerInfoReplyMessage_PlayerInfoData_AvatarData::Clear(); - clear_has_avatardata(); + if (avatardata_ != nullptr) avatardata_->Clear(); + _has_bits_[0] &= ~0x00000004u; } inline const ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData& PlayerInfoReplyMessage_PlayerInfoData::avatardata() const { + const ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* p = avatardata_; // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.PlayerInfoData.avatarData) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return avatardata_ != NULL ? *avatardata_ : *default_instance().avatardata_; -#else - return avatardata_ != NULL ? *avatardata_ : *default_instance_->avatardata_; -#endif + 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; } inline ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* PlayerInfoReplyMessage_PlayerInfoData::mutable_avatardata() { - set_has_avatardata(); - if (avatardata_ == NULL) avatardata_ = new ::PlayerInfoReplyMessage_PlayerInfoData_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) return avatardata_; } -inline ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* PlayerInfoReplyMessage_PlayerInfoData::release_avatardata() { - clear_has_avatardata(); - ::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* temp = avatardata_; - avatardata_ = NULL; - return temp; -} inline void PlayerInfoReplyMessage_PlayerInfoData::set_allocated_avatardata(::PlayerInfoReplyMessage_PlayerInfoData_AvatarData* avatardata) { - delete avatardata_; - avatardata_ = avatardata; - if (avatardata) { - set_has_avatardata(); - } else { - clear_has_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) } @@ -15094,70 +17168,68 @@ inline void PlayerInfoReplyMessage_PlayerInfoData::set_allocated_avatardata(::Pl // required uint32 playerId = 1; inline bool PlayerInfoReplyMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void PlayerInfoReplyMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000001u; -} -inline void PlayerInfoReplyMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000001u; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void PlayerInfoReplyMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_playerid(); + _has_bits_[0] |= 0x00000002u; playerid_ = value; // @@protoc_insertion_point(field_set:PlayerInfoReplyMessage.playerId) } // optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; inline bool PlayerInfoReplyMessage::has_playerinfodata() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void PlayerInfoReplyMessage::set_has_playerinfodata() { - _has_bits_[0] |= 0x00000002u; -} -inline void PlayerInfoReplyMessage::clear_has_playerinfodata() { - _has_bits_[0] &= ~0x00000002u; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void PlayerInfoReplyMessage::clear_playerinfodata() { - if (playerinfodata_ != NULL) playerinfodata_->::PlayerInfoReplyMessage_PlayerInfoData::Clear(); - clear_has_playerinfodata(); + if (playerinfodata_ != nullptr) playerinfodata_->Clear(); + _has_bits_[0] &= ~0x00000001u; } inline const ::PlayerInfoReplyMessage_PlayerInfoData& PlayerInfoReplyMessage::playerinfodata() const { + const ::PlayerInfoReplyMessage_PlayerInfoData* p = playerinfodata_; // @@protoc_insertion_point(field_get:PlayerInfoReplyMessage.playerInfoData) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return playerinfodata_ != NULL ? *playerinfodata_ : *default_instance().playerinfodata_; -#else - return playerinfodata_ != NULL ? *playerinfodata_ : *default_instance_->playerinfodata_; -#endif + 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; } inline ::PlayerInfoReplyMessage_PlayerInfoData* PlayerInfoReplyMessage::mutable_playerinfodata() { - set_has_playerinfodata(); - if (playerinfodata_ == NULL) playerinfodata_ = new ::PlayerInfoReplyMessage_PlayerInfoData; + _has_bits_[0] |= 0x00000001u; + if (playerinfodata_ == nullptr) { + auto* p = CreateMaybeMessage<::PlayerInfoReplyMessage_PlayerInfoData>(GetArenaNoVirtual()); + playerinfodata_ = p; + } // @@protoc_insertion_point(field_mutable:PlayerInfoReplyMessage.playerInfoData) return playerinfodata_; } -inline ::PlayerInfoReplyMessage_PlayerInfoData* PlayerInfoReplyMessage::release_playerinfodata() { - clear_has_playerinfodata(); - ::PlayerInfoReplyMessage_PlayerInfoData* temp = playerinfodata_; - playerinfodata_ = NULL; - return temp; -} inline void PlayerInfoReplyMessage::set_allocated_playerinfodata(::PlayerInfoReplyMessage_PlayerInfoData* playerinfodata) { - delete playerinfodata_; - playerinfodata_ = playerinfodata; - if (playerinfodata) { - set_has_playerinfodata(); - } else { - clear_has_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) } @@ -15169,15 +17241,9 @@ inline void PlayerInfoReplyMessage::set_allocated_playerinfodata(::PlayerInfoRep inline bool SubscriptionRequestMessage::has_subscriptionaction() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void SubscriptionRequestMessage::set_has_subscriptionaction() { - _has_bits_[0] |= 0x00000001u; -} -inline void SubscriptionRequestMessage::clear_has_subscriptionaction() { - _has_bits_[0] &= ~0x00000001u; -} inline void SubscriptionRequestMessage::clear_subscriptionaction() { subscriptionaction_ = 1; - clear_has_subscriptionaction(); + _has_bits_[0] &= ~0x00000001u; } inline ::SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessage::subscriptionaction() const { // @@protoc_insertion_point(field_get:SubscriptionRequestMessage.subscriptionAction) @@ -15185,7 +17251,7 @@ inline ::SubscriptionRequestMessage_SubscriptionAction SubscriptionRequestMessag } inline void SubscriptionRequestMessage::set_subscriptionaction(::SubscriptionRequestMessage_SubscriptionAction value) { assert(::SubscriptionRequestMessage_SubscriptionAction_IsValid(value)); - set_has_subscriptionaction(); + _has_bits_[0] |= 0x00000001u; subscriptionaction_ = value; // @@protoc_insertion_point(field_set:SubscriptionRequestMessage.subscriptionAction) } @@ -15196,101 +17262,79 @@ inline void SubscriptionRequestMessage::set_subscriptionaction(::SubscriptionReq // required uint32 gameId = 1; inline bool JoinExistingGameMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void JoinExistingGameMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void JoinExistingGameMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void JoinExistingGameMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000002u; gameid_ = value; // @@protoc_insertion_point(field_set:JoinExistingGameMessage.gameId) } // optional string password = 2; inline bool JoinExistingGameMessage::has_password() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void JoinExistingGameMessage::set_has_password() { - _has_bits_[0] |= 0x00000002u; -} -inline void JoinExistingGameMessage::clear_has_password() { - _has_bits_[0] &= ~0x00000002u; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void JoinExistingGameMessage::clear_password() { - if (password_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - password_->clear(); - } - clear_has_password(); + password_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } inline const ::std::string& JoinExistingGameMessage::password() const { // @@protoc_insertion_point(field_get:JoinExistingGameMessage.password) - return *password_; + return password_.GetNoArena(); } inline void JoinExistingGameMessage::set_password(const ::std::string& value) { - set_has_password(); - if (password_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - password_ = new ::std::string; - } - password_->assign(value); + _has_bits_[0] |= 0x00000001u; + password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:JoinExistingGameMessage.password) } +#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) { - set_has_password(); - if (password_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - password_ = new ::std::string; - } - password_->assign(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) } inline void JoinExistingGameMessage::set_password(const char* value, size_t size) { - set_has_password(); - if (password_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - password_ = new ::std::string; - } - password_->assign(reinterpret_cast(value), 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) } inline ::std::string* JoinExistingGameMessage::mutable_password() { - set_has_password(); - if (password_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - password_ = new ::std::string; - } + _has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_mutable:JoinExistingGameMessage.password) - return password_; + return password_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* JoinExistingGameMessage::release_password() { - clear_has_password(); - if (password_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = password_; - password_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete password_; - } - if (password) { - set_has_password(); - password_ = password; + if (password != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_password(); - password_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } + password_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), password); // @@protoc_insertion_point(field_set_allocated:JoinExistingGameMessage.password) } @@ -15298,22 +17342,16 @@ inline void JoinExistingGameMessage::set_allocated_password(::std::string* passw inline bool JoinExistingGameMessage::has_autoleave() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void JoinExistingGameMessage::set_has_autoleave() { - _has_bits_[0] |= 0x00000004u; -} -inline void JoinExistingGameMessage::clear_has_autoleave() { - _has_bits_[0] &= ~0x00000004u; -} inline void JoinExistingGameMessage::clear_autoleave() { autoleave_ = false; - clear_has_autoleave(); + _has_bits_[0] &= ~0x00000004u; } inline bool JoinExistingGameMessage::autoleave() const { // @@protoc_insertion_point(field_get:JoinExistingGameMessage.autoLeave) return autoleave_; } inline void JoinExistingGameMessage::set_autoleave(bool value) { - set_has_autoleave(); + _has_bits_[0] |= 0x00000004u; autoleave_ = value; // @@protoc_insertion_point(field_set:JoinExistingGameMessage.autoLeave) } @@ -15322,22 +17360,16 @@ inline void JoinExistingGameMessage::set_autoleave(bool value) { inline bool JoinExistingGameMessage::has_spectateonly() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void JoinExistingGameMessage::set_has_spectateonly() { - _has_bits_[0] |= 0x00000008u; -} -inline void JoinExistingGameMessage::clear_has_spectateonly() { - _has_bits_[0] &= ~0x00000008u; -} inline void JoinExistingGameMessage::clear_spectateonly() { spectateonly_ = false; - clear_has_spectateonly(); + _has_bits_[0] &= ~0x00000008u; } inline bool JoinExistingGameMessage::spectateonly() const { // @@protoc_insertion_point(field_get:JoinExistingGameMessage.spectateOnly) return spectateonly_; } inline void JoinExistingGameMessage::set_spectateonly(bool value) { - set_has_spectateonly(); + _has_bits_[0] |= 0x00000008u; spectateonly_ = value; // @@protoc_insertion_point(field_set:JoinExistingGameMessage.spectateOnly) } @@ -15348,122 +17380,110 @@ inline void JoinExistingGameMessage::set_spectateonly(bool value) { // required .NetGameInfo gameInfo = 1; inline bool JoinNewGameMessage::has_gameinfo() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void JoinNewGameMessage::set_has_gameinfo() { - _has_bits_[0] |= 0x00000001u; -} -inline void JoinNewGameMessage::clear_has_gameinfo() { - _has_bits_[0] &= ~0x00000001u; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void JoinNewGameMessage::clear_gameinfo() { - if (gameinfo_ != NULL) gameinfo_->::NetGameInfo::Clear(); - clear_has_gameinfo(); + if (gameinfo_ != nullptr) gameinfo_->Clear(); + _has_bits_[0] &= ~0x00000002u; } inline const ::NetGameInfo& JoinNewGameMessage::gameinfo() const { + const ::NetGameInfo* p = gameinfo_; // @@protoc_insertion_point(field_get:JoinNewGameMessage.gameInfo) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gameinfo_ != NULL ? *gameinfo_ : *default_instance().gameinfo_; -#else - return gameinfo_ != NULL ? *gameinfo_ : *default_instance_->gameinfo_; -#endif + 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; } inline ::NetGameInfo* JoinNewGameMessage::mutable_gameinfo() { - set_has_gameinfo(); - if (gameinfo_ == NULL) gameinfo_ = new ::NetGameInfo; + _has_bits_[0] |= 0x00000002u; + if (gameinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::NetGameInfo>(GetArenaNoVirtual()); + gameinfo_ = p; + } // @@protoc_insertion_point(field_mutable:JoinNewGameMessage.gameInfo) return gameinfo_; } -inline ::NetGameInfo* JoinNewGameMessage::release_gameinfo() { - clear_has_gameinfo(); - ::NetGameInfo* temp = gameinfo_; - gameinfo_ = NULL; - return temp; -} inline void JoinNewGameMessage::set_allocated_gameinfo(::NetGameInfo* gameinfo) { - delete gameinfo_; - gameinfo_ = gameinfo; - if (gameinfo) { - set_has_gameinfo(); - } else { - clear_has_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) } // optional string password = 2; inline bool JoinNewGameMessage::has_password() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void JoinNewGameMessage::set_has_password() { - _has_bits_[0] |= 0x00000002u; -} -inline void JoinNewGameMessage::clear_has_password() { - _has_bits_[0] &= ~0x00000002u; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void JoinNewGameMessage::clear_password() { - if (password_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - password_->clear(); - } - clear_has_password(); + password_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } inline const ::std::string& JoinNewGameMessage::password() const { // @@protoc_insertion_point(field_get:JoinNewGameMessage.password) - return *password_; + return password_.GetNoArena(); } inline void JoinNewGameMessage::set_password(const ::std::string& value) { - set_has_password(); - if (password_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - password_ = new ::std::string; - } - password_->assign(value); + _has_bits_[0] |= 0x00000001u; + password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:JoinNewGameMessage.password) } +#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) { - set_has_password(); - if (password_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - password_ = new ::std::string; - } - password_->assign(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) } inline void JoinNewGameMessage::set_password(const char* value, size_t size) { - set_has_password(); - if (password_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - password_ = new ::std::string; - } - password_->assign(reinterpret_cast(value), 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) } inline ::std::string* JoinNewGameMessage::mutable_password() { - set_has_password(); - if (password_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - password_ = new ::std::string; - } + _has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_mutable:JoinNewGameMessage.password) - return password_; + return password_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* JoinNewGameMessage::release_password() { - clear_has_password(); - if (password_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = password_; - password_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete password_; - } - if (password) { - set_has_password(); - password_ = password; + if (password != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_password(); - password_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } + password_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), password); // @@protoc_insertion_point(field_set_allocated:JoinNewGameMessage.password) } @@ -15471,22 +17491,16 @@ inline void JoinNewGameMessage::set_allocated_password(::std::string* password) inline bool JoinNewGameMessage::has_autoleave() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void JoinNewGameMessage::set_has_autoleave() { - _has_bits_[0] |= 0x00000004u; -} -inline void JoinNewGameMessage::clear_has_autoleave() { - _has_bits_[0] &= ~0x00000004u; -} inline void JoinNewGameMessage::clear_autoleave() { autoleave_ = false; - clear_has_autoleave(); + _has_bits_[0] &= ~0x00000004u; } inline bool JoinNewGameMessage::autoleave() const { // @@protoc_insertion_point(field_get:JoinNewGameMessage.autoLeave) return autoleave_; } inline void JoinNewGameMessage::set_autoleave(bool value) { - set_has_autoleave(); + _has_bits_[0] |= 0x00000004u; autoleave_ = value; // @@protoc_insertion_point(field_set:JoinNewGameMessage.autoLeave) } @@ -15499,22 +17513,16 @@ inline void JoinNewGameMessage::set_autoleave(bool value) { inline bool RejoinExistingGameMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void RejoinExistingGameMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void RejoinExistingGameMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void RejoinExistingGameMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:RejoinExistingGameMessage.gameId) } @@ -15523,22 +17531,16 @@ inline void RejoinExistingGameMessage::set_gameid(::google::protobuf::uint32 val inline bool RejoinExistingGameMessage::has_autoleave() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void RejoinExistingGameMessage::set_has_autoleave() { - _has_bits_[0] |= 0x00000002u; -} -inline void RejoinExistingGameMessage::clear_has_autoleave() { - _has_bits_[0] &= ~0x00000002u; -} inline void RejoinExistingGameMessage::clear_autoleave() { autoleave_ = false; - clear_has_autoleave(); + _has_bits_[0] &= ~0x00000002u; } inline bool RejoinExistingGameMessage::autoleave() const { // @@protoc_insertion_point(field_get:RejoinExistingGameMessage.autoLeave) return autoleave_; } inline void RejoinExistingGameMessage::set_autoleave(bool value) { - set_has_autoleave(); + _has_bits_[0] |= 0x00000002u; autoleave_ = value; // @@protoc_insertion_point(field_set:RejoinExistingGameMessage.autoLeave) } @@ -15549,94 +17551,86 @@ inline void RejoinExistingGameMessage::set_autoleave(bool value) { // required uint32 gameId = 1; inline bool JoinGameAckMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void JoinGameAckMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void JoinGameAckMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void JoinGameAckMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000002u; gameid_ = value; // @@protoc_insertion_point(field_set:JoinGameAckMessage.gameId) } // required bool areYouGameAdmin = 2; inline bool JoinGameAckMessage::has_areyougameadmin() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void JoinGameAckMessage::set_has_areyougameadmin() { - _has_bits_[0] |= 0x00000002u; -} -inline void JoinGameAckMessage::clear_has_areyougameadmin() { - _has_bits_[0] &= ~0x00000002u; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void JoinGameAckMessage::clear_areyougameadmin() { areyougameadmin_ = false; - clear_has_areyougameadmin(); + _has_bits_[0] &= ~0x00000004u; } inline bool JoinGameAckMessage::areyougameadmin() const { // @@protoc_insertion_point(field_get:JoinGameAckMessage.areYouGameAdmin) return areyougameadmin_; } inline void JoinGameAckMessage::set_areyougameadmin(bool value) { - set_has_areyougameadmin(); + _has_bits_[0] |= 0x00000004u; areyougameadmin_ = value; // @@protoc_insertion_point(field_set:JoinGameAckMessage.areYouGameAdmin) } // required .NetGameInfo gameInfo = 3; inline bool JoinGameAckMessage::has_gameinfo() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void JoinGameAckMessage::set_has_gameinfo() { - _has_bits_[0] |= 0x00000004u; -} -inline void JoinGameAckMessage::clear_has_gameinfo() { - _has_bits_[0] &= ~0x00000004u; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void JoinGameAckMessage::clear_gameinfo() { - if (gameinfo_ != NULL) gameinfo_->::NetGameInfo::Clear(); - clear_has_gameinfo(); + if (gameinfo_ != nullptr) gameinfo_->Clear(); + _has_bits_[0] &= ~0x00000001u; } inline const ::NetGameInfo& JoinGameAckMessage::gameinfo() const { + const ::NetGameInfo* p = gameinfo_; // @@protoc_insertion_point(field_get:JoinGameAckMessage.gameInfo) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gameinfo_ != NULL ? *gameinfo_ : *default_instance().gameinfo_; -#else - return gameinfo_ != NULL ? *gameinfo_ : *default_instance_->gameinfo_; -#endif + 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; } inline ::NetGameInfo* JoinGameAckMessage::mutable_gameinfo() { - set_has_gameinfo(); - if (gameinfo_ == NULL) gameinfo_ = new ::NetGameInfo; + _has_bits_[0] |= 0x00000001u; + if (gameinfo_ == nullptr) { + auto* p = CreateMaybeMessage<::NetGameInfo>(GetArenaNoVirtual()); + gameinfo_ = p; + } // @@protoc_insertion_point(field_mutable:JoinGameAckMessage.gameInfo) return gameinfo_; } -inline ::NetGameInfo* JoinGameAckMessage::release_gameinfo() { - clear_has_gameinfo(); - ::NetGameInfo* temp = gameinfo_; - gameinfo_ = NULL; - return temp; -} inline void JoinGameAckMessage::set_allocated_gameinfo(::NetGameInfo* gameinfo) { - delete gameinfo_; - gameinfo_ = gameinfo; - if (gameinfo) { - set_has_gameinfo(); - } else { - clear_has_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) } @@ -15644,22 +17638,16 @@ inline void JoinGameAckMessage::set_allocated_gameinfo(::NetGameInfo* gameinfo) inline bool JoinGameAckMessage::has_spectateonly() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void JoinGameAckMessage::set_has_spectateonly() { - _has_bits_[0] |= 0x00000008u; -} -inline void JoinGameAckMessage::clear_has_spectateonly() { - _has_bits_[0] &= ~0x00000008u; -} inline void JoinGameAckMessage::clear_spectateonly() { spectateonly_ = false; - clear_has_spectateonly(); + _has_bits_[0] &= ~0x00000008u; } inline bool JoinGameAckMessage::spectateonly() const { // @@protoc_insertion_point(field_get:JoinGameAckMessage.spectateOnly) return spectateonly_; } inline void JoinGameAckMessage::set_spectateonly(bool value) { - set_has_spectateonly(); + _has_bits_[0] |= 0x00000008u; spectateonly_ = value; // @@protoc_insertion_point(field_set:JoinGameAckMessage.spectateOnly) } @@ -15672,22 +17660,16 @@ inline void JoinGameAckMessage::set_spectateonly(bool value) { inline bool JoinGameFailedMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void JoinGameFailedMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void JoinGameFailedMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void JoinGameFailedMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:JoinGameFailedMessage.gameId) } @@ -15696,15 +17678,9 @@ inline void JoinGameFailedMessage::set_gameid(::google::protobuf::uint32 value) inline bool JoinGameFailedMessage::has_joingamefailurereason() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void JoinGameFailedMessage::set_has_joingamefailurereason() { - _has_bits_[0] |= 0x00000002u; -} -inline void JoinGameFailedMessage::clear_has_joingamefailurereason() { - _has_bits_[0] &= ~0x00000002u; -} inline void JoinGameFailedMessage::clear_joingamefailurereason() { joingamefailurereason_ = 1; - clear_has_joingamefailurereason(); + _has_bits_[0] &= ~0x00000002u; } inline ::JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::joingamefailurereason() const { // @@protoc_insertion_point(field_get:JoinGameFailedMessage.joinGameFailureReason) @@ -15712,7 +17688,7 @@ inline ::JoinGameFailedMessage_JoinGameFailureReason JoinGameFailedMessage::join } inline void JoinGameFailedMessage::set_joingamefailurereason(::JoinGameFailedMessage_JoinGameFailureReason value) { assert(::JoinGameFailedMessage_JoinGameFailureReason_IsValid(value)); - set_has_joingamefailurereason(); + _has_bits_[0] |= 0x00000002u; joingamefailurereason_ = value; // @@protoc_insertion_point(field_set:JoinGameFailedMessage.joinGameFailureReason) } @@ -15725,22 +17701,16 @@ inline void JoinGameFailedMessage::set_joingamefailurereason(::JoinGameFailedMes inline bool GamePlayerJoinedMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GamePlayerJoinedMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GamePlayerJoinedMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void GamePlayerJoinedMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:GamePlayerJoinedMessage.gameId) } @@ -15749,22 +17719,16 @@ inline void GamePlayerJoinedMessage::set_gameid(::google::protobuf::uint32 value inline bool GamePlayerJoinedMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GamePlayerJoinedMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void GamePlayerJoinedMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; -} inline void GamePlayerJoinedMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_playerid(); + _has_bits_[0] |= 0x00000002u; playerid_ = value; // @@protoc_insertion_point(field_set:GamePlayerJoinedMessage.playerId) } @@ -15773,22 +17737,16 @@ inline void GamePlayerJoinedMessage::set_playerid(::google::protobuf::uint32 val inline bool GamePlayerJoinedMessage::has_isgameadmin() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void GamePlayerJoinedMessage::set_has_isgameadmin() { - _has_bits_[0] |= 0x00000004u; -} -inline void GamePlayerJoinedMessage::clear_has_isgameadmin() { - _has_bits_[0] &= ~0x00000004u; -} inline void GamePlayerJoinedMessage::clear_isgameadmin() { isgameadmin_ = false; - clear_has_isgameadmin(); + _has_bits_[0] &= ~0x00000004u; } inline bool GamePlayerJoinedMessage::isgameadmin() const { // @@protoc_insertion_point(field_get:GamePlayerJoinedMessage.isGameAdmin) return isgameadmin_; } inline void GamePlayerJoinedMessage::set_isgameadmin(bool value) { - set_has_isgameadmin(); + _has_bits_[0] |= 0x00000004u; isgameadmin_ = value; // @@protoc_insertion_point(field_set:GamePlayerJoinedMessage.isGameAdmin) } @@ -15801,22 +17759,16 @@ inline void GamePlayerJoinedMessage::set_isgameadmin(bool value) { inline bool GamePlayerLeftMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GamePlayerLeftMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GamePlayerLeftMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void GamePlayerLeftMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:GamePlayerLeftMessage.gameId) } @@ -15825,22 +17777,16 @@ inline void GamePlayerLeftMessage::set_gameid(::google::protobuf::uint32 value) inline bool GamePlayerLeftMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GamePlayerLeftMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void GamePlayerLeftMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; -} inline void GamePlayerLeftMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_playerid(); + _has_bits_[0] |= 0x00000002u; playerid_ = value; // @@protoc_insertion_point(field_set:GamePlayerLeftMessage.playerId) } @@ -15849,15 +17795,9 @@ inline void GamePlayerLeftMessage::set_playerid(::google::protobuf::uint32 value inline bool GamePlayerLeftMessage::has_gameplayerleftreason() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void GamePlayerLeftMessage::set_has_gameplayerleftreason() { - _has_bits_[0] |= 0x00000004u; -} -inline void GamePlayerLeftMessage::clear_has_gameplayerleftreason() { - _has_bits_[0] &= ~0x00000004u; -} inline void GamePlayerLeftMessage::clear_gameplayerleftreason() { gameplayerleftreason_ = 0; - clear_has_gameplayerleftreason(); + _has_bits_[0] &= ~0x00000004u; } inline ::GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::gameplayerleftreason() const { // @@protoc_insertion_point(field_get:GamePlayerLeftMessage.gamePlayerLeftReason) @@ -15865,7 +17805,7 @@ inline ::GamePlayerLeftMessage_GamePlayerLeftReason GamePlayerLeftMessage::gamep } inline void GamePlayerLeftMessage::set_gameplayerleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value) { assert(::GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(value)); - set_has_gameplayerleftreason(); + _has_bits_[0] |= 0x00000004u; gameplayerleftreason_ = value; // @@protoc_insertion_point(field_set:GamePlayerLeftMessage.gamePlayerLeftReason) } @@ -15878,22 +17818,16 @@ inline void GamePlayerLeftMessage::set_gameplayerleftreason(::GamePlayerLeftMess inline bool GameSpectatorJoinedMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GameSpectatorJoinedMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameSpectatorJoinedMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void GameSpectatorJoinedMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:GameSpectatorJoinedMessage.gameId) } @@ -15902,22 +17836,16 @@ inline void GameSpectatorJoinedMessage::set_gameid(::google::protobuf::uint32 va inline bool GameSpectatorJoinedMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GameSpectatorJoinedMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameSpectatorJoinedMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; -} inline void GameSpectatorJoinedMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_playerid(); + _has_bits_[0] |= 0x00000002u; playerid_ = value; // @@protoc_insertion_point(field_set:GameSpectatorJoinedMessage.playerId) } @@ -15930,22 +17858,16 @@ inline void GameSpectatorJoinedMessage::set_playerid(::google::protobuf::uint32 inline bool GameSpectatorLeftMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GameSpectatorLeftMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameSpectatorLeftMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void GameSpectatorLeftMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:GameSpectatorLeftMessage.gameId) } @@ -15954,22 +17876,16 @@ inline void GameSpectatorLeftMessage::set_gameid(::google::protobuf::uint32 valu inline bool GameSpectatorLeftMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GameSpectatorLeftMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameSpectatorLeftMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; -} inline void GameSpectatorLeftMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_playerid(); + _has_bits_[0] |= 0x00000002u; playerid_ = value; // @@protoc_insertion_point(field_set:GameSpectatorLeftMessage.playerId) } @@ -15978,15 +17894,9 @@ inline void GameSpectatorLeftMessage::set_playerid(::google::protobuf::uint32 va inline bool GameSpectatorLeftMessage::has_gamespectatorleftreason() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void GameSpectatorLeftMessage::set_has_gamespectatorleftreason() { - _has_bits_[0] |= 0x00000004u; -} -inline void GameSpectatorLeftMessage::clear_has_gamespectatorleftreason() { - _has_bits_[0] &= ~0x00000004u; -} inline void GameSpectatorLeftMessage::clear_gamespectatorleftreason() { gamespectatorleftreason_ = 0; - clear_has_gamespectatorleftreason(); + _has_bits_[0] &= ~0x00000004u; } inline ::GamePlayerLeftMessage_GamePlayerLeftReason GameSpectatorLeftMessage::gamespectatorleftreason() const { // @@protoc_insertion_point(field_get:GameSpectatorLeftMessage.gameSpectatorLeftReason) @@ -15994,7 +17904,7 @@ inline ::GamePlayerLeftMessage_GamePlayerLeftReason GameSpectatorLeftMessage::ga } inline void GameSpectatorLeftMessage::set_gamespectatorleftreason(::GamePlayerLeftMessage_GamePlayerLeftReason value) { assert(::GamePlayerLeftMessage_GamePlayerLeftReason_IsValid(value)); - set_has_gamespectatorleftreason(); + _has_bits_[0] |= 0x00000004u; gamespectatorleftreason_ = value; // @@protoc_insertion_point(field_set:GameSpectatorLeftMessage.gameSpectatorLeftReason) } @@ -16007,22 +17917,16 @@ inline void GameSpectatorLeftMessage::set_gamespectatorleftreason(::GamePlayerLe inline bool GameAdminChangedMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GameAdminChangedMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameAdminChangedMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void GameAdminChangedMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:GameAdminChangedMessage.gameId) } @@ -16031,22 +17935,16 @@ inline void GameAdminChangedMessage::set_gameid(::google::protobuf::uint32 value inline bool GameAdminChangedMessage::has_newadminplayerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GameAdminChangedMessage::set_has_newadminplayerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameAdminChangedMessage::clear_has_newadminplayerid() { - _has_bits_[0] &= ~0x00000002u; -} inline void GameAdminChangedMessage::clear_newadminplayerid() { newadminplayerid_ = 0u; - clear_has_newadminplayerid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_newadminplayerid(); + _has_bits_[0] |= 0x00000002u; newadminplayerid_ = value; // @@protoc_insertion_point(field_set:GameAdminChangedMessage.newAdminPlayerId) } @@ -16059,22 +17957,16 @@ inline void GameAdminChangedMessage::set_newadminplayerid(::google::protobuf::ui inline bool RemovedFromGameMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void RemovedFromGameMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void RemovedFromGameMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void RemovedFromGameMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:RemovedFromGameMessage.gameId) } @@ -16083,15 +17975,9 @@ inline void RemovedFromGameMessage::set_gameid(::google::protobuf::uint32 value) inline bool RemovedFromGameMessage::has_removedfromgamereason() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void RemovedFromGameMessage::set_has_removedfromgamereason() { - _has_bits_[0] |= 0x00000002u; -} -inline void RemovedFromGameMessage::clear_has_removedfromgamereason() { - _has_bits_[0] &= ~0x00000002u; -} inline void RemovedFromGameMessage::clear_removedfromgamereason() { removedfromgamereason_ = 0; - clear_has_removedfromgamereason(); + _has_bits_[0] &= ~0x00000002u; } inline ::RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::removedfromgamereason() const { // @@protoc_insertion_point(field_get:RemovedFromGameMessage.removedFromGameReason) @@ -16099,7 +17985,7 @@ inline ::RemovedFromGameMessage_RemovedFromGameReason RemovedFromGameMessage::re } inline void RemovedFromGameMessage::set_removedfromgamereason(::RemovedFromGameMessage_RemovedFromGameReason value) { assert(::RemovedFromGameMessage_RemovedFromGameReason_IsValid(value)); - set_has_removedfromgamereason(); + _has_bits_[0] |= 0x00000002u; removedfromgamereason_ = value; // @@protoc_insertion_point(field_set:RemovedFromGameMessage.removedFromGameReason) } @@ -16112,22 +17998,16 @@ inline void RemovedFromGameMessage::set_removedfromgamereason(::RemovedFromGameM inline bool KickPlayerRequestMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void KickPlayerRequestMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void KickPlayerRequestMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void KickPlayerRequestMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:KickPlayerRequestMessage.gameId) } @@ -16136,22 +18016,16 @@ inline void KickPlayerRequestMessage::set_gameid(::google::protobuf::uint32 valu inline bool KickPlayerRequestMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void KickPlayerRequestMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void KickPlayerRequestMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; -} inline void KickPlayerRequestMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_playerid(); + _has_bits_[0] |= 0x00000002u; playerid_ = value; // @@protoc_insertion_point(field_set:KickPlayerRequestMessage.playerId) } @@ -16164,22 +18038,16 @@ inline void KickPlayerRequestMessage::set_playerid(::google::protobuf::uint32 va inline bool LeaveGameRequestMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void LeaveGameRequestMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void LeaveGameRequestMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void LeaveGameRequestMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:LeaveGameRequestMessage.gameId) } @@ -16192,22 +18060,16 @@ inline void LeaveGameRequestMessage::set_gameid(::google::protobuf::uint32 value inline bool InvitePlayerToGameMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void InvitePlayerToGameMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void InvitePlayerToGameMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void InvitePlayerToGameMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:InvitePlayerToGameMessage.gameId) } @@ -16216,22 +18078,16 @@ inline void InvitePlayerToGameMessage::set_gameid(::google::protobuf::uint32 val inline bool InvitePlayerToGameMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void InvitePlayerToGameMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void InvitePlayerToGameMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; -} inline void InvitePlayerToGameMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_playerid(); + _has_bits_[0] |= 0x00000002u; playerid_ = value; // @@protoc_insertion_point(field_set:InvitePlayerToGameMessage.playerId) } @@ -16244,22 +18100,16 @@ inline void InvitePlayerToGameMessage::set_playerid(::google::protobuf::uint32 v inline bool InviteNotifyMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void InviteNotifyMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void InviteNotifyMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void InviteNotifyMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:InviteNotifyMessage.gameId) } @@ -16268,22 +18118,16 @@ inline void InviteNotifyMessage::set_gameid(::google::protobuf::uint32 value) { inline bool InviteNotifyMessage::has_playeridwho() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void InviteNotifyMessage::set_has_playeridwho() { - _has_bits_[0] |= 0x00000002u; -} -inline void InviteNotifyMessage::clear_has_playeridwho() { - _has_bits_[0] &= ~0x00000002u; -} inline void InviteNotifyMessage::clear_playeridwho() { playeridwho_ = 0u; - clear_has_playeridwho(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_playeridwho(); + _has_bits_[0] |= 0x00000002u; playeridwho_ = value; // @@protoc_insertion_point(field_set:InviteNotifyMessage.playerIdWho) } @@ -16292,22 +18136,16 @@ inline void InviteNotifyMessage::set_playeridwho(::google::protobuf::uint32 valu inline bool InviteNotifyMessage::has_playeridbywhom() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void InviteNotifyMessage::set_has_playeridbywhom() { - _has_bits_[0] |= 0x00000004u; -} -inline void InviteNotifyMessage::clear_has_playeridbywhom() { - _has_bits_[0] &= ~0x00000004u; -} inline void InviteNotifyMessage::clear_playeridbywhom() { playeridbywhom_ = 0u; - clear_has_playeridbywhom(); + _has_bits_[0] &= ~0x00000004u; } 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) { - set_has_playeridbywhom(); + _has_bits_[0] |= 0x00000004u; playeridbywhom_ = value; // @@protoc_insertion_point(field_set:InviteNotifyMessage.playerIdByWhom) } @@ -16320,22 +18158,16 @@ inline void InviteNotifyMessage::set_playeridbywhom(::google::protobuf::uint32 v inline bool RejectGameInvitationMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void RejectGameInvitationMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void RejectGameInvitationMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void RejectGameInvitationMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:RejectGameInvitationMessage.gameId) } @@ -16344,15 +18176,9 @@ inline void RejectGameInvitationMessage::set_gameid(::google::protobuf::uint32 v inline bool RejectGameInvitationMessage::has_myrejectreason() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void RejectGameInvitationMessage::set_has_myrejectreason() { - _has_bits_[0] |= 0x00000002u; -} -inline void RejectGameInvitationMessage::clear_has_myrejectreason() { - _has_bits_[0] &= ~0x00000002u; -} inline void RejectGameInvitationMessage::clear_myrejectreason() { myrejectreason_ = 0; - clear_has_myrejectreason(); + _has_bits_[0] &= ~0x00000002u; } inline ::RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMessage::myrejectreason() const { // @@protoc_insertion_point(field_get:RejectGameInvitationMessage.myRejectReason) @@ -16360,7 +18186,7 @@ inline ::RejectGameInvitationMessage_RejectGameInvReason RejectGameInvitationMes } inline void RejectGameInvitationMessage::set_myrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value) { assert(::RejectGameInvitationMessage_RejectGameInvReason_IsValid(value)); - set_has_myrejectreason(); + _has_bits_[0] |= 0x00000002u; myrejectreason_ = value; // @@protoc_insertion_point(field_set:RejectGameInvitationMessage.myRejectReason) } @@ -16373,22 +18199,16 @@ inline void RejectGameInvitationMessage::set_myrejectreason(::RejectGameInvitati inline bool RejectInvNotifyMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void RejectInvNotifyMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void RejectInvNotifyMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void RejectInvNotifyMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:RejectInvNotifyMessage.gameId) } @@ -16397,22 +18217,16 @@ inline void RejectInvNotifyMessage::set_gameid(::google::protobuf::uint32 value) inline bool RejectInvNotifyMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void RejectInvNotifyMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void RejectInvNotifyMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; -} inline void RejectInvNotifyMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_playerid(); + _has_bits_[0] |= 0x00000002u; playerid_ = value; // @@protoc_insertion_point(field_set:RejectInvNotifyMessage.playerId) } @@ -16421,15 +18235,9 @@ inline void RejectInvNotifyMessage::set_playerid(::google::protobuf::uint32 valu inline bool RejectInvNotifyMessage::has_playerrejectreason() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void RejectInvNotifyMessage::set_has_playerrejectreason() { - _has_bits_[0] |= 0x00000004u; -} -inline void RejectInvNotifyMessage::clear_has_playerrejectreason() { - _has_bits_[0] &= ~0x00000004u; -} inline void RejectInvNotifyMessage::clear_playerrejectreason() { playerrejectreason_ = 0; - clear_has_playerrejectreason(); + _has_bits_[0] &= ~0x00000004u; } inline ::RejectGameInvitationMessage_RejectGameInvReason RejectInvNotifyMessage::playerrejectreason() const { // @@protoc_insertion_point(field_get:RejectInvNotifyMessage.playerRejectReason) @@ -16437,7 +18245,7 @@ inline ::RejectGameInvitationMessage_RejectGameInvReason RejectInvNotifyMessage: } inline void RejectInvNotifyMessage::set_playerrejectreason(::RejectGameInvitationMessage_RejectGameInvReason value) { assert(::RejectGameInvitationMessage_RejectGameInvReason_IsValid(value)); - set_has_playerrejectreason(); + _has_bits_[0] |= 0x00000004u; playerrejectreason_ = value; // @@protoc_insertion_point(field_set:RejectInvNotifyMessage.playerRejectReason) } @@ -16450,22 +18258,16 @@ inline void RejectInvNotifyMessage::set_playerrejectreason(::RejectGameInvitatio inline bool StartEventMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void StartEventMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void StartEventMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void StartEventMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:StartEventMessage.gameId) } @@ -16474,15 +18276,9 @@ inline void StartEventMessage::set_gameid(::google::protobuf::uint32 value) { inline bool StartEventMessage::has_starteventtype() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void StartEventMessage::set_has_starteventtype() { - _has_bits_[0] |= 0x00000002u; -} -inline void StartEventMessage::clear_has_starteventtype() { - _has_bits_[0] &= ~0x00000002u; -} inline void StartEventMessage::clear_starteventtype() { starteventtype_ = 0; - clear_has_starteventtype(); + _has_bits_[0] &= ~0x00000002u; } inline ::StartEventMessage_StartEventType StartEventMessage::starteventtype() const { // @@protoc_insertion_point(field_get:StartEventMessage.startEventType) @@ -16490,7 +18286,7 @@ inline ::StartEventMessage_StartEventType StartEventMessage::starteventtype() co } inline void StartEventMessage::set_starteventtype(::StartEventMessage_StartEventType value) { assert(::StartEventMessage_StartEventType_IsValid(value)); - set_has_starteventtype(); + _has_bits_[0] |= 0x00000002u; starteventtype_ = value; // @@protoc_insertion_point(field_set:StartEventMessage.startEventType) } @@ -16499,22 +18295,16 @@ inline void StartEventMessage::set_starteventtype(::StartEventMessage_StartEvent inline bool StartEventMessage::has_fillwithcomputerplayers() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void StartEventMessage::set_has_fillwithcomputerplayers() { - _has_bits_[0] |= 0x00000004u; -} -inline void StartEventMessage::clear_has_fillwithcomputerplayers() { - _has_bits_[0] &= ~0x00000004u; -} inline void StartEventMessage::clear_fillwithcomputerplayers() { fillwithcomputerplayers_ = false; - clear_has_fillwithcomputerplayers(); + _has_bits_[0] &= ~0x00000004u; } inline bool StartEventMessage::fillwithcomputerplayers() const { // @@protoc_insertion_point(field_get:StartEventMessage.fillWithComputerPlayers) return fillwithcomputerplayers_; } inline void StartEventMessage::set_fillwithcomputerplayers(bool value) { - set_has_fillwithcomputerplayers(); + _has_bits_[0] |= 0x00000004u; fillwithcomputerplayers_ = value; // @@protoc_insertion_point(field_set:StartEventMessage.fillWithComputerPlayers) } @@ -16527,22 +18317,16 @@ inline void StartEventMessage::set_fillwithcomputerplayers(bool value) { inline bool StartEventAckMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void StartEventAckMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void StartEventAckMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void StartEventAckMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:StartEventAckMessage.gameId) } @@ -16555,22 +18339,16 @@ inline void StartEventAckMessage::set_gameid(::google::protobuf::uint32 value) { inline bool GameStartInitialMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GameStartInitialMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameStartInitialMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void GameStartInitialMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:GameStartInitialMessage.gameId) } @@ -16579,22 +18357,16 @@ inline void GameStartInitialMessage::set_gameid(::google::protobuf::uint32 value inline bool GameStartInitialMessage::has_startdealerplayerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GameStartInitialMessage::set_has_startdealerplayerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameStartInitialMessage::clear_has_startdealerplayerid() { - _has_bits_[0] &= ~0x00000002u; -} inline void GameStartInitialMessage::clear_startdealerplayerid() { startdealerplayerid_ = 0u; - clear_has_startdealerplayerid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_startdealerplayerid(); + _has_bits_[0] |= 0x00000002u; startdealerplayerid_ = value; // @@protoc_insertion_point(field_set:GameStartInitialMessage.startDealerPlayerId) } @@ -16637,22 +18409,16 @@ GameStartInitialMessage::mutable_playerseats() { inline bool GameStartRejoinMessage_RejoinPlayerData::has_playerid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GameStartRejoinMessage_RejoinPlayerData::set_has_playerid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameStartRejoinMessage_RejoinPlayerData::clear_has_playerid() { - _has_bits_[0] &= ~0x00000001u; -} inline void GameStartRejoinMessage_RejoinPlayerData::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_playerid(); + _has_bits_[0] |= 0x00000001u; playerid_ = value; // @@protoc_insertion_point(field_set:GameStartRejoinMessage.RejoinPlayerData.playerId) } @@ -16661,22 +18427,16 @@ inline void GameStartRejoinMessage_RejoinPlayerData::set_playerid(::google::prot inline bool GameStartRejoinMessage_RejoinPlayerData::has_playermoney() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GameStartRejoinMessage_RejoinPlayerData::set_has_playermoney() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameStartRejoinMessage_RejoinPlayerData::clear_has_playermoney() { - _has_bits_[0] &= ~0x00000002u; -} inline void GameStartRejoinMessage_RejoinPlayerData::clear_playermoney() { playermoney_ = 0u; - clear_has_playermoney(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_playermoney(); + _has_bits_[0] |= 0x00000002u; playermoney_ = value; // @@protoc_insertion_point(field_set:GameStartRejoinMessage.RejoinPlayerData.playerMoney) } @@ -16689,22 +18449,16 @@ inline void GameStartRejoinMessage_RejoinPlayerData::set_playermoney(::google::p inline bool GameStartRejoinMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GameStartRejoinMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void GameStartRejoinMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void GameStartRejoinMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:GameStartRejoinMessage.gameId) } @@ -16713,22 +18467,16 @@ inline void GameStartRejoinMessage::set_gameid(::google::protobuf::uint32 value) inline bool GameStartRejoinMessage::has_startdealerplayerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void GameStartRejoinMessage::set_has_startdealerplayerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void GameStartRejoinMessage::clear_has_startdealerplayerid() { - _has_bits_[0] &= ~0x00000002u; -} inline void GameStartRejoinMessage::clear_startdealerplayerid() { startdealerplayerid_ = 0u; - clear_has_startdealerplayerid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_startdealerplayerid(); + _has_bits_[0] |= 0x00000002u; startdealerplayerid_ = value; // @@protoc_insertion_point(field_set:GameStartRejoinMessage.startDealerPlayerId) } @@ -16737,22 +18485,16 @@ inline void GameStartRejoinMessage::set_startdealerplayerid(::google::protobuf:: inline bool GameStartRejoinMessage::has_handnum() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void GameStartRejoinMessage::set_has_handnum() { - _has_bits_[0] |= 0x00000004u; -} -inline void GameStartRejoinMessage::clear_has_handnum() { - _has_bits_[0] &= ~0x00000004u; -} inline void GameStartRejoinMessage::clear_handnum() { handnum_ = 0u; - clear_has_handnum(); + _has_bits_[0] &= ~0x00000004u; } 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) { - set_has_handnum(); + _has_bits_[0] |= 0x00000004u; handnum_ = value; // @@protoc_insertion_point(field_set:GameStartRejoinMessage.handNum) } @@ -16764,14 +18506,19 @@ inline int GameStartRejoinMessage::rejoinplayerdata_size() const { inline void GameStartRejoinMessage::clear_rejoinplayerdata() { rejoinplayerdata_.Clear(); } -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) { // @@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::add_rejoinplayerdata() { // @@protoc_insertion_point(field_add:GameStartRejoinMessage.rejoinPlayerData) return rejoinplayerdata_.Add(); @@ -16781,11 +18528,6 @@ GameStartRejoinMessage::rejoinplayerdata() const { // @@protoc_insertion_point(field_list:GameStartRejoinMessage.rejoinPlayerData) return rejoinplayerdata_; } -inline ::google::protobuf::RepeatedPtrField< ::GameStartRejoinMessage_RejoinPlayerData >* -GameStartRejoinMessage::mutable_rejoinplayerdata() { - // @@protoc_insertion_point(field_mutable_list:GameStartRejoinMessage.rejoinPlayerData) - return &rejoinplayerdata_; -} // ------------------------------------------------------------------- @@ -16795,22 +18537,16 @@ GameStartRejoinMessage::mutable_rejoinplayerdata() { inline bool HandStartMessage_PlainCards::has_plaincard1() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void HandStartMessage_PlainCards::set_has_plaincard1() { - _has_bits_[0] |= 0x00000001u; -} -inline void HandStartMessage_PlainCards::clear_has_plaincard1() { - _has_bits_[0] &= ~0x00000001u; -} inline void HandStartMessage_PlainCards::clear_plaincard1() { plaincard1_ = 0u; - clear_has_plaincard1(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_plaincard1(); + _has_bits_[0] |= 0x00000001u; plaincard1_ = value; // @@protoc_insertion_point(field_set:HandStartMessage.PlainCards.plainCard1) } @@ -16819,22 +18555,16 @@ inline void HandStartMessage_PlainCards::set_plaincard1(::google::protobuf::uint inline bool HandStartMessage_PlainCards::has_plaincard2() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void HandStartMessage_PlainCards::set_has_plaincard2() { - _has_bits_[0] |= 0x00000002u; -} -inline void HandStartMessage_PlainCards::clear_has_plaincard2() { - _has_bits_[0] &= ~0x00000002u; -} inline void HandStartMessage_PlainCards::clear_plaincard2() { plaincard2_ = 0u; - clear_has_plaincard2(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_plaincard2(); + _has_bits_[0] |= 0x00000002u; plaincard2_ = value; // @@protoc_insertion_point(field_set:HandStartMessage.PlainCards.plainCard2) } @@ -16845,24 +18575,18 @@ inline void HandStartMessage_PlainCards::set_plaincard2(::google::protobuf::uint // required uint32 gameId = 1; inline bool HandStartMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void HandStartMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void HandStartMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void HandStartMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000004u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000004u; gameid_ = value; // @@protoc_insertion_point(field_set:HandStartMessage.gameId) } @@ -16871,120 +18595,108 @@ inline void HandStartMessage::set_gameid(::google::protobuf::uint32 value) { inline bool HandStartMessage::has_plaincards() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void HandStartMessage::set_has_plaincards() { - _has_bits_[0] |= 0x00000002u; -} -inline void HandStartMessage::clear_has_plaincards() { +inline void HandStartMessage::clear_plaincards() { + if (plaincards_ != nullptr) plaincards_->Clear(); _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) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return plaincards_ != NULL ? *plaincards_ : *default_instance().plaincards_; -#else - return plaincards_ != NULL ? *plaincards_ : *default_instance_->plaincards_; -#endif + 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; } inline ::HandStartMessage_PlainCards* HandStartMessage::mutable_plaincards() { - set_has_plaincards(); - if (plaincards_ == NULL) plaincards_ = new ::HandStartMessage_PlainCards; + _has_bits_[0] |= 0x00000002u; + if (plaincards_ == nullptr) { + auto* p = CreateMaybeMessage<::HandStartMessage_PlainCards>(GetArenaNoVirtual()); + plaincards_ = p; + } // @@protoc_insertion_point(field_mutable:HandStartMessage.plainCards) return plaincards_; } -inline ::HandStartMessage_PlainCards* HandStartMessage::release_plaincards() { - clear_has_plaincards(); - ::HandStartMessage_PlainCards* temp = plaincards_; - plaincards_ = NULL; - return temp; -} inline void HandStartMessage::set_allocated_plaincards(::HandStartMessage_PlainCards* plaincards) { - delete plaincards_; - plaincards_ = plaincards; - if (plaincards) { - set_has_plaincards(); - } else { - clear_has_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) } // optional bytes encryptedCards = 3; inline bool HandStartMessage::has_encryptedcards() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void HandStartMessage::set_has_encryptedcards() { - _has_bits_[0] |= 0x00000004u; -} -inline void HandStartMessage::clear_has_encryptedcards() { - _has_bits_[0] &= ~0x00000004u; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void HandStartMessage::clear_encryptedcards() { - if (encryptedcards_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - encryptedcards_->clear(); - } - clear_has_encryptedcards(); + encryptedcards_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } inline const ::std::string& HandStartMessage::encryptedcards() const { // @@protoc_insertion_point(field_get:HandStartMessage.encryptedCards) - return *encryptedcards_; + return encryptedcards_.GetNoArena(); } inline void HandStartMessage::set_encryptedcards(const ::std::string& value) { - set_has_encryptedcards(); - if (encryptedcards_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - encryptedcards_ = new ::std::string; - } - encryptedcards_->assign(value); + _has_bits_[0] |= 0x00000001u; + encryptedcards_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:HandStartMessage.encryptedCards) } +#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) { - set_has_encryptedcards(); - if (encryptedcards_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - encryptedcards_ = new ::std::string; - } - encryptedcards_->assign(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) } inline void HandStartMessage::set_encryptedcards(const void* value, size_t size) { - set_has_encryptedcards(); - if (encryptedcards_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - encryptedcards_ = new ::std::string; - } - encryptedcards_->assign(reinterpret_cast(value), 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) } inline ::std::string* HandStartMessage::mutable_encryptedcards() { - set_has_encryptedcards(); - if (encryptedcards_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - encryptedcards_ = new ::std::string; - } + _has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_mutable:HandStartMessage.encryptedCards) - return encryptedcards_; + return encryptedcards_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* HandStartMessage::release_encryptedcards() { - clear_has_encryptedcards(); - if (encryptedcards_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = encryptedcards_; - encryptedcards_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete encryptedcards_; - } - if (encryptedcards) { - set_has_encryptedcards(); - encryptedcards_ = encryptedcards; + if (encryptedcards != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_encryptedcards(); - encryptedcards_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } + encryptedcards_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), encryptedcards); // @@protoc_insertion_point(field_set_allocated:HandStartMessage.encryptedCards) } @@ -16992,22 +18704,16 @@ inline void HandStartMessage::set_allocated_encryptedcards(::std::string* encryp inline bool HandStartMessage::has_smallblind() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void HandStartMessage::set_has_smallblind() { - _has_bits_[0] |= 0x00000008u; -} -inline void HandStartMessage::clear_has_smallblind() { - _has_bits_[0] &= ~0x00000008u; -} inline void HandStartMessage::clear_smallblind() { smallblind_ = 0u; - clear_has_smallblind(); + _has_bits_[0] &= ~0x00000008u; } 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) { - set_has_smallblind(); + _has_bits_[0] |= 0x00000008u; smallblind_ = value; // @@protoc_insertion_point(field_set:HandStartMessage.smallBlind) } @@ -17046,24 +18752,18 @@ HandStartMessage::mutable_seatstates() { // optional uint32 dealerPlayerId = 6; inline bool HandStartMessage::has_dealerplayerid() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void HandStartMessage::set_has_dealerplayerid() { - _has_bits_[0] |= 0x00000020u; -} -inline void HandStartMessage::clear_has_dealerplayerid() { - _has_bits_[0] &= ~0x00000020u; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void HandStartMessage::clear_dealerplayerid() { dealerplayerid_ = 0u; - clear_has_dealerplayerid(); + _has_bits_[0] &= ~0x00000010u; } 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) { - set_has_dealerplayerid(); + _has_bits_[0] |= 0x00000010u; dealerplayerid_ = value; // @@protoc_insertion_point(field_set:HandStartMessage.dealerPlayerId) } @@ -17076,22 +18776,16 @@ inline void HandStartMessage::set_dealerplayerid(::google::protobuf::uint32 valu inline bool PlayersTurnMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void PlayersTurnMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void PlayersTurnMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void PlayersTurnMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:PlayersTurnMessage.gameId) } @@ -17100,22 +18794,16 @@ inline void PlayersTurnMessage::set_gameid(::google::protobuf::uint32 value) { inline bool PlayersTurnMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void PlayersTurnMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void PlayersTurnMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; -} inline void PlayersTurnMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_playerid(); + _has_bits_[0] |= 0x00000002u; playerid_ = value; // @@protoc_insertion_point(field_set:PlayersTurnMessage.playerId) } @@ -17124,15 +18812,9 @@ inline void PlayersTurnMessage::set_playerid(::google::protobuf::uint32 value) { inline bool PlayersTurnMessage::has_gamestate() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void PlayersTurnMessage::set_has_gamestate() { - _has_bits_[0] |= 0x00000004u; -} -inline void PlayersTurnMessage::clear_has_gamestate() { - _has_bits_[0] &= ~0x00000004u; -} inline void PlayersTurnMessage::clear_gamestate() { gamestate_ = 0; - clear_has_gamestate(); + _has_bits_[0] &= ~0x00000004u; } inline ::NetGameState PlayersTurnMessage::gamestate() const { // @@protoc_insertion_point(field_get:PlayersTurnMessage.gameState) @@ -17140,7 +18822,7 @@ inline ::NetGameState PlayersTurnMessage::gamestate() const { } inline void PlayersTurnMessage::set_gamestate(::NetGameState value) { assert(::NetGameState_IsValid(value)); - set_has_gamestate(); + _has_bits_[0] |= 0x00000004u; gamestate_ = value; // @@protoc_insertion_point(field_set:PlayersTurnMessage.gameState) } @@ -17153,22 +18835,16 @@ inline void PlayersTurnMessage::set_gamestate(::NetGameState value) { inline bool MyActionRequestMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void MyActionRequestMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void MyActionRequestMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void MyActionRequestMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:MyActionRequestMessage.gameId) } @@ -17177,22 +18853,16 @@ inline void MyActionRequestMessage::set_gameid(::google::protobuf::uint32 value) inline bool MyActionRequestMessage::has_handnum() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void MyActionRequestMessage::set_has_handnum() { - _has_bits_[0] |= 0x00000002u; -} -inline void MyActionRequestMessage::clear_has_handnum() { - _has_bits_[0] &= ~0x00000002u; -} inline void MyActionRequestMessage::clear_handnum() { handnum_ = 0u; - clear_has_handnum(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_handnum(); + _has_bits_[0] |= 0x00000002u; handnum_ = value; // @@protoc_insertion_point(field_set:MyActionRequestMessage.handNum) } @@ -17201,15 +18871,9 @@ inline void MyActionRequestMessage::set_handnum(::google::protobuf::uint32 value inline bool MyActionRequestMessage::has_gamestate() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void MyActionRequestMessage::set_has_gamestate() { - _has_bits_[0] |= 0x00000004u; -} -inline void MyActionRequestMessage::clear_has_gamestate() { - _has_bits_[0] &= ~0x00000004u; -} inline void MyActionRequestMessage::clear_gamestate() { gamestate_ = 0; - clear_has_gamestate(); + _has_bits_[0] &= ~0x00000004u; } inline ::NetGameState MyActionRequestMessage::gamestate() const { // @@protoc_insertion_point(field_get:MyActionRequestMessage.gameState) @@ -17217,7 +18881,7 @@ inline ::NetGameState MyActionRequestMessage::gamestate() const { } inline void MyActionRequestMessage::set_gamestate(::NetGameState value) { assert(::NetGameState_IsValid(value)); - set_has_gamestate(); + _has_bits_[0] |= 0x00000004u; gamestate_ = value; // @@protoc_insertion_point(field_set:MyActionRequestMessage.gameState) } @@ -17226,15 +18890,9 @@ inline void MyActionRequestMessage::set_gamestate(::NetGameState value) { inline bool MyActionRequestMessage::has_myaction() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void MyActionRequestMessage::set_has_myaction() { - _has_bits_[0] |= 0x00000008u; -} -inline void MyActionRequestMessage::clear_has_myaction() { - _has_bits_[0] &= ~0x00000008u; -} inline void MyActionRequestMessage::clear_myaction() { myaction_ = 0; - clear_has_myaction(); + _has_bits_[0] &= ~0x00000008u; } inline ::NetPlayerAction MyActionRequestMessage::myaction() const { // @@protoc_insertion_point(field_get:MyActionRequestMessage.myAction) @@ -17242,7 +18900,7 @@ inline ::NetPlayerAction MyActionRequestMessage::myaction() const { } inline void MyActionRequestMessage::set_myaction(::NetPlayerAction value) { assert(::NetPlayerAction_IsValid(value)); - set_has_myaction(); + _has_bits_[0] |= 0x00000008u; myaction_ = value; // @@protoc_insertion_point(field_set:MyActionRequestMessage.myAction) } @@ -17251,22 +18909,16 @@ inline void MyActionRequestMessage::set_myaction(::NetPlayerAction value) { inline bool MyActionRequestMessage::has_myrelativebet() const { return (_has_bits_[0] & 0x00000010u) != 0; } -inline void MyActionRequestMessage::set_has_myrelativebet() { - _has_bits_[0] |= 0x00000010u; -} -inline void MyActionRequestMessage::clear_has_myrelativebet() { - _has_bits_[0] &= ~0x00000010u; -} inline void MyActionRequestMessage::clear_myrelativebet() { myrelativebet_ = 0u; - clear_has_myrelativebet(); + _has_bits_[0] &= ~0x00000010u; } 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) { - set_has_myrelativebet(); + _has_bits_[0] |= 0x00000010u; myrelativebet_ = value; // @@protoc_insertion_point(field_set:MyActionRequestMessage.myRelativeBet) } @@ -17279,22 +18931,16 @@ inline void MyActionRequestMessage::set_myrelativebet(::google::protobuf::uint32 inline bool YourActionRejectedMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void YourActionRejectedMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void YourActionRejectedMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void YourActionRejectedMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:YourActionRejectedMessage.gameId) } @@ -17303,15 +18949,9 @@ inline void YourActionRejectedMessage::set_gameid(::google::protobuf::uint32 val inline bool YourActionRejectedMessage::has_gamestate() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void YourActionRejectedMessage::set_has_gamestate() { - _has_bits_[0] |= 0x00000002u; -} -inline void YourActionRejectedMessage::clear_has_gamestate() { - _has_bits_[0] &= ~0x00000002u; -} inline void YourActionRejectedMessage::clear_gamestate() { gamestate_ = 0; - clear_has_gamestate(); + _has_bits_[0] &= ~0x00000002u; } inline ::NetGameState YourActionRejectedMessage::gamestate() const { // @@protoc_insertion_point(field_get:YourActionRejectedMessage.gameState) @@ -17319,7 +18959,7 @@ inline ::NetGameState YourActionRejectedMessage::gamestate() const { } inline void YourActionRejectedMessage::set_gamestate(::NetGameState value) { assert(::NetGameState_IsValid(value)); - set_has_gamestate(); + _has_bits_[0] |= 0x00000002u; gamestate_ = value; // @@protoc_insertion_point(field_set:YourActionRejectedMessage.gameState) } @@ -17328,15 +18968,9 @@ inline void YourActionRejectedMessage::set_gamestate(::NetGameState value) { inline bool YourActionRejectedMessage::has_youraction() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void YourActionRejectedMessage::set_has_youraction() { - _has_bits_[0] |= 0x00000004u; -} -inline void YourActionRejectedMessage::clear_has_youraction() { - _has_bits_[0] &= ~0x00000004u; -} inline void YourActionRejectedMessage::clear_youraction() { youraction_ = 0; - clear_has_youraction(); + _has_bits_[0] &= ~0x00000004u; } inline ::NetPlayerAction YourActionRejectedMessage::youraction() const { // @@protoc_insertion_point(field_get:YourActionRejectedMessage.yourAction) @@ -17344,7 +18978,7 @@ inline ::NetPlayerAction YourActionRejectedMessage::youraction() const { } inline void YourActionRejectedMessage::set_youraction(::NetPlayerAction value) { assert(::NetPlayerAction_IsValid(value)); - set_has_youraction(); + _has_bits_[0] |= 0x00000004u; youraction_ = value; // @@protoc_insertion_point(field_set:YourActionRejectedMessage.yourAction) } @@ -17353,22 +18987,16 @@ inline void YourActionRejectedMessage::set_youraction(::NetPlayerAction value) { inline bool YourActionRejectedMessage::has_yourrelativebet() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void YourActionRejectedMessage::set_has_yourrelativebet() { - _has_bits_[0] |= 0x00000008u; -} -inline void YourActionRejectedMessage::clear_has_yourrelativebet() { - _has_bits_[0] &= ~0x00000008u; -} inline void YourActionRejectedMessage::clear_yourrelativebet() { yourrelativebet_ = 0u; - clear_has_yourrelativebet(); + _has_bits_[0] &= ~0x00000008u; } 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) { - set_has_yourrelativebet(); + _has_bits_[0] |= 0x00000008u; yourrelativebet_ = value; // @@protoc_insertion_point(field_set:YourActionRejectedMessage.yourRelativeBet) } @@ -17377,15 +19005,9 @@ inline void YourActionRejectedMessage::set_yourrelativebet(::google::protobuf::u inline bool YourActionRejectedMessage::has_rejectionreason() const { return (_has_bits_[0] & 0x00000010u) != 0; } -inline void YourActionRejectedMessage::set_has_rejectionreason() { - _has_bits_[0] |= 0x00000010u; -} -inline void YourActionRejectedMessage::clear_has_rejectionreason() { - _has_bits_[0] &= ~0x00000010u; -} inline void YourActionRejectedMessage::clear_rejectionreason() { rejectionreason_ = 1; - clear_has_rejectionreason(); + _has_bits_[0] &= ~0x00000010u; } inline ::YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::rejectionreason() const { // @@protoc_insertion_point(field_get:YourActionRejectedMessage.rejectionReason) @@ -17393,7 +19015,7 @@ inline ::YourActionRejectedMessage_RejectionReason YourActionRejectedMessage::re } inline void YourActionRejectedMessage::set_rejectionreason(::YourActionRejectedMessage_RejectionReason value) { assert(::YourActionRejectedMessage_RejectionReason_IsValid(value)); - set_has_rejectionreason(); + _has_bits_[0] |= 0x00000010u; rejectionreason_ = value; // @@protoc_insertion_point(field_set:YourActionRejectedMessage.rejectionReason) } @@ -17406,22 +19028,16 @@ inline void YourActionRejectedMessage::set_rejectionreason(::YourActionRejectedM inline bool PlayersActionDoneMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void PlayersActionDoneMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void PlayersActionDoneMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void PlayersActionDoneMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:PlayersActionDoneMessage.gameId) } @@ -17430,22 +19046,16 @@ inline void PlayersActionDoneMessage::set_gameid(::google::protobuf::uint32 valu inline bool PlayersActionDoneMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void PlayersActionDoneMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void PlayersActionDoneMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; -} inline void PlayersActionDoneMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_playerid(); + _has_bits_[0] |= 0x00000002u; playerid_ = value; // @@protoc_insertion_point(field_set:PlayersActionDoneMessage.playerId) } @@ -17454,15 +19064,9 @@ inline void PlayersActionDoneMessage::set_playerid(::google::protobuf::uint32 va inline bool PlayersActionDoneMessage::has_gamestate() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void PlayersActionDoneMessage::set_has_gamestate() { - _has_bits_[0] |= 0x00000004u; -} -inline void PlayersActionDoneMessage::clear_has_gamestate() { - _has_bits_[0] &= ~0x00000004u; -} inline void PlayersActionDoneMessage::clear_gamestate() { gamestate_ = 0; - clear_has_gamestate(); + _has_bits_[0] &= ~0x00000004u; } inline ::NetGameState PlayersActionDoneMessage::gamestate() const { // @@protoc_insertion_point(field_get:PlayersActionDoneMessage.gameState) @@ -17470,7 +19074,7 @@ inline ::NetGameState PlayersActionDoneMessage::gamestate() const { } inline void PlayersActionDoneMessage::set_gamestate(::NetGameState value) { assert(::NetGameState_IsValid(value)); - set_has_gamestate(); + _has_bits_[0] |= 0x00000004u; gamestate_ = value; // @@protoc_insertion_point(field_set:PlayersActionDoneMessage.gameState) } @@ -17479,15 +19083,9 @@ inline void PlayersActionDoneMessage::set_gamestate(::NetGameState value) { inline bool PlayersActionDoneMessage::has_playeraction() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void PlayersActionDoneMessage::set_has_playeraction() { - _has_bits_[0] |= 0x00000008u; -} -inline void PlayersActionDoneMessage::clear_has_playeraction() { - _has_bits_[0] &= ~0x00000008u; -} inline void PlayersActionDoneMessage::clear_playeraction() { playeraction_ = 0; - clear_has_playeraction(); + _has_bits_[0] &= ~0x00000008u; } inline ::NetPlayerAction PlayersActionDoneMessage::playeraction() const { // @@protoc_insertion_point(field_get:PlayersActionDoneMessage.playerAction) @@ -17495,7 +19093,7 @@ inline ::NetPlayerAction PlayersActionDoneMessage::playeraction() const { } inline void PlayersActionDoneMessage::set_playeraction(::NetPlayerAction value) { assert(::NetPlayerAction_IsValid(value)); - set_has_playeraction(); + _has_bits_[0] |= 0x00000008u; playeraction_ = value; // @@protoc_insertion_point(field_set:PlayersActionDoneMessage.playerAction) } @@ -17504,22 +19102,16 @@ inline void PlayersActionDoneMessage::set_playeraction(::NetPlayerAction value) inline bool PlayersActionDoneMessage::has_totalplayerbet() const { return (_has_bits_[0] & 0x00000010u) != 0; } -inline void PlayersActionDoneMessage::set_has_totalplayerbet() { - _has_bits_[0] |= 0x00000010u; -} -inline void PlayersActionDoneMessage::clear_has_totalplayerbet() { - _has_bits_[0] &= ~0x00000010u; -} inline void PlayersActionDoneMessage::clear_totalplayerbet() { totalplayerbet_ = 0u; - clear_has_totalplayerbet(); + _has_bits_[0] &= ~0x00000010u; } 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) { - set_has_totalplayerbet(); + _has_bits_[0] |= 0x00000010u; totalplayerbet_ = value; // @@protoc_insertion_point(field_set:PlayersActionDoneMessage.totalPlayerBet) } @@ -17528,22 +19120,16 @@ inline void PlayersActionDoneMessage::set_totalplayerbet(::google::protobuf::uin inline bool PlayersActionDoneMessage::has_playermoney() const { return (_has_bits_[0] & 0x00000020u) != 0; } -inline void PlayersActionDoneMessage::set_has_playermoney() { - _has_bits_[0] |= 0x00000020u; -} -inline void PlayersActionDoneMessage::clear_has_playermoney() { - _has_bits_[0] &= ~0x00000020u; -} inline void PlayersActionDoneMessage::clear_playermoney() { playermoney_ = 0u; - clear_has_playermoney(); + _has_bits_[0] &= ~0x00000020u; } 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) { - set_has_playermoney(); + _has_bits_[0] |= 0x00000020u; playermoney_ = value; // @@protoc_insertion_point(field_set:PlayersActionDoneMessage.playerMoney) } @@ -17552,22 +19138,16 @@ inline void PlayersActionDoneMessage::set_playermoney(::google::protobuf::uint32 inline bool PlayersActionDoneMessage::has_highestset() const { return (_has_bits_[0] & 0x00000040u) != 0; } -inline void PlayersActionDoneMessage::set_has_highestset() { - _has_bits_[0] |= 0x00000040u; -} -inline void PlayersActionDoneMessage::clear_has_highestset() { - _has_bits_[0] &= ~0x00000040u; -} inline void PlayersActionDoneMessage::clear_highestset() { highestset_ = 0u; - clear_has_highestset(); + _has_bits_[0] &= ~0x00000040u; } 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) { - set_has_highestset(); + _has_bits_[0] |= 0x00000040u; highestset_ = value; // @@protoc_insertion_point(field_set:PlayersActionDoneMessage.highestSet) } @@ -17576,22 +19156,16 @@ inline void PlayersActionDoneMessage::set_highestset(::google::protobuf::uint32 inline bool PlayersActionDoneMessage::has_minimumraise() const { return (_has_bits_[0] & 0x00000080u) != 0; } -inline void PlayersActionDoneMessage::set_has_minimumraise() { - _has_bits_[0] |= 0x00000080u; -} -inline void PlayersActionDoneMessage::clear_has_minimumraise() { - _has_bits_[0] &= ~0x00000080u; -} inline void PlayersActionDoneMessage::clear_minimumraise() { minimumraise_ = 0u; - clear_has_minimumraise(); + _has_bits_[0] &= ~0x00000080u; } 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) { - set_has_minimumraise(); + _has_bits_[0] |= 0x00000080u; minimumraise_ = value; // @@protoc_insertion_point(field_set:PlayersActionDoneMessage.minimumRaise) } @@ -17604,22 +19178,16 @@ inline void PlayersActionDoneMessage::set_minimumraise(::google::protobuf::uint3 inline bool DealFlopCardsMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void DealFlopCardsMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void DealFlopCardsMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void DealFlopCardsMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:DealFlopCardsMessage.gameId) } @@ -17628,22 +19196,16 @@ inline void DealFlopCardsMessage::set_gameid(::google::protobuf::uint32 value) { inline bool DealFlopCardsMessage::has_flopcard1() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void DealFlopCardsMessage::set_has_flopcard1() { - _has_bits_[0] |= 0x00000002u; -} -inline void DealFlopCardsMessage::clear_has_flopcard1() { - _has_bits_[0] &= ~0x00000002u; -} inline void DealFlopCardsMessage::clear_flopcard1() { flopcard1_ = 0u; - clear_has_flopcard1(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_flopcard1(); + _has_bits_[0] |= 0x00000002u; flopcard1_ = value; // @@protoc_insertion_point(field_set:DealFlopCardsMessage.flopCard1) } @@ -17652,22 +19214,16 @@ inline void DealFlopCardsMessage::set_flopcard1(::google::protobuf::uint32 value inline bool DealFlopCardsMessage::has_flopcard2() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void DealFlopCardsMessage::set_has_flopcard2() { - _has_bits_[0] |= 0x00000004u; -} -inline void DealFlopCardsMessage::clear_has_flopcard2() { - _has_bits_[0] &= ~0x00000004u; -} inline void DealFlopCardsMessage::clear_flopcard2() { flopcard2_ = 0u; - clear_has_flopcard2(); + _has_bits_[0] &= ~0x00000004u; } 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) { - set_has_flopcard2(); + _has_bits_[0] |= 0x00000004u; flopcard2_ = value; // @@protoc_insertion_point(field_set:DealFlopCardsMessage.flopCard2) } @@ -17676,22 +19232,16 @@ inline void DealFlopCardsMessage::set_flopcard2(::google::protobuf::uint32 value inline bool DealFlopCardsMessage::has_flopcard3() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void DealFlopCardsMessage::set_has_flopcard3() { - _has_bits_[0] |= 0x00000008u; -} -inline void DealFlopCardsMessage::clear_has_flopcard3() { - _has_bits_[0] &= ~0x00000008u; -} inline void DealFlopCardsMessage::clear_flopcard3() { flopcard3_ = 0u; - clear_has_flopcard3(); + _has_bits_[0] &= ~0x00000008u; } 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) { - set_has_flopcard3(); + _has_bits_[0] |= 0x00000008u; flopcard3_ = value; // @@protoc_insertion_point(field_set:DealFlopCardsMessage.flopCard3) } @@ -17704,22 +19254,16 @@ inline void DealFlopCardsMessage::set_flopcard3(::google::protobuf::uint32 value inline bool DealTurnCardMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void DealTurnCardMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void DealTurnCardMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void DealTurnCardMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:DealTurnCardMessage.gameId) } @@ -17728,22 +19272,16 @@ inline void DealTurnCardMessage::set_gameid(::google::protobuf::uint32 value) { inline bool DealTurnCardMessage::has_turncard() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void DealTurnCardMessage::set_has_turncard() { - _has_bits_[0] |= 0x00000002u; -} -inline void DealTurnCardMessage::clear_has_turncard() { - _has_bits_[0] &= ~0x00000002u; -} inline void DealTurnCardMessage::clear_turncard() { turncard_ = 0u; - clear_has_turncard(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_turncard(); + _has_bits_[0] |= 0x00000002u; turncard_ = value; // @@protoc_insertion_point(field_set:DealTurnCardMessage.turnCard) } @@ -17756,22 +19294,16 @@ inline void DealTurnCardMessage::set_turncard(::google::protobuf::uint32 value) inline bool DealRiverCardMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void DealRiverCardMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void DealRiverCardMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void DealRiverCardMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:DealRiverCardMessage.gameId) } @@ -17780,22 +19312,16 @@ inline void DealRiverCardMessage::set_gameid(::google::protobuf::uint32 value) { inline bool DealRiverCardMessage::has_rivercard() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void DealRiverCardMessage::set_has_rivercard() { - _has_bits_[0] |= 0x00000002u; -} -inline void DealRiverCardMessage::clear_has_rivercard() { - _has_bits_[0] &= ~0x00000002u; -} inline void DealRiverCardMessage::clear_rivercard() { rivercard_ = 0u; - clear_has_rivercard(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_rivercard(); + _has_bits_[0] |= 0x00000002u; rivercard_ = value; // @@protoc_insertion_point(field_set:DealRiverCardMessage.riverCard) } @@ -17808,22 +19334,16 @@ 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::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(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_playerid(); + _has_bits_[0] |= 0x00000001u; playerid_ = value; // @@protoc_insertion_point(field_set:AllInShowCardsMessage.PlayerAllIn.playerId) } @@ -17832,22 +19352,16 @@ inline void AllInShowCardsMessage_PlayerAllIn::set_playerid(::google::protobuf:: inline bool AllInShowCardsMessage_PlayerAllIn::has_allincard1() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void AllInShowCardsMessage_PlayerAllIn::set_has_allincard1() { - _has_bits_[0] |= 0x00000002u; -} -inline void AllInShowCardsMessage_PlayerAllIn::clear_has_allincard1() { - _has_bits_[0] &= ~0x00000002u; -} inline void AllInShowCardsMessage_PlayerAllIn::clear_allincard1() { allincard1_ = 0u; - clear_has_allincard1(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_allincard1(); + _has_bits_[0] |= 0x00000002u; allincard1_ = value; // @@protoc_insertion_point(field_set:AllInShowCardsMessage.PlayerAllIn.allInCard1) } @@ -17856,22 +19370,16 @@ inline void AllInShowCardsMessage_PlayerAllIn::set_allincard1(::google::protobuf inline bool AllInShowCardsMessage_PlayerAllIn::has_allincard2() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void AllInShowCardsMessage_PlayerAllIn::set_has_allincard2() { - _has_bits_[0] |= 0x00000004u; -} -inline void AllInShowCardsMessage_PlayerAllIn::clear_has_allincard2() { - _has_bits_[0] &= ~0x00000004u; -} inline void AllInShowCardsMessage_PlayerAllIn::clear_allincard2() { allincard2_ = 0u; - clear_has_allincard2(); + _has_bits_[0] &= ~0x00000004u; } 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) { - set_has_allincard2(); + _has_bits_[0] |= 0x00000004u; allincard2_ = value; // @@protoc_insertion_point(field_set:AllInShowCardsMessage.PlayerAllIn.allInCard2) } @@ -17884,22 +19392,16 @@ inline void AllInShowCardsMessage_PlayerAllIn::set_allincard2(::google::protobuf inline bool AllInShowCardsMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AllInShowCardsMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void AllInShowCardsMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void AllInShowCardsMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:AllInShowCardsMessage.gameId) } @@ -17911,14 +19413,19 @@ inline int AllInShowCardsMessage::playersallin_size() const { inline void AllInShowCardsMessage::clear_playersallin() { playersallin_.Clear(); } -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) { // @@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::add_playersallin() { // @@protoc_insertion_point(field_add:AllInShowCardsMessage.playersAllIn) return playersallin_.Add(); @@ -17928,11 +19435,6 @@ AllInShowCardsMessage::playersallin() const { // @@protoc_insertion_point(field_list:AllInShowCardsMessage.playersAllIn) return playersallin_; } -inline ::google::protobuf::RepeatedPtrField< ::AllInShowCardsMessage_PlayerAllIn >* -AllInShowCardsMessage::mutable_playersallin() { - // @@protoc_insertion_point(field_mutable_list:AllInShowCardsMessage.playersAllIn) - return &playersallin_; -} // ------------------------------------------------------------------- @@ -17942,22 +19444,16 @@ AllInShowCardsMessage::mutable_playersallin() { inline bool EndOfHandShowCardsMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void EndOfHandShowCardsMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void EndOfHandShowCardsMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void EndOfHandShowCardsMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:EndOfHandShowCardsMessage.gameId) } @@ -17969,14 +19465,19 @@ inline int EndOfHandShowCardsMessage::playerresults_size() const { inline void EndOfHandShowCardsMessage::clear_playerresults() { playerresults_.Clear(); } -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) { // @@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::add_playerresults() { // @@protoc_insertion_point(field_add:EndOfHandShowCardsMessage.playerResults) return playerresults_.Add(); @@ -17986,11 +19487,6 @@ EndOfHandShowCardsMessage::playerresults() const { // @@protoc_insertion_point(field_list:EndOfHandShowCardsMessage.playerResults) return playerresults_; } -inline ::google::protobuf::RepeatedPtrField< ::PlayerResult >* -EndOfHandShowCardsMessage::mutable_playerresults() { - // @@protoc_insertion_point(field_mutable_list:EndOfHandShowCardsMessage.playerResults) - return &playerresults_; -} // ------------------------------------------------------------------- @@ -18000,22 +19496,16 @@ EndOfHandShowCardsMessage::mutable_playerresults() { inline bool EndOfHandHideCardsMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void EndOfHandHideCardsMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void EndOfHandHideCardsMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void EndOfHandHideCardsMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:EndOfHandHideCardsMessage.gameId) } @@ -18024,22 +19514,16 @@ inline void EndOfHandHideCardsMessage::set_gameid(::google::protobuf::uint32 val inline bool EndOfHandHideCardsMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void EndOfHandHideCardsMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void EndOfHandHideCardsMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; -} inline void EndOfHandHideCardsMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_playerid(); + _has_bits_[0] |= 0x00000002u; playerid_ = value; // @@protoc_insertion_point(field_set:EndOfHandHideCardsMessage.playerId) } @@ -18048,22 +19532,16 @@ inline void EndOfHandHideCardsMessage::set_playerid(::google::protobuf::uint32 v inline bool EndOfHandHideCardsMessage::has_moneywon() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void EndOfHandHideCardsMessage::set_has_moneywon() { - _has_bits_[0] |= 0x00000004u; -} -inline void EndOfHandHideCardsMessage::clear_has_moneywon() { - _has_bits_[0] &= ~0x00000004u; -} inline void EndOfHandHideCardsMessage::clear_moneywon() { moneywon_ = 0u; - clear_has_moneywon(); + _has_bits_[0] &= ~0x00000004u; } 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) { - set_has_moneywon(); + _has_bits_[0] |= 0x00000004u; moneywon_ = value; // @@protoc_insertion_point(field_set:EndOfHandHideCardsMessage.moneyWon) } @@ -18072,22 +19550,16 @@ inline void EndOfHandHideCardsMessage::set_moneywon(::google::protobuf::uint32 v inline bool EndOfHandHideCardsMessage::has_playermoney() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void EndOfHandHideCardsMessage::set_has_playermoney() { - _has_bits_[0] |= 0x00000008u; -} -inline void EndOfHandHideCardsMessage::clear_has_playermoney() { - _has_bits_[0] &= ~0x00000008u; -} inline void EndOfHandHideCardsMessage::clear_playermoney() { playermoney_ = 0u; - clear_has_playermoney(); + _has_bits_[0] &= ~0x00000008u; } 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) { - set_has_playermoney(); + _has_bits_[0] |= 0x00000008u; playermoney_ = value; // @@protoc_insertion_point(field_set:EndOfHandHideCardsMessage.playerMoney) } @@ -18104,44 +19576,48 @@ inline void EndOfHandHideCardsMessage::set_playermoney(::google::protobuf::uint3 inline bool AfterHandShowCardsMessage::has_playerresult() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AfterHandShowCardsMessage::set_has_playerresult() { - _has_bits_[0] |= 0x00000001u; -} -inline void AfterHandShowCardsMessage::clear_has_playerresult() { +inline void AfterHandShowCardsMessage::clear_playerresult() { + if (playerresult_ != nullptr) playerresult_->Clear(); _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) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return playerresult_ != NULL ? *playerresult_ : *default_instance().playerresult_; -#else - return playerresult_ != NULL ? *playerresult_ : *default_instance_->playerresult_; -#endif + 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; } inline ::PlayerResult* AfterHandShowCardsMessage::mutable_playerresult() { - set_has_playerresult(); - if (playerresult_ == NULL) playerresult_ = new ::PlayerResult; + _has_bits_[0] |= 0x00000001u; + if (playerresult_ == nullptr) { + auto* p = CreateMaybeMessage<::PlayerResult>(GetArenaNoVirtual()); + playerresult_ = p; + } // @@protoc_insertion_point(field_mutable:AfterHandShowCardsMessage.playerResult) return playerresult_; } -inline ::PlayerResult* AfterHandShowCardsMessage::release_playerresult() { - clear_has_playerresult(); - ::PlayerResult* temp = playerresult_; - playerresult_ = NULL; - return temp; -} inline void AfterHandShowCardsMessage::set_allocated_playerresult(::PlayerResult* playerresult) { - delete playerresult_; - playerresult_ = playerresult; - if (playerresult) { - set_has_playerresult(); - } else { - clear_has_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) } @@ -18153,22 +19629,16 @@ inline void AfterHandShowCardsMessage::set_allocated_playerresult(::PlayerResult inline bool EndOfGameMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void EndOfGameMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void EndOfGameMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void EndOfGameMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:EndOfGameMessage.gameId) } @@ -18177,22 +19647,16 @@ inline void EndOfGameMessage::set_gameid(::google::protobuf::uint32 value) { inline bool EndOfGameMessage::has_winnerplayerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void EndOfGameMessage::set_has_winnerplayerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void EndOfGameMessage::clear_has_winnerplayerid() { - _has_bits_[0] &= ~0x00000002u; -} inline void EndOfGameMessage::clear_winnerplayerid() { winnerplayerid_ = 0u; - clear_has_winnerplayerid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_winnerplayerid(); + _has_bits_[0] |= 0x00000002u; winnerplayerid_ = value; // @@protoc_insertion_point(field_set:EndOfGameMessage.winnerPlayerId) } @@ -18205,22 +19669,16 @@ inline void EndOfGameMessage::set_winnerplayerid(::google::protobuf::uint32 valu inline bool PlayerIdChangedMessage::has_oldplayerid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void PlayerIdChangedMessage::set_has_oldplayerid() { - _has_bits_[0] |= 0x00000001u; -} -inline void PlayerIdChangedMessage::clear_has_oldplayerid() { - _has_bits_[0] &= ~0x00000001u; -} inline void PlayerIdChangedMessage::clear_oldplayerid() { oldplayerid_ = 0u; - clear_has_oldplayerid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_oldplayerid(); + _has_bits_[0] |= 0x00000001u; oldplayerid_ = value; // @@protoc_insertion_point(field_set:PlayerIdChangedMessage.oldPlayerId) } @@ -18229,22 +19687,16 @@ inline void PlayerIdChangedMessage::set_oldplayerid(::google::protobuf::uint32 v inline bool PlayerIdChangedMessage::has_newplayerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void PlayerIdChangedMessage::set_has_newplayerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void PlayerIdChangedMessage::clear_has_newplayerid() { - _has_bits_[0] &= ~0x00000002u; -} inline void PlayerIdChangedMessage::clear_newplayerid() { newplayerid_ = 0u; - clear_has_newplayerid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_newplayerid(); + _has_bits_[0] |= 0x00000002u; newplayerid_ = value; // @@protoc_insertion_point(field_set:PlayerIdChangedMessage.newPlayerId) } @@ -18257,22 +19709,16 @@ inline void PlayerIdChangedMessage::set_newplayerid(::google::protobuf::uint32 v inline bool AskKickPlayerMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AskKickPlayerMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void AskKickPlayerMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void AskKickPlayerMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:AskKickPlayerMessage.gameId) } @@ -18281,22 +19727,16 @@ inline void AskKickPlayerMessage::set_gameid(::google::protobuf::uint32 value) { inline bool AskKickPlayerMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void AskKickPlayerMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void AskKickPlayerMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; -} inline void AskKickPlayerMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_playerid(); + _has_bits_[0] |= 0x00000002u; playerid_ = value; // @@protoc_insertion_point(field_set:AskKickPlayerMessage.playerId) } @@ -18309,22 +19749,16 @@ inline void AskKickPlayerMessage::set_playerid(::google::protobuf::uint32 value) inline bool AskKickDeniedMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AskKickDeniedMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void AskKickDeniedMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void AskKickDeniedMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:AskKickDeniedMessage.gameId) } @@ -18333,22 +19767,16 @@ inline void AskKickDeniedMessage::set_gameid(::google::protobuf::uint32 value) { inline bool AskKickDeniedMessage::has_playerid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void AskKickDeniedMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void AskKickDeniedMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; -} inline void AskKickDeniedMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_playerid(); + _has_bits_[0] |= 0x00000002u; playerid_ = value; // @@protoc_insertion_point(field_set:AskKickDeniedMessage.playerId) } @@ -18357,15 +19785,9 @@ inline void AskKickDeniedMessage::set_playerid(::google::protobuf::uint32 value) inline bool AskKickDeniedMessage::has_kickdeniedreason() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void AskKickDeniedMessage::set_has_kickdeniedreason() { - _has_bits_[0] |= 0x00000004u; -} -inline void AskKickDeniedMessage::clear_has_kickdeniedreason() { - _has_bits_[0] &= ~0x00000004u; -} inline void AskKickDeniedMessage::clear_kickdeniedreason() { kickdeniedreason_ = 0; - clear_has_kickdeniedreason(); + _has_bits_[0] &= ~0x00000004u; } inline ::AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickdeniedreason() const { // @@protoc_insertion_point(field_get:AskKickDeniedMessage.kickDeniedReason) @@ -18373,7 +19795,7 @@ inline ::AskKickDeniedMessage_KickDeniedReason AskKickDeniedMessage::kickdeniedr } inline void AskKickDeniedMessage::set_kickdeniedreason(::AskKickDeniedMessage_KickDeniedReason value) { assert(::AskKickDeniedMessage_KickDeniedReason_IsValid(value)); - set_has_kickdeniedreason(); + _has_bits_[0] |= 0x00000004u; kickdeniedreason_ = value; // @@protoc_insertion_point(field_set:AskKickDeniedMessage.kickDeniedReason) } @@ -18386,22 +19808,16 @@ inline void AskKickDeniedMessage::set_kickdeniedreason(::AskKickDeniedMessage_Ki inline bool StartKickPetitionMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void StartKickPetitionMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void StartKickPetitionMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void StartKickPetitionMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:StartKickPetitionMessage.gameId) } @@ -18410,22 +19826,16 @@ inline void StartKickPetitionMessage::set_gameid(::google::protobuf::uint32 valu inline bool StartKickPetitionMessage::has_petitionid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void StartKickPetitionMessage::set_has_petitionid() { - _has_bits_[0] |= 0x00000002u; -} -inline void StartKickPetitionMessage::clear_has_petitionid() { - _has_bits_[0] &= ~0x00000002u; -} inline void StartKickPetitionMessage::clear_petitionid() { petitionid_ = 0u; - clear_has_petitionid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_petitionid(); + _has_bits_[0] |= 0x00000002u; petitionid_ = value; // @@protoc_insertion_point(field_set:StartKickPetitionMessage.petitionId) } @@ -18434,22 +19844,16 @@ inline void StartKickPetitionMessage::set_petitionid(::google::protobuf::uint32 inline bool StartKickPetitionMessage::has_proposingplayerid() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void StartKickPetitionMessage::set_has_proposingplayerid() { - _has_bits_[0] |= 0x00000004u; -} -inline void StartKickPetitionMessage::clear_has_proposingplayerid() { - _has_bits_[0] &= ~0x00000004u; -} inline void StartKickPetitionMessage::clear_proposingplayerid() { proposingplayerid_ = 0u; - clear_has_proposingplayerid(); + _has_bits_[0] &= ~0x00000004u; } 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) { - set_has_proposingplayerid(); + _has_bits_[0] |= 0x00000004u; proposingplayerid_ = value; // @@protoc_insertion_point(field_set:StartKickPetitionMessage.proposingPlayerId) } @@ -18458,22 +19862,16 @@ inline void StartKickPetitionMessage::set_proposingplayerid(::google::protobuf:: inline bool StartKickPetitionMessage::has_kickplayerid() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void StartKickPetitionMessage::set_has_kickplayerid() { - _has_bits_[0] |= 0x00000008u; -} -inline void StartKickPetitionMessage::clear_has_kickplayerid() { - _has_bits_[0] &= ~0x00000008u; -} inline void StartKickPetitionMessage::clear_kickplayerid() { kickplayerid_ = 0u; - clear_has_kickplayerid(); + _has_bits_[0] &= ~0x00000008u; } 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) { - set_has_kickplayerid(); + _has_bits_[0] |= 0x00000008u; kickplayerid_ = value; // @@protoc_insertion_point(field_set:StartKickPetitionMessage.kickPlayerId) } @@ -18482,22 +19880,16 @@ inline void StartKickPetitionMessage::set_kickplayerid(::google::protobuf::uint3 inline bool StartKickPetitionMessage::has_kicktimeoutsec() const { return (_has_bits_[0] & 0x00000010u) != 0; } -inline void StartKickPetitionMessage::set_has_kicktimeoutsec() { - _has_bits_[0] |= 0x00000010u; -} -inline void StartKickPetitionMessage::clear_has_kicktimeoutsec() { - _has_bits_[0] &= ~0x00000010u; -} inline void StartKickPetitionMessage::clear_kicktimeoutsec() { kicktimeoutsec_ = 0u; - clear_has_kicktimeoutsec(); + _has_bits_[0] &= ~0x00000010u; } 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) { - set_has_kicktimeoutsec(); + _has_bits_[0] |= 0x00000010u; kicktimeoutsec_ = value; // @@protoc_insertion_point(field_set:StartKickPetitionMessage.kickTimeoutSec) } @@ -18506,22 +19898,16 @@ inline void StartKickPetitionMessage::set_kicktimeoutsec(::google::protobuf::uin inline bool StartKickPetitionMessage::has_numvotesneededtokick() const { return (_has_bits_[0] & 0x00000020u) != 0; } -inline void StartKickPetitionMessage::set_has_numvotesneededtokick() { - _has_bits_[0] |= 0x00000020u; -} -inline void StartKickPetitionMessage::clear_has_numvotesneededtokick() { - _has_bits_[0] &= ~0x00000020u; -} inline void StartKickPetitionMessage::clear_numvotesneededtokick() { numvotesneededtokick_ = 0u; - clear_has_numvotesneededtokick(); + _has_bits_[0] &= ~0x00000020u; } 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) { - set_has_numvotesneededtokick(); + _has_bits_[0] |= 0x00000020u; numvotesneededtokick_ = value; // @@protoc_insertion_point(field_set:StartKickPetitionMessage.numVotesNeededToKick) } @@ -18534,22 +19920,16 @@ inline void StartKickPetitionMessage::set_numvotesneededtokick(::google::protobu inline bool VoteKickRequestMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void VoteKickRequestMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void VoteKickRequestMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void VoteKickRequestMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:VoteKickRequestMessage.gameId) } @@ -18558,22 +19938,16 @@ inline void VoteKickRequestMessage::set_gameid(::google::protobuf::uint32 value) inline bool VoteKickRequestMessage::has_petitionid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void VoteKickRequestMessage::set_has_petitionid() { - _has_bits_[0] |= 0x00000002u; -} -inline void VoteKickRequestMessage::clear_has_petitionid() { - _has_bits_[0] &= ~0x00000002u; -} inline void VoteKickRequestMessage::clear_petitionid() { petitionid_ = 0u; - clear_has_petitionid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_petitionid(); + _has_bits_[0] |= 0x00000002u; petitionid_ = value; // @@protoc_insertion_point(field_set:VoteKickRequestMessage.petitionId) } @@ -18582,22 +19956,16 @@ inline void VoteKickRequestMessage::set_petitionid(::google::protobuf::uint32 va inline bool VoteKickRequestMessage::has_votekick() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void VoteKickRequestMessage::set_has_votekick() { - _has_bits_[0] |= 0x00000004u; -} -inline void VoteKickRequestMessage::clear_has_votekick() { - _has_bits_[0] &= ~0x00000004u; -} inline void VoteKickRequestMessage::clear_votekick() { votekick_ = false; - clear_has_votekick(); + _has_bits_[0] &= ~0x00000004u; } inline bool VoteKickRequestMessage::votekick() const { // @@protoc_insertion_point(field_get:VoteKickRequestMessage.voteKick) return votekick_; } inline void VoteKickRequestMessage::set_votekick(bool value) { - set_has_votekick(); + _has_bits_[0] |= 0x00000004u; votekick_ = value; // @@protoc_insertion_point(field_set:VoteKickRequestMessage.voteKick) } @@ -18610,22 +19978,16 @@ inline void VoteKickRequestMessage::set_votekick(bool value) { inline bool VoteKickReplyMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void VoteKickReplyMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void VoteKickReplyMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void VoteKickReplyMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:VoteKickReplyMessage.gameId) } @@ -18634,22 +19996,16 @@ inline void VoteKickReplyMessage::set_gameid(::google::protobuf::uint32 value) { inline bool VoteKickReplyMessage::has_petitionid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void VoteKickReplyMessage::set_has_petitionid() { - _has_bits_[0] |= 0x00000002u; -} -inline void VoteKickReplyMessage::clear_has_petitionid() { - _has_bits_[0] &= ~0x00000002u; -} inline void VoteKickReplyMessage::clear_petitionid() { petitionid_ = 0u; - clear_has_petitionid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_petitionid(); + _has_bits_[0] |= 0x00000002u; petitionid_ = value; // @@protoc_insertion_point(field_set:VoteKickReplyMessage.petitionId) } @@ -18658,15 +20014,9 @@ inline void VoteKickReplyMessage::set_petitionid(::google::protobuf::uint32 valu inline bool VoteKickReplyMessage::has_votekickreplytype() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void VoteKickReplyMessage::set_has_votekickreplytype() { - _has_bits_[0] |= 0x00000004u; -} -inline void VoteKickReplyMessage::clear_has_votekickreplytype() { - _has_bits_[0] &= ~0x00000004u; -} inline void VoteKickReplyMessage::clear_votekickreplytype() { votekickreplytype_ = 0; - clear_has_votekickreplytype(); + _has_bits_[0] &= ~0x00000004u; } inline ::VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::votekickreplytype() const { // @@protoc_insertion_point(field_get:VoteKickReplyMessage.voteKickReplyType) @@ -18674,7 +20024,7 @@ inline ::VoteKickReplyMessage_VoteKickReplyType VoteKickReplyMessage::votekickre } inline void VoteKickReplyMessage::set_votekickreplytype(::VoteKickReplyMessage_VoteKickReplyType value) { assert(::VoteKickReplyMessage_VoteKickReplyType_IsValid(value)); - set_has_votekickreplytype(); + _has_bits_[0] |= 0x00000004u; votekickreplytype_ = value; // @@protoc_insertion_point(field_set:VoteKickReplyMessage.voteKickReplyType) } @@ -18687,22 +20037,16 @@ inline void VoteKickReplyMessage::set_votekickreplytype(::VoteKickReplyMessage_V inline bool KickPetitionUpdateMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void KickPetitionUpdateMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void KickPetitionUpdateMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void KickPetitionUpdateMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:KickPetitionUpdateMessage.gameId) } @@ -18711,22 +20055,16 @@ inline void KickPetitionUpdateMessage::set_gameid(::google::protobuf::uint32 val inline bool KickPetitionUpdateMessage::has_petitionid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void KickPetitionUpdateMessage::set_has_petitionid() { - _has_bits_[0] |= 0x00000002u; -} -inline void KickPetitionUpdateMessage::clear_has_petitionid() { - _has_bits_[0] &= ~0x00000002u; -} inline void KickPetitionUpdateMessage::clear_petitionid() { petitionid_ = 0u; - clear_has_petitionid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_petitionid(); + _has_bits_[0] |= 0x00000002u; petitionid_ = value; // @@protoc_insertion_point(field_set:KickPetitionUpdateMessage.petitionId) } @@ -18735,22 +20073,16 @@ inline void KickPetitionUpdateMessage::set_petitionid(::google::protobuf::uint32 inline bool KickPetitionUpdateMessage::has_numvotesagainstkicking() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void KickPetitionUpdateMessage::set_has_numvotesagainstkicking() { - _has_bits_[0] |= 0x00000004u; -} -inline void KickPetitionUpdateMessage::clear_has_numvotesagainstkicking() { - _has_bits_[0] &= ~0x00000004u; -} inline void KickPetitionUpdateMessage::clear_numvotesagainstkicking() { numvotesagainstkicking_ = 0u; - clear_has_numvotesagainstkicking(); + _has_bits_[0] &= ~0x00000004u; } 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) { - set_has_numvotesagainstkicking(); + _has_bits_[0] |= 0x00000004u; numvotesagainstkicking_ = value; // @@protoc_insertion_point(field_set:KickPetitionUpdateMessage.numVotesAgainstKicking) } @@ -18759,22 +20091,16 @@ inline void KickPetitionUpdateMessage::set_numvotesagainstkicking(::google::prot inline bool KickPetitionUpdateMessage::has_numvotesinfavourofkicking() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void KickPetitionUpdateMessage::set_has_numvotesinfavourofkicking() { - _has_bits_[0] |= 0x00000008u; -} -inline void KickPetitionUpdateMessage::clear_has_numvotesinfavourofkicking() { - _has_bits_[0] &= ~0x00000008u; -} inline void KickPetitionUpdateMessage::clear_numvotesinfavourofkicking() { numvotesinfavourofkicking_ = 0u; - clear_has_numvotesinfavourofkicking(); + _has_bits_[0] &= ~0x00000008u; } 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) { - set_has_numvotesinfavourofkicking(); + _has_bits_[0] |= 0x00000008u; numvotesinfavourofkicking_ = value; // @@protoc_insertion_point(field_set:KickPetitionUpdateMessage.numVotesInFavourOfKicking) } @@ -18783,22 +20109,16 @@ inline void KickPetitionUpdateMessage::set_numvotesinfavourofkicking(::google::p inline bool KickPetitionUpdateMessage::has_numvotesneededtokick() const { return (_has_bits_[0] & 0x00000010u) != 0; } -inline void KickPetitionUpdateMessage::set_has_numvotesneededtokick() { - _has_bits_[0] |= 0x00000010u; -} -inline void KickPetitionUpdateMessage::clear_has_numvotesneededtokick() { - _has_bits_[0] &= ~0x00000010u; -} inline void KickPetitionUpdateMessage::clear_numvotesneededtokick() { numvotesneededtokick_ = 0u; - clear_has_numvotesneededtokick(); + _has_bits_[0] &= ~0x00000010u; } 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) { - set_has_numvotesneededtokick(); + _has_bits_[0] |= 0x00000010u; numvotesneededtokick_ = value; // @@protoc_insertion_point(field_set:KickPetitionUpdateMessage.numVotesNeededToKick) } @@ -18811,22 +20131,16 @@ inline void KickPetitionUpdateMessage::set_numvotesneededtokick(::google::protob inline bool EndKickPetitionMessage::has_gameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void EndKickPetitionMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void EndKickPetitionMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void EndKickPetitionMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000001u; gameid_ = value; // @@protoc_insertion_point(field_set:EndKickPetitionMessage.gameId) } @@ -18835,22 +20149,16 @@ inline void EndKickPetitionMessage::set_gameid(::google::protobuf::uint32 value) inline bool EndKickPetitionMessage::has_petitionid() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void EndKickPetitionMessage::set_has_petitionid() { - _has_bits_[0] |= 0x00000002u; -} -inline void EndKickPetitionMessage::clear_has_petitionid() { - _has_bits_[0] &= ~0x00000002u; -} inline void EndKickPetitionMessage::clear_petitionid() { petitionid_ = 0u; - clear_has_petitionid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_petitionid(); + _has_bits_[0] |= 0x00000002u; petitionid_ = value; // @@protoc_insertion_point(field_set:EndKickPetitionMessage.petitionId) } @@ -18859,22 +20167,16 @@ inline void EndKickPetitionMessage::set_petitionid(::google::protobuf::uint32 va inline bool EndKickPetitionMessage::has_numvotesagainstkicking() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void EndKickPetitionMessage::set_has_numvotesagainstkicking() { - _has_bits_[0] |= 0x00000004u; -} -inline void EndKickPetitionMessage::clear_has_numvotesagainstkicking() { - _has_bits_[0] &= ~0x00000004u; -} inline void EndKickPetitionMessage::clear_numvotesagainstkicking() { numvotesagainstkicking_ = 0u; - clear_has_numvotesagainstkicking(); + _has_bits_[0] &= ~0x00000004u; } 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) { - set_has_numvotesagainstkicking(); + _has_bits_[0] |= 0x00000004u; numvotesagainstkicking_ = value; // @@protoc_insertion_point(field_set:EndKickPetitionMessage.numVotesAgainstKicking) } @@ -18883,22 +20185,16 @@ inline void EndKickPetitionMessage::set_numvotesagainstkicking(::google::protobu inline bool EndKickPetitionMessage::has_numvotesinfavourofkicking() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void EndKickPetitionMessage::set_has_numvotesinfavourofkicking() { - _has_bits_[0] |= 0x00000008u; -} -inline void EndKickPetitionMessage::clear_has_numvotesinfavourofkicking() { - _has_bits_[0] &= ~0x00000008u; -} inline void EndKickPetitionMessage::clear_numvotesinfavourofkicking() { numvotesinfavourofkicking_ = 0u; - clear_has_numvotesinfavourofkicking(); + _has_bits_[0] &= ~0x00000008u; } 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) { - set_has_numvotesinfavourofkicking(); + _has_bits_[0] |= 0x00000008u; numvotesinfavourofkicking_ = value; // @@protoc_insertion_point(field_set:EndKickPetitionMessage.numVotesInFavourOfKicking) } @@ -18907,22 +20203,16 @@ inline void EndKickPetitionMessage::set_numvotesinfavourofkicking(::google::prot inline bool EndKickPetitionMessage::has_resultplayerkicked() const { return (_has_bits_[0] & 0x00000010u) != 0; } -inline void EndKickPetitionMessage::set_has_resultplayerkicked() { - _has_bits_[0] |= 0x00000010u; -} -inline void EndKickPetitionMessage::clear_has_resultplayerkicked() { - _has_bits_[0] &= ~0x00000010u; -} inline void EndKickPetitionMessage::clear_resultplayerkicked() { resultplayerkicked_ = 0u; - clear_has_resultplayerkicked(); + _has_bits_[0] &= ~0x00000010u; } 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) { - set_has_resultplayerkicked(); + _has_bits_[0] |= 0x00000010u; resultplayerkicked_ = value; // @@protoc_insertion_point(field_set:EndKickPetitionMessage.resultPlayerKicked) } @@ -18931,15 +20221,9 @@ inline void EndKickPetitionMessage::set_resultplayerkicked(::google::protobuf::u inline bool EndKickPetitionMessage::has_petitionendreason() const { return (_has_bits_[0] & 0x00000020u) != 0; } -inline void EndKickPetitionMessage::set_has_petitionendreason() { - _has_bits_[0] |= 0x00000020u; -} -inline void EndKickPetitionMessage::clear_has_petitionendreason() { - _has_bits_[0] &= ~0x00000020u; -} inline void EndKickPetitionMessage::clear_petitionendreason() { petitionendreason_ = 0; - clear_has_petitionendreason(); + _has_bits_[0] &= ~0x00000020u; } inline ::EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petitionendreason() const { // @@protoc_insertion_point(field_get:EndKickPetitionMessage.petitionEndReason) @@ -18947,7 +20231,7 @@ inline ::EndKickPetitionMessage_PetitionEndReason EndKickPetitionMessage::petiti } inline void EndKickPetitionMessage::set_petitionendreason(::EndKickPetitionMessage_PetitionEndReason value) { assert(::EndKickPetitionMessage_PetitionEndReason_IsValid(value)); - set_has_petitionendreason(); + _has_bits_[0] |= 0x00000020u; petitionendreason_ = value; // @@protoc_insertion_point(field_set:EndKickPetitionMessage.petitionEndReason) } @@ -18958,17 +20242,11 @@ inline void EndKickPetitionMessage::set_petitionendreason(::EndKickPetitionMessa // required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; inline bool StatisticsMessage_StatisticsData::has_statisticstype() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void StatisticsMessage_StatisticsData::set_has_statisticstype() { - _has_bits_[0] |= 0x00000001u; -} -inline void StatisticsMessage_StatisticsData::clear_has_statisticstype() { - _has_bits_[0] &= ~0x00000001u; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void StatisticsMessage_StatisticsData::clear_statisticstype() { statisticstype_ = 1; - clear_has_statisticstype(); + _has_bits_[0] &= ~0x00000002u; } inline ::StatisticsMessage_StatisticsData_StatisticsType StatisticsMessage_StatisticsData::statisticstype() const { // @@protoc_insertion_point(field_get:StatisticsMessage.StatisticsData.statisticsType) @@ -18976,31 +20254,25 @@ inline ::StatisticsMessage_StatisticsData_StatisticsType StatisticsMessage_Stati } inline void StatisticsMessage_StatisticsData::set_statisticstype(::StatisticsMessage_StatisticsData_StatisticsType value) { assert(::StatisticsMessage_StatisticsData_StatisticsType_IsValid(value)); - set_has_statisticstype(); + _has_bits_[0] |= 0x00000002u; 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] & 0x00000002u) != 0; -} -inline void StatisticsMessage_StatisticsData::set_has_statisticsvalue() { - _has_bits_[0] |= 0x00000002u; -} -inline void StatisticsMessage_StatisticsData::clear_has_statisticsvalue() { - _has_bits_[0] &= ~0x00000002u; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void StatisticsMessage_StatisticsData::clear_statisticsvalue() { statisticsvalue_ = 0u; - clear_has_statisticsvalue(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_statisticsvalue(); + _has_bits_[0] |= 0x00000001u; statisticsvalue_ = value; // @@protoc_insertion_point(field_set:StatisticsMessage.StatisticsData.statisticsValue) } @@ -19016,14 +20288,19 @@ inline int StatisticsMessage::statisticsdata_size() const { inline void StatisticsMessage::clear_statisticsdata() { statisticsdata_.Clear(); } -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) { // @@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::add_statisticsdata() { // @@protoc_insertion_point(field_add:StatisticsMessage.statisticsData) return statisticsdata_.Add(); @@ -19033,11 +20310,6 @@ StatisticsMessage::statisticsdata() const { // @@protoc_insertion_point(field_list:StatisticsMessage.statisticsData) return statisticsdata_; } -inline ::google::protobuf::RepeatedPtrField< ::StatisticsMessage_StatisticsData >* -StatisticsMessage::mutable_statisticsdata() { - // @@protoc_insertion_point(field_mutable_list:StatisticsMessage.statisticsData) - return &statisticsdata_; -} // ------------------------------------------------------------------- @@ -19045,125 +20317,97 @@ StatisticsMessage::mutable_statisticsdata() { // optional uint32 targetGameId = 1; inline bool ChatRequestMessage::has_targetgameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ChatRequestMessage::set_has_targetgameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void ChatRequestMessage::clear_has_targetgameid() { - _has_bits_[0] &= ~0x00000001u; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void ChatRequestMessage::clear_targetgameid() { targetgameid_ = 0u; - clear_has_targetgameid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_targetgameid(); + _has_bits_[0] |= 0x00000002u; targetgameid_ = value; // @@protoc_insertion_point(field_set:ChatRequestMessage.targetGameId) } // optional uint32 targetPlayerId = 2; inline bool ChatRequestMessage::has_targetplayerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void ChatRequestMessage::set_has_targetplayerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void ChatRequestMessage::clear_has_targetplayerid() { - _has_bits_[0] &= ~0x00000002u; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void ChatRequestMessage::clear_targetplayerid() { targetplayerid_ = 0u; - clear_has_targetplayerid(); + _has_bits_[0] &= ~0x00000004u; } 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) { - set_has_targetplayerid(); + _has_bits_[0] |= 0x00000004u; targetplayerid_ = value; // @@protoc_insertion_point(field_set:ChatRequestMessage.targetPlayerId) } // required string chatText = 3; inline bool ChatRequestMessage::has_chattext() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void ChatRequestMessage::set_has_chattext() { - _has_bits_[0] |= 0x00000004u; -} -inline void ChatRequestMessage::clear_has_chattext() { - _has_bits_[0] &= ~0x00000004u; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void ChatRequestMessage::clear_chattext() { - if (chattext_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - chattext_->clear(); - } - clear_has_chattext(); + chattext_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } inline const ::std::string& ChatRequestMessage::chattext() const { // @@protoc_insertion_point(field_get:ChatRequestMessage.chatText) - return *chattext_; + return chattext_.GetNoArena(); } inline void ChatRequestMessage::set_chattext(const ::std::string& value) { - set_has_chattext(); - if (chattext_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - chattext_ = new ::std::string; - } - chattext_->assign(value); + _has_bits_[0] |= 0x00000001u; + chattext_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:ChatRequestMessage.chatText) } +#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) { - set_has_chattext(); - if (chattext_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - chattext_ = new ::std::string; - } - chattext_->assign(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) } inline void ChatRequestMessage::set_chattext(const char* value, size_t size) { - set_has_chattext(); - if (chattext_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - chattext_ = new ::std::string; - } - chattext_->assign(reinterpret_cast(value), 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) } inline ::std::string* ChatRequestMessage::mutable_chattext() { - set_has_chattext(); - if (chattext_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - chattext_ = new ::std::string; - } + _has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_mutable:ChatRequestMessage.chatText) - return chattext_; + return chattext_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* ChatRequestMessage::release_chattext() { - clear_has_chattext(); - if (chattext_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = chattext_; - chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete chattext_; - } - if (chattext) { - set_has_chattext(); - chattext_ = chattext; + if (chattext != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_chattext(); - chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } + chattext_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), chattext); // @@protoc_insertion_point(field_set_allocated:ChatRequestMessage.chatText) } @@ -19173,65 +20417,47 @@ inline void ChatRequestMessage::set_allocated_chattext(::std::string* chattext) // optional uint32 gameId = 1; inline bool ChatMessage::has_gameid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ChatMessage::set_has_gameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void ChatMessage::clear_has_gameid() { - _has_bits_[0] &= ~0x00000001u; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void ChatMessage::clear_gameid() { gameid_ = 0u; - clear_has_gameid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_gameid(); + _has_bits_[0] |= 0x00000002u; gameid_ = value; // @@protoc_insertion_point(field_set:ChatMessage.gameId) } // optional uint32 playerId = 2; inline bool ChatMessage::has_playerid() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void ChatMessage::set_has_playerid() { - _has_bits_[0] |= 0x00000002u; -} -inline void ChatMessage::clear_has_playerid() { - _has_bits_[0] &= ~0x00000002u; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void ChatMessage::clear_playerid() { playerid_ = 0u; - clear_has_playerid(); + _has_bits_[0] &= ~0x00000004u; } 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) { - set_has_playerid(); + _has_bits_[0] |= 0x00000004u; playerid_ = value; // @@protoc_insertion_point(field_set:ChatMessage.playerId) } // required .ChatMessage.ChatType chatType = 3; inline bool ChatMessage::has_chattype() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void ChatMessage::set_has_chattype() { - _has_bits_[0] |= 0x00000004u; -} -inline void ChatMessage::clear_has_chattype() { - _has_bits_[0] &= ~0x00000004u; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void ChatMessage::clear_chattype() { chattype_ = 0; - clear_has_chattype(); + _has_bits_[0] &= ~0x00000008u; } inline ::ChatMessage_ChatType ChatMessage::chattype() const { // @@protoc_insertion_point(field_get:ChatMessage.chatType) @@ -19239,84 +20465,68 @@ inline ::ChatMessage_ChatType ChatMessage::chattype() const { } inline void ChatMessage::set_chattype(::ChatMessage_ChatType value) { assert(::ChatMessage_ChatType_IsValid(value)); - set_has_chattype(); + _has_bits_[0] |= 0x00000008u; chattype_ = value; // @@protoc_insertion_point(field_set:ChatMessage.chatType) } // required string chatText = 4; inline bool ChatMessage::has_chattext() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void ChatMessage::set_has_chattext() { - _has_bits_[0] |= 0x00000008u; -} -inline void ChatMessage::clear_has_chattext() { - _has_bits_[0] &= ~0x00000008u; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void ChatMessage::clear_chattext() { - if (chattext_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - chattext_->clear(); - } - clear_has_chattext(); + chattext_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } inline const ::std::string& ChatMessage::chattext() const { // @@protoc_insertion_point(field_get:ChatMessage.chatText) - return *chattext_; + return chattext_.GetNoArena(); } inline void ChatMessage::set_chattext(const ::std::string& value) { - set_has_chattext(); - if (chattext_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - chattext_ = new ::std::string; - } - chattext_->assign(value); + _has_bits_[0] |= 0x00000001u; + chattext_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:ChatMessage.chatText) } +#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) { - set_has_chattext(); - if (chattext_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - chattext_ = new ::std::string; - } - chattext_->assign(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) } inline void ChatMessage::set_chattext(const char* value, size_t size) { - set_has_chattext(); - if (chattext_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - chattext_ = new ::std::string; - } - chattext_->assign(reinterpret_cast(value), 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) } inline ::std::string* ChatMessage::mutable_chattext() { - set_has_chattext(); - if (chattext_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - chattext_ = new ::std::string; - } + _has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_mutable:ChatMessage.chatText) - return chattext_; + return chattext_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* ChatMessage::release_chattext() { - clear_has_chattext(); - if (chattext_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = chattext_; - chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete chattext_; - } - if (chattext) { - set_has_chattext(); - chattext_ = chattext; + if (chattext != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_chattext(); - chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } + chattext_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), chattext); // @@protoc_insertion_point(field_set_allocated:ChatMessage.chatText) } @@ -19328,75 +20538,59 @@ inline void ChatMessage::set_allocated_chattext(::std::string* chattext) { inline bool ChatRejectMessage::has_chattext() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void ChatRejectMessage::set_has_chattext() { - _has_bits_[0] |= 0x00000001u; -} -inline void ChatRejectMessage::clear_has_chattext() { - _has_bits_[0] &= ~0x00000001u; -} inline void ChatRejectMessage::clear_chattext() { - if (chattext_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - chattext_->clear(); - } - clear_has_chattext(); + chattext_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } inline const ::std::string& ChatRejectMessage::chattext() const { // @@protoc_insertion_point(field_get:ChatRejectMessage.chatText) - return *chattext_; + return chattext_.GetNoArena(); } inline void ChatRejectMessage::set_chattext(const ::std::string& value) { - set_has_chattext(); - if (chattext_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - chattext_ = new ::std::string; - } - chattext_->assign(value); + _has_bits_[0] |= 0x00000001u; + chattext_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:ChatRejectMessage.chatText) } +#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) { - set_has_chattext(); - if (chattext_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - chattext_ = new ::std::string; - } - chattext_->assign(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) } inline void ChatRejectMessage::set_chattext(const char* value, size_t size) { - set_has_chattext(); - if (chattext_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - chattext_ = new ::std::string; - } - chattext_->assign(reinterpret_cast(value), 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) } inline ::std::string* ChatRejectMessage::mutable_chattext() { - set_has_chattext(); - if (chattext_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - chattext_ = new ::std::string; - } + _has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_mutable:ChatRejectMessage.chatText) - return chattext_; + return chattext_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* ChatRejectMessage::release_chattext() { - clear_has_chattext(); - if (chattext_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = chattext_; - chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete chattext_; - } - if (chattext) { - set_has_chattext(); - chattext_ = chattext; + if (chattext != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_chattext(); - chattext_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } + chattext_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), chattext); // @@protoc_insertion_point(field_set_allocated:ChatRejectMessage.chatText) } @@ -19408,75 +20602,59 @@ inline void ChatRejectMessage::set_allocated_chattext(::std::string* chattext) { inline bool DialogMessage::has_notificationtext() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void DialogMessage::set_has_notificationtext() { - _has_bits_[0] |= 0x00000001u; -} -inline void DialogMessage::clear_has_notificationtext() { - _has_bits_[0] &= ~0x00000001u; -} inline void DialogMessage::clear_notificationtext() { - if (notificationtext_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - notificationtext_->clear(); - } - clear_has_notificationtext(); + notificationtext_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } inline const ::std::string& DialogMessage::notificationtext() const { // @@protoc_insertion_point(field_get:DialogMessage.notificationText) - return *notificationtext_; + return notificationtext_.GetNoArena(); } inline void DialogMessage::set_notificationtext(const ::std::string& value) { - set_has_notificationtext(); - if (notificationtext_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - notificationtext_ = new ::std::string; - } - notificationtext_->assign(value); + _has_bits_[0] |= 0x00000001u; + notificationtext_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:DialogMessage.notificationText) } +#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) { - set_has_notificationtext(); - if (notificationtext_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - notificationtext_ = new ::std::string; - } - notificationtext_->assign(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) } inline void DialogMessage::set_notificationtext(const char* value, size_t size) { - set_has_notificationtext(); - if (notificationtext_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - notificationtext_ = new ::std::string; - } - notificationtext_->assign(reinterpret_cast(value), 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) } inline ::std::string* DialogMessage::mutable_notificationtext() { - set_has_notificationtext(); - if (notificationtext_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - notificationtext_ = new ::std::string; - } + _has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_mutable:DialogMessage.notificationText) - return notificationtext_; + return notificationtext_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* DialogMessage::release_notificationtext() { - clear_has_notificationtext(); - if (notificationtext_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = notificationtext_; - notificationtext_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete notificationtext_; - } - if (notificationtext) { - set_has_notificationtext(); - notificationtext_ = notificationtext; + if (notificationtext != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_notificationtext(); - notificationtext_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } + notificationtext_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), notificationtext); // @@protoc_insertion_point(field_set_allocated:DialogMessage.notificationText) } @@ -19488,15 +20666,9 @@ inline void DialogMessage::set_allocated_notificationtext(::std::string* notific inline bool TimeoutWarningMessage::has_timeoutreason() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void TimeoutWarningMessage::set_has_timeoutreason() { - _has_bits_[0] |= 0x00000001u; -} -inline void TimeoutWarningMessage::clear_has_timeoutreason() { - _has_bits_[0] &= ~0x00000001u; -} inline void TimeoutWarningMessage::clear_timeoutreason() { timeoutreason_ = 0; - clear_has_timeoutreason(); + _has_bits_[0] &= ~0x00000001u; } inline ::TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::timeoutreason() const { // @@protoc_insertion_point(field_get:TimeoutWarningMessage.timeoutReason) @@ -19504,7 +20676,7 @@ inline ::TimeoutWarningMessage_TimeoutReason TimeoutWarningMessage::timeoutreaso } inline void TimeoutWarningMessage::set_timeoutreason(::TimeoutWarningMessage_TimeoutReason value) { assert(::TimeoutWarningMessage_TimeoutReason_IsValid(value)); - set_has_timeoutreason(); + _has_bits_[0] |= 0x00000001u; timeoutreason_ = value; // @@protoc_insertion_point(field_set:TimeoutWarningMessage.timeoutReason) } @@ -19513,22 +20685,16 @@ inline void TimeoutWarningMessage::set_timeoutreason(::TimeoutWarningMessage_Tim inline bool TimeoutWarningMessage::has_remainingseconds() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void TimeoutWarningMessage::set_has_remainingseconds() { - _has_bits_[0] |= 0x00000002u; -} -inline void TimeoutWarningMessage::clear_has_remainingseconds() { - _has_bits_[0] &= ~0x00000002u; -} inline void TimeoutWarningMessage::clear_remainingseconds() { remainingseconds_ = 0u; - clear_has_remainingseconds(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_remainingseconds(); + _has_bits_[0] |= 0x00000002u; remainingseconds_ = value; // @@protoc_insertion_point(field_set:TimeoutWarningMessage.remainingSeconds) } @@ -19543,101 +20709,79 @@ inline void TimeoutWarningMessage::set_remainingseconds(::google::protobuf::uint // required uint32 reportedPlayerId = 1; inline bool ReportAvatarMessage::has_reportedplayerid() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void ReportAvatarMessage::set_has_reportedplayerid() { - _has_bits_[0] |= 0x00000001u; -} -inline void ReportAvatarMessage::clear_has_reportedplayerid() { - _has_bits_[0] &= ~0x00000001u; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void ReportAvatarMessage::clear_reportedplayerid() { reportedplayerid_ = 0u; - clear_has_reportedplayerid(); + _has_bits_[0] &= ~0x00000002u; } 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) { - set_has_reportedplayerid(); + _has_bits_[0] |= 0x00000002u; reportedplayerid_ = value; // @@protoc_insertion_point(field_set:ReportAvatarMessage.reportedPlayerId) } // required bytes reportedAvatarHash = 2; inline bool ReportAvatarMessage::has_reportedavatarhash() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void ReportAvatarMessage::set_has_reportedavatarhash() { - _has_bits_[0] |= 0x00000002u; -} -inline void ReportAvatarMessage::clear_has_reportedavatarhash() { - _has_bits_[0] &= ~0x00000002u; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void ReportAvatarMessage::clear_reportedavatarhash() { - if (reportedavatarhash_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - reportedavatarhash_->clear(); - } - clear_has_reportedavatarhash(); + reportedavatarhash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } inline const ::std::string& ReportAvatarMessage::reportedavatarhash() const { // @@protoc_insertion_point(field_get:ReportAvatarMessage.reportedAvatarHash) - return *reportedavatarhash_; + return reportedavatarhash_.GetNoArena(); } inline void ReportAvatarMessage::set_reportedavatarhash(const ::std::string& value) { - set_has_reportedavatarhash(); - if (reportedavatarhash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - reportedavatarhash_ = new ::std::string; - } - reportedavatarhash_->assign(value); + _has_bits_[0] |= 0x00000001u; + reportedavatarhash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:ReportAvatarMessage.reportedAvatarHash) } +#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) { - set_has_reportedavatarhash(); - if (reportedavatarhash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - reportedavatarhash_ = new ::std::string; - } - reportedavatarhash_->assign(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) } inline void ReportAvatarMessage::set_reportedavatarhash(const void* value, size_t size) { - set_has_reportedavatarhash(); - if (reportedavatarhash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - reportedavatarhash_ = new ::std::string; - } - reportedavatarhash_->assign(reinterpret_cast(value), 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) } inline ::std::string* ReportAvatarMessage::mutable_reportedavatarhash() { - set_has_reportedavatarhash(); - if (reportedavatarhash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - reportedavatarhash_ = new ::std::string; - } + _has_bits_[0] |= 0x00000001u; // @@protoc_insertion_point(field_mutable:ReportAvatarMessage.reportedAvatarHash) - return reportedavatarhash_; + return reportedavatarhash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* ReportAvatarMessage::release_reportedavatarhash() { - clear_has_reportedavatarhash(); - if (reportedavatarhash_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - return NULL; - } else { - ::std::string* temp = reportedavatarhash_; - reportedavatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - return temp; + // @@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_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { - delete reportedavatarhash_; - } - if (reportedavatarhash) { - set_has_reportedavatarhash(); - reportedavatarhash_ = reportedavatarhash; + if (reportedavatarhash != nullptr) { + _has_bits_[0] |= 0x00000001u; } else { - clear_has_reportedavatarhash(); - reportedavatarhash_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); + _has_bits_[0] &= ~0x00000001u; } + reportedavatarhash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reportedavatarhash); // @@protoc_insertion_point(field_set_allocated:ReportAvatarMessage.reportedAvatarHash) } @@ -19649,22 +20793,16 @@ inline void ReportAvatarMessage::set_allocated_reportedavatarhash(::std::string* inline bool ReportAvatarAckMessage::has_reportedplayerid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void ReportAvatarAckMessage::set_has_reportedplayerid() { - _has_bits_[0] |= 0x00000001u; -} -inline void ReportAvatarAckMessage::clear_has_reportedplayerid() { - _has_bits_[0] &= ~0x00000001u; -} inline void ReportAvatarAckMessage::clear_reportedplayerid() { reportedplayerid_ = 0u; - clear_has_reportedplayerid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_reportedplayerid(); + _has_bits_[0] |= 0x00000001u; reportedplayerid_ = value; // @@protoc_insertion_point(field_set:ReportAvatarAckMessage.reportedPlayerId) } @@ -19673,15 +20811,9 @@ inline void ReportAvatarAckMessage::set_reportedplayerid(::google::protobuf::uin inline bool ReportAvatarAckMessage::has_reportavatarresult() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void ReportAvatarAckMessage::set_has_reportavatarresult() { - _has_bits_[0] |= 0x00000002u; -} -inline void ReportAvatarAckMessage::clear_has_reportavatarresult() { - _has_bits_[0] &= ~0x00000002u; -} inline void ReportAvatarAckMessage::clear_reportavatarresult() { reportavatarresult_ = 0; - clear_has_reportavatarresult(); + _has_bits_[0] &= ~0x00000002u; } inline ::ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::reportavatarresult() const { // @@protoc_insertion_point(field_get:ReportAvatarAckMessage.reportAvatarResult) @@ -19689,7 +20821,7 @@ inline ::ReportAvatarAckMessage_ReportAvatarResult ReportAvatarAckMessage::repor } inline void ReportAvatarAckMessage::set_reportavatarresult(::ReportAvatarAckMessage_ReportAvatarResult value) { assert(::ReportAvatarAckMessage_ReportAvatarResult_IsValid(value)); - set_has_reportavatarresult(); + _has_bits_[0] |= 0x00000002u; reportavatarresult_ = value; // @@protoc_insertion_point(field_set:ReportAvatarAckMessage.reportAvatarResult) } @@ -19702,22 +20834,16 @@ inline void ReportAvatarAckMessage::set_reportavatarresult(::ReportAvatarAckMess inline bool ReportGameMessage::has_reportedgameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void ReportGameMessage::set_has_reportedgameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void ReportGameMessage::clear_has_reportedgameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void ReportGameMessage::clear_reportedgameid() { reportedgameid_ = 0u; - clear_has_reportedgameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_reportedgameid(); + _has_bits_[0] |= 0x00000001u; reportedgameid_ = value; // @@protoc_insertion_point(field_set:ReportGameMessage.reportedGameId) } @@ -19730,22 +20856,16 @@ inline void ReportGameMessage::set_reportedgameid(::google::protobuf::uint32 val inline bool ReportGameAckMessage::has_reportedgameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void ReportGameAckMessage::set_has_reportedgameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void ReportGameAckMessage::clear_has_reportedgameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void ReportGameAckMessage::clear_reportedgameid() { reportedgameid_ = 0u; - clear_has_reportedgameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_reportedgameid(); + _has_bits_[0] |= 0x00000001u; reportedgameid_ = value; // @@protoc_insertion_point(field_set:ReportGameAckMessage.reportedGameId) } @@ -19754,15 +20874,9 @@ inline void ReportGameAckMessage::set_reportedgameid(::google::protobuf::uint32 inline bool ReportGameAckMessage::has_reportgameresult() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void ReportGameAckMessage::set_has_reportgameresult() { - _has_bits_[0] |= 0x00000002u; -} -inline void ReportGameAckMessage::clear_has_reportgameresult() { - _has_bits_[0] &= ~0x00000002u; -} inline void ReportGameAckMessage::clear_reportgameresult() { reportgameresult_ = 0; - clear_has_reportgameresult(); + _has_bits_[0] &= ~0x00000002u; } inline ::ReportGameAckMessage_ReportGameResult ReportGameAckMessage::reportgameresult() const { // @@protoc_insertion_point(field_get:ReportGameAckMessage.reportGameResult) @@ -19770,7 +20884,7 @@ inline ::ReportGameAckMessage_ReportGameResult ReportGameAckMessage::reportgamer } inline void ReportGameAckMessage::set_reportgameresult(::ReportGameAckMessage_ReportGameResult value) { assert(::ReportGameAckMessage_ReportGameResult_IsValid(value)); - set_has_reportgameresult(); + _has_bits_[0] |= 0x00000002u; reportgameresult_ = value; // @@protoc_insertion_point(field_set:ReportGameAckMessage.reportGameResult) } @@ -19783,15 +20897,9 @@ inline void ReportGameAckMessage::set_reportgameresult(::ReportGameAckMessage_Re inline bool ErrorMessage::has_errorreason() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void ErrorMessage::set_has_errorreason() { - _has_bits_[0] |= 0x00000001u; -} -inline void ErrorMessage::clear_has_errorreason() { - _has_bits_[0] &= ~0x00000001u; -} inline void ErrorMessage::clear_errorreason() { errorreason_ = 0; - clear_has_errorreason(); + _has_bits_[0] &= ~0x00000001u; } inline ::ErrorMessage_ErrorReason ErrorMessage::errorreason() const { // @@protoc_insertion_point(field_get:ErrorMessage.errorReason) @@ -19799,7 +20907,7 @@ inline ::ErrorMessage_ErrorReason ErrorMessage::errorreason() const { } inline void ErrorMessage::set_errorreason(::ErrorMessage_ErrorReason value) { assert(::ErrorMessage_ErrorReason_IsValid(value)); - set_has_errorreason(); + _has_bits_[0] |= 0x00000001u; errorreason_ = value; // @@protoc_insertion_point(field_set:ErrorMessage.errorReason) } @@ -19812,22 +20920,16 @@ inline void ErrorMessage::set_errorreason(::ErrorMessage_ErrorReason value) { inline bool AdminRemoveGameMessage::has_removegameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AdminRemoveGameMessage::set_has_removegameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void AdminRemoveGameMessage::clear_has_removegameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void AdminRemoveGameMessage::clear_removegameid() { removegameid_ = 0u; - clear_has_removegameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_removegameid(); + _has_bits_[0] |= 0x00000001u; removegameid_ = value; // @@protoc_insertion_point(field_set:AdminRemoveGameMessage.removeGameId) } @@ -19840,22 +20942,16 @@ inline void AdminRemoveGameMessage::set_removegameid(::google::protobuf::uint32 inline bool AdminRemoveGameAckMessage::has_removegameid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AdminRemoveGameAckMessage::set_has_removegameid() { - _has_bits_[0] |= 0x00000001u; -} -inline void AdminRemoveGameAckMessage::clear_has_removegameid() { - _has_bits_[0] &= ~0x00000001u; -} inline void AdminRemoveGameAckMessage::clear_removegameid() { removegameid_ = 0u; - clear_has_removegameid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_removegameid(); + _has_bits_[0] |= 0x00000001u; removegameid_ = value; // @@protoc_insertion_point(field_set:AdminRemoveGameAckMessage.removeGameId) } @@ -19864,15 +20960,9 @@ inline void AdminRemoveGameAckMessage::set_removegameid(::google::protobuf::uint inline bool AdminRemoveGameAckMessage::has_removegameresult() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void AdminRemoveGameAckMessage::set_has_removegameresult() { - _has_bits_[0] |= 0x00000002u; -} -inline void AdminRemoveGameAckMessage::clear_has_removegameresult() { - _has_bits_[0] &= ~0x00000002u; -} inline void AdminRemoveGameAckMessage::clear_removegameresult() { removegameresult_ = 0; - clear_has_removegameresult(); + _has_bits_[0] &= ~0x00000002u; } inline ::AdminRemoveGameAckMessage_AdminRemoveGameResult AdminRemoveGameAckMessage::removegameresult() const { // @@protoc_insertion_point(field_get:AdminRemoveGameAckMessage.removeGameResult) @@ -19880,7 +20970,7 @@ inline ::AdminRemoveGameAckMessage_AdminRemoveGameResult AdminRemoveGameAckMessa } inline void AdminRemoveGameAckMessage::set_removegameresult(::AdminRemoveGameAckMessage_AdminRemoveGameResult value) { assert(::AdminRemoveGameAckMessage_AdminRemoveGameResult_IsValid(value)); - set_has_removegameresult(); + _has_bits_[0] |= 0x00000002u; removegameresult_ = value; // @@protoc_insertion_point(field_set:AdminRemoveGameAckMessage.removeGameResult) } @@ -19893,22 +20983,16 @@ inline void AdminRemoveGameAckMessage::set_removegameresult(::AdminRemoveGameAck inline bool AdminBanPlayerMessage::has_banplayerid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AdminBanPlayerMessage::set_has_banplayerid() { - _has_bits_[0] |= 0x00000001u; -} -inline void AdminBanPlayerMessage::clear_has_banplayerid() { - _has_bits_[0] &= ~0x00000001u; -} inline void AdminBanPlayerMessage::clear_banplayerid() { banplayerid_ = 0u; - clear_has_banplayerid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_banplayerid(); + _has_bits_[0] |= 0x00000001u; banplayerid_ = value; // @@protoc_insertion_point(field_set:AdminBanPlayerMessage.banPlayerId) } @@ -19921,22 +21005,16 @@ inline void AdminBanPlayerMessage::set_banplayerid(::google::protobuf::uint32 va inline bool AdminBanPlayerAckMessage::has_banplayerid() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void AdminBanPlayerAckMessage::set_has_banplayerid() { - _has_bits_[0] |= 0x00000001u; -} -inline void AdminBanPlayerAckMessage::clear_has_banplayerid() { - _has_bits_[0] &= ~0x00000001u; -} inline void AdminBanPlayerAckMessage::clear_banplayerid() { banplayerid_ = 0u; - clear_has_banplayerid(); + _has_bits_[0] &= ~0x00000001u; } 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) { - set_has_banplayerid(); + _has_bits_[0] |= 0x00000001u; banplayerid_ = value; // @@protoc_insertion_point(field_set:AdminBanPlayerAckMessage.banPlayerId) } @@ -19945,15 +21023,9 @@ inline void AdminBanPlayerAckMessage::set_banplayerid(::google::protobuf::uint32 inline bool AdminBanPlayerAckMessage::has_banplayerresult() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void AdminBanPlayerAckMessage::set_has_banplayerresult() { - _has_bits_[0] |= 0x00000002u; -} -inline void AdminBanPlayerAckMessage::clear_has_banplayerresult() { - _has_bits_[0] &= ~0x00000002u; -} inline void AdminBanPlayerAckMessage::clear_banplayerresult() { banplayerresult_ = 0; - clear_has_banplayerresult(); + _has_bits_[0] &= ~0x00000002u; } inline ::AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage::banplayerresult() const { // @@protoc_insertion_point(field_get:AdminBanPlayerAckMessage.banPlayerResult) @@ -19961,7 +21033,7 @@ inline ::AdminBanPlayerAckMessage_AdminBanPlayerResult AdminBanPlayerAckMessage: } inline void AdminBanPlayerAckMessage::set_banplayerresult(::AdminBanPlayerAckMessage_AdminBanPlayerResult value) { assert(::AdminBanPlayerAckMessage_AdminBanPlayerResult_IsValid(value)); - set_has_banplayerresult(); + _has_bits_[0] |= 0x00000002u; banplayerresult_ = value; // @@protoc_insertion_point(field_set:AdminBanPlayerAckMessage.banPlayerResult) } @@ -19972,17 +21044,11 @@ inline void AdminBanPlayerAckMessage::set_banplayerresult(::AdminBanPlayerAckMes // required .PokerTHMessage.PokerTHMessageType messageType = 1; inline bool PokerTHMessage::has_messagetype() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void PokerTHMessage::set_has_messagetype() { - _has_bits_[0] |= 0x00000001u; -} -inline void PokerTHMessage::clear_has_messagetype() { - _has_bits_[0] &= ~0x00000001u; + return (_has_bits_[2] & 0x00020000u) != 0; } inline void PokerTHMessage::clear_messagetype() { messagetype_ = 1; - clear_has_messagetype(); + _has_bits_[2] &= ~0x00020000u; } inline ::PokerTHMessage_PokerTHMessageType PokerTHMessage::messagetype() const { // @@protoc_insertion_point(field_get:PokerTHMessage.messageType) @@ -19990,3659 +21056,4206 @@ inline ::PokerTHMessage_PokerTHMessageType PokerTHMessage::messagetype() const { } inline void PokerTHMessage::set_messagetype(::PokerTHMessage_PokerTHMessageType value) { assert(::PokerTHMessage_PokerTHMessageType_IsValid(value)); - set_has_messagetype(); + _has_bits_[2] |= 0x00020000u; messagetype_ = value; // @@protoc_insertion_point(field_set:PokerTHMessage.messageType) } // optional .AnnounceMessage announceMessage = 2; inline bool PokerTHMessage::has_announcemessage() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void PokerTHMessage::set_has_announcemessage() { - _has_bits_[0] |= 0x00000002u; -} -inline void PokerTHMessage::clear_has_announcemessage() { - _has_bits_[0] &= ~0x00000002u; + return (_has_bits_[0] & 0x00000001u) != 0; } inline void PokerTHMessage::clear_announcemessage() { - if (announcemessage_ != NULL) announcemessage_->::AnnounceMessage::Clear(); - clear_has_announcemessage(); + if (announcemessage_ != nullptr) announcemessage_->Clear(); + _has_bits_[0] &= ~0x00000001u; } inline const ::AnnounceMessage& PokerTHMessage::announcemessage() const { + const ::AnnounceMessage* p = announcemessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.announceMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return announcemessage_ != NULL ? *announcemessage_ : *default_instance().announcemessage_; -#else - return announcemessage_ != NULL ? *announcemessage_ : *default_instance_->announcemessage_; -#endif + 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; } inline ::AnnounceMessage* PokerTHMessage::mutable_announcemessage() { - set_has_announcemessage(); - if (announcemessage_ == NULL) announcemessage_ = new ::AnnounceMessage; + _has_bits_[0] |= 0x00000001u; + if (announcemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AnnounceMessage>(GetArenaNoVirtual()); + announcemessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.announceMessage) return announcemessage_; } -inline ::AnnounceMessage* PokerTHMessage::release_announcemessage() { - clear_has_announcemessage(); - ::AnnounceMessage* temp = announcemessage_; - announcemessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_announcemessage(::AnnounceMessage* announcemessage) { - delete announcemessage_; - announcemessage_ = announcemessage; - if (announcemessage) { - set_has_announcemessage(); - } else { - clear_has_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) } // optional .InitMessage initMessage = 3; inline bool PokerTHMessage::has_initmessage() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void PokerTHMessage::set_has_initmessage() { - _has_bits_[0] |= 0x00000004u; -} -inline void PokerTHMessage::clear_has_initmessage() { - _has_bits_[0] &= ~0x00000004u; + return (_has_bits_[0] & 0x00000002u) != 0; } inline void PokerTHMessage::clear_initmessage() { - if (initmessage_ != NULL) initmessage_->::InitMessage::Clear(); - clear_has_initmessage(); + if (initmessage_ != nullptr) initmessage_->Clear(); + _has_bits_[0] &= ~0x00000002u; } inline const ::InitMessage& PokerTHMessage::initmessage() const { + const ::InitMessage* p = initmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.initMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return initmessage_ != NULL ? *initmessage_ : *default_instance().initmessage_; -#else - return initmessage_ != NULL ? *initmessage_ : *default_instance_->initmessage_; -#endif + 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; } inline ::InitMessage* PokerTHMessage::mutable_initmessage() { - set_has_initmessage(); - if (initmessage_ == NULL) initmessage_ = new ::InitMessage; + _has_bits_[0] |= 0x00000002u; + if (initmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::InitMessage>(GetArenaNoVirtual()); + initmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.initMessage) return initmessage_; } -inline ::InitMessage* PokerTHMessage::release_initmessage() { - clear_has_initmessage(); - ::InitMessage* temp = initmessage_; - initmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_initmessage(::InitMessage* initmessage) { - delete initmessage_; - initmessage_ = initmessage; - if (initmessage) { - set_has_initmessage(); - } else { - clear_has_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) } // optional .AuthServerChallengeMessage authServerChallengeMessage = 4; inline bool PokerTHMessage::has_authserverchallengemessage() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void PokerTHMessage::set_has_authserverchallengemessage() { - _has_bits_[0] |= 0x00000008u; -} -inline void PokerTHMessage::clear_has_authserverchallengemessage() { - _has_bits_[0] &= ~0x00000008u; + return (_has_bits_[0] & 0x00000004u) != 0; } inline void PokerTHMessage::clear_authserverchallengemessage() { - if (authserverchallengemessage_ != NULL) authserverchallengemessage_->::AuthServerChallengeMessage::Clear(); - clear_has_authserverchallengemessage(); + if (authserverchallengemessage_ != nullptr) authserverchallengemessage_->Clear(); + _has_bits_[0] &= ~0x00000004u; } inline const ::AuthServerChallengeMessage& PokerTHMessage::authserverchallengemessage() const { + const ::AuthServerChallengeMessage* p = authserverchallengemessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.authServerChallengeMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return authserverchallengemessage_ != NULL ? *authserverchallengemessage_ : *default_instance().authserverchallengemessage_; -#else - return authserverchallengemessage_ != NULL ? *authserverchallengemessage_ : *default_instance_->authserverchallengemessage_; -#endif + 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; } inline ::AuthServerChallengeMessage* PokerTHMessage::mutable_authserverchallengemessage() { - set_has_authserverchallengemessage(); - if (authserverchallengemessage_ == NULL) authserverchallengemessage_ = new ::AuthServerChallengeMessage; + _has_bits_[0] |= 0x00000004u; + if (authserverchallengemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AuthServerChallengeMessage>(GetArenaNoVirtual()); + authserverchallengemessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.authServerChallengeMessage) return authserverchallengemessage_; } -inline ::AuthServerChallengeMessage* PokerTHMessage::release_authserverchallengemessage() { - clear_has_authserverchallengemessage(); - ::AuthServerChallengeMessage* temp = authserverchallengemessage_; - authserverchallengemessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_authserverchallengemessage(::AuthServerChallengeMessage* authserverchallengemessage) { - delete authserverchallengemessage_; - authserverchallengemessage_ = authserverchallengemessage; - if (authserverchallengemessage) { - set_has_authserverchallengemessage(); - } else { - clear_has_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) } // optional .AuthClientResponseMessage authClientResponseMessage = 5; inline bool PokerTHMessage::has_authclientresponsemessage() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void PokerTHMessage::set_has_authclientresponsemessage() { - _has_bits_[0] |= 0x00000010u; -} -inline void PokerTHMessage::clear_has_authclientresponsemessage() { - _has_bits_[0] &= ~0x00000010u; + return (_has_bits_[0] & 0x00000008u) != 0; } inline void PokerTHMessage::clear_authclientresponsemessage() { - if (authclientresponsemessage_ != NULL) authclientresponsemessage_->::AuthClientResponseMessage::Clear(); - clear_has_authclientresponsemessage(); + if (authclientresponsemessage_ != nullptr) authclientresponsemessage_->Clear(); + _has_bits_[0] &= ~0x00000008u; } inline const ::AuthClientResponseMessage& PokerTHMessage::authclientresponsemessage() const { + const ::AuthClientResponseMessage* p = authclientresponsemessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.authClientResponseMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return authclientresponsemessage_ != NULL ? *authclientresponsemessage_ : *default_instance().authclientresponsemessage_; -#else - return authclientresponsemessage_ != NULL ? *authclientresponsemessage_ : *default_instance_->authclientresponsemessage_; -#endif + 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; } inline ::AuthClientResponseMessage* PokerTHMessage::mutable_authclientresponsemessage() { - set_has_authclientresponsemessage(); - if (authclientresponsemessage_ == NULL) authclientresponsemessage_ = new ::AuthClientResponseMessage; + _has_bits_[0] |= 0x00000008u; + if (authclientresponsemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AuthClientResponseMessage>(GetArenaNoVirtual()); + authclientresponsemessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.authClientResponseMessage) return authclientresponsemessage_; } -inline ::AuthClientResponseMessage* PokerTHMessage::release_authclientresponsemessage() { - clear_has_authclientresponsemessage(); - ::AuthClientResponseMessage* temp = authclientresponsemessage_; - authclientresponsemessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_authclientresponsemessage(::AuthClientResponseMessage* authclientresponsemessage) { - delete authclientresponsemessage_; - authclientresponsemessage_ = authclientresponsemessage; - if (authclientresponsemessage) { - set_has_authclientresponsemessage(); - } else { - clear_has_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) } // optional .AuthServerVerificationMessage authServerVerificationMessage = 6; inline bool PokerTHMessage::has_authserververificationmessage() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void PokerTHMessage::set_has_authserververificationmessage() { - _has_bits_[0] |= 0x00000020u; -} -inline void PokerTHMessage::clear_has_authserververificationmessage() { - _has_bits_[0] &= ~0x00000020u; + return (_has_bits_[0] & 0x00000010u) != 0; } inline void PokerTHMessage::clear_authserververificationmessage() { - if (authserververificationmessage_ != NULL) authserververificationmessage_->::AuthServerVerificationMessage::Clear(); - clear_has_authserververificationmessage(); + if (authserververificationmessage_ != nullptr) authserververificationmessage_->Clear(); + _has_bits_[0] &= ~0x00000010u; } inline const ::AuthServerVerificationMessage& PokerTHMessage::authserververificationmessage() const { + const ::AuthServerVerificationMessage* p = authserververificationmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.authServerVerificationMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return authserververificationmessage_ != NULL ? *authserververificationmessage_ : *default_instance().authserververificationmessage_; -#else - return authserververificationmessage_ != NULL ? *authserververificationmessage_ : *default_instance_->authserververificationmessage_; -#endif + 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; } inline ::AuthServerVerificationMessage* PokerTHMessage::mutable_authserververificationmessage() { - set_has_authserververificationmessage(); - if (authserververificationmessage_ == NULL) authserververificationmessage_ = new ::AuthServerVerificationMessage; + _has_bits_[0] |= 0x00000010u; + if (authserververificationmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AuthServerVerificationMessage>(GetArenaNoVirtual()); + authserververificationmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.authServerVerificationMessage) return authserververificationmessage_; } -inline ::AuthServerVerificationMessage* PokerTHMessage::release_authserververificationmessage() { - clear_has_authserververificationmessage(); - ::AuthServerVerificationMessage* temp = authserververificationmessage_; - authserververificationmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_authserververificationmessage(::AuthServerVerificationMessage* authserververificationmessage) { - delete authserververificationmessage_; - authserververificationmessage_ = authserververificationmessage; - if (authserververificationmessage) { - set_has_authserververificationmessage(); - } else { - clear_has_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) } // optional .InitAckMessage initAckMessage = 7; inline bool PokerTHMessage::has_initackmessage() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void PokerTHMessage::set_has_initackmessage() { - _has_bits_[0] |= 0x00000040u; -} -inline void PokerTHMessage::clear_has_initackmessage() { - _has_bits_[0] &= ~0x00000040u; + return (_has_bits_[0] & 0x00000020u) != 0; } inline void PokerTHMessage::clear_initackmessage() { - if (initackmessage_ != NULL) initackmessage_->::InitAckMessage::Clear(); - clear_has_initackmessage(); + if (initackmessage_ != nullptr) initackmessage_->Clear(); + _has_bits_[0] &= ~0x00000020u; } inline const ::InitAckMessage& PokerTHMessage::initackmessage() const { + const ::InitAckMessage* p = initackmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.initAckMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return initackmessage_ != NULL ? *initackmessage_ : *default_instance().initackmessage_; -#else - return initackmessage_ != NULL ? *initackmessage_ : *default_instance_->initackmessage_; -#endif + 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; } inline ::InitAckMessage* PokerTHMessage::mutable_initackmessage() { - set_has_initackmessage(); - if (initackmessage_ == NULL) initackmessage_ = new ::InitAckMessage; + _has_bits_[0] |= 0x00000020u; + if (initackmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::InitAckMessage>(GetArenaNoVirtual()); + initackmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.initAckMessage) return initackmessage_; } -inline ::InitAckMessage* PokerTHMessage::release_initackmessage() { - clear_has_initackmessage(); - ::InitAckMessage* temp = initackmessage_; - initackmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_initackmessage(::InitAckMessage* initackmessage) { - delete initackmessage_; - initackmessage_ = initackmessage; - if (initackmessage) { - set_has_initackmessage(); - } else { - clear_has_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) } // optional .AvatarRequestMessage avatarRequestMessage = 8; inline bool PokerTHMessage::has_avatarrequestmessage() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -inline void PokerTHMessage::set_has_avatarrequestmessage() { - _has_bits_[0] |= 0x00000080u; -} -inline void PokerTHMessage::clear_has_avatarrequestmessage() { - _has_bits_[0] &= ~0x00000080u; + return (_has_bits_[0] & 0x00000040u) != 0; } inline void PokerTHMessage::clear_avatarrequestmessage() { - if (avatarrequestmessage_ != NULL) avatarrequestmessage_->::AvatarRequestMessage::Clear(); - clear_has_avatarrequestmessage(); + if (avatarrequestmessage_ != nullptr) avatarrequestmessage_->Clear(); + _has_bits_[0] &= ~0x00000040u; } inline const ::AvatarRequestMessage& PokerTHMessage::avatarrequestmessage() const { + const ::AvatarRequestMessage* p = avatarrequestmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.avatarRequestMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return avatarrequestmessage_ != NULL ? *avatarrequestmessage_ : *default_instance().avatarrequestmessage_; -#else - return avatarrequestmessage_ != NULL ? *avatarrequestmessage_ : *default_instance_->avatarrequestmessage_; -#endif + 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; } inline ::AvatarRequestMessage* PokerTHMessage::mutable_avatarrequestmessage() { - set_has_avatarrequestmessage(); - if (avatarrequestmessage_ == NULL) avatarrequestmessage_ = new ::AvatarRequestMessage; + _has_bits_[0] |= 0x00000040u; + if (avatarrequestmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AvatarRequestMessage>(GetArenaNoVirtual()); + avatarrequestmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.avatarRequestMessage) return avatarrequestmessage_; } -inline ::AvatarRequestMessage* PokerTHMessage::release_avatarrequestmessage() { - clear_has_avatarrequestmessage(); - ::AvatarRequestMessage* temp = avatarrequestmessage_; - avatarrequestmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_avatarrequestmessage(::AvatarRequestMessage* avatarrequestmessage) { - delete avatarrequestmessage_; - avatarrequestmessage_ = avatarrequestmessage; - if (avatarrequestmessage) { - set_has_avatarrequestmessage(); - } else { - clear_has_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) } // optional .AvatarHeaderMessage avatarHeaderMessage = 9; inline bool PokerTHMessage::has_avatarheadermessage() const { - return (_has_bits_[0] & 0x00000100u) != 0; -} -inline void PokerTHMessage::set_has_avatarheadermessage() { - _has_bits_[0] |= 0x00000100u; -} -inline void PokerTHMessage::clear_has_avatarheadermessage() { - _has_bits_[0] &= ~0x00000100u; + return (_has_bits_[0] & 0x00000080u) != 0; } inline void PokerTHMessage::clear_avatarheadermessage() { - if (avatarheadermessage_ != NULL) avatarheadermessage_->::AvatarHeaderMessage::Clear(); - clear_has_avatarheadermessage(); + if (avatarheadermessage_ != nullptr) avatarheadermessage_->Clear(); + _has_bits_[0] &= ~0x00000080u; } inline const ::AvatarHeaderMessage& PokerTHMessage::avatarheadermessage() const { + const ::AvatarHeaderMessage* p = avatarheadermessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.avatarHeaderMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return avatarheadermessage_ != NULL ? *avatarheadermessage_ : *default_instance().avatarheadermessage_; -#else - return avatarheadermessage_ != NULL ? *avatarheadermessage_ : *default_instance_->avatarheadermessage_; -#endif + 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; } inline ::AvatarHeaderMessage* PokerTHMessage::mutable_avatarheadermessage() { - set_has_avatarheadermessage(); - if (avatarheadermessage_ == NULL) avatarheadermessage_ = new ::AvatarHeaderMessage; + _has_bits_[0] |= 0x00000080u; + if (avatarheadermessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AvatarHeaderMessage>(GetArenaNoVirtual()); + avatarheadermessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.avatarHeaderMessage) return avatarheadermessage_; } -inline ::AvatarHeaderMessage* PokerTHMessage::release_avatarheadermessage() { - clear_has_avatarheadermessage(); - ::AvatarHeaderMessage* temp = avatarheadermessage_; - avatarheadermessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_avatarheadermessage(::AvatarHeaderMessage* avatarheadermessage) { - delete avatarheadermessage_; - avatarheadermessage_ = avatarheadermessage; - if (avatarheadermessage) { - set_has_avatarheadermessage(); - } else { - clear_has_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) } // optional .AvatarDataMessage avatarDataMessage = 10; inline bool PokerTHMessage::has_avatardatamessage() const { - return (_has_bits_[0] & 0x00000200u) != 0; -} -inline void PokerTHMessage::set_has_avatardatamessage() { - _has_bits_[0] |= 0x00000200u; -} -inline void PokerTHMessage::clear_has_avatardatamessage() { - _has_bits_[0] &= ~0x00000200u; + return (_has_bits_[0] & 0x00000100u) != 0; } inline void PokerTHMessage::clear_avatardatamessage() { - if (avatardatamessage_ != NULL) avatardatamessage_->::AvatarDataMessage::Clear(); - clear_has_avatardatamessage(); + if (avatardatamessage_ != nullptr) avatardatamessage_->Clear(); + _has_bits_[0] &= ~0x00000100u; } inline const ::AvatarDataMessage& PokerTHMessage::avatardatamessage() const { + const ::AvatarDataMessage* p = avatardatamessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.avatarDataMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return avatardatamessage_ != NULL ? *avatardatamessage_ : *default_instance().avatardatamessage_; -#else - return avatardatamessage_ != NULL ? *avatardatamessage_ : *default_instance_->avatardatamessage_; -#endif + 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; } inline ::AvatarDataMessage* PokerTHMessage::mutable_avatardatamessage() { - set_has_avatardatamessage(); - if (avatardatamessage_ == NULL) avatardatamessage_ = new ::AvatarDataMessage; + _has_bits_[0] |= 0x00000100u; + if (avatardatamessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AvatarDataMessage>(GetArenaNoVirtual()); + avatardatamessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.avatarDataMessage) return avatardatamessage_; } -inline ::AvatarDataMessage* PokerTHMessage::release_avatardatamessage() { - clear_has_avatardatamessage(); - ::AvatarDataMessage* temp = avatardatamessage_; - avatardatamessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_avatardatamessage(::AvatarDataMessage* avatardatamessage) { - delete avatardatamessage_; - avatardatamessage_ = avatardatamessage; - if (avatardatamessage) { - set_has_avatardatamessage(); - } else { - clear_has_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) } // optional .AvatarEndMessage avatarEndMessage = 11; inline bool PokerTHMessage::has_avatarendmessage() const { - return (_has_bits_[0] & 0x00000400u) != 0; -} -inline void PokerTHMessage::set_has_avatarendmessage() { - _has_bits_[0] |= 0x00000400u; -} -inline void PokerTHMessage::clear_has_avatarendmessage() { - _has_bits_[0] &= ~0x00000400u; + return (_has_bits_[0] & 0x00000200u) != 0; } inline void PokerTHMessage::clear_avatarendmessage() { - if (avatarendmessage_ != NULL) avatarendmessage_->::AvatarEndMessage::Clear(); - clear_has_avatarendmessage(); + if (avatarendmessage_ != nullptr) avatarendmessage_->Clear(); + _has_bits_[0] &= ~0x00000200u; } inline const ::AvatarEndMessage& PokerTHMessage::avatarendmessage() const { + const ::AvatarEndMessage* p = avatarendmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.avatarEndMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return avatarendmessage_ != NULL ? *avatarendmessage_ : *default_instance().avatarendmessage_; -#else - return avatarendmessage_ != NULL ? *avatarendmessage_ : *default_instance_->avatarendmessage_; -#endif + 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; } inline ::AvatarEndMessage* PokerTHMessage::mutable_avatarendmessage() { - set_has_avatarendmessage(); - if (avatarendmessage_ == NULL) avatarendmessage_ = new ::AvatarEndMessage; + _has_bits_[0] |= 0x00000200u; + if (avatarendmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AvatarEndMessage>(GetArenaNoVirtual()); + avatarendmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.avatarEndMessage) return avatarendmessage_; } -inline ::AvatarEndMessage* PokerTHMessage::release_avatarendmessage() { - clear_has_avatarendmessage(); - ::AvatarEndMessage* temp = avatarendmessage_; - avatarendmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_avatarendmessage(::AvatarEndMessage* avatarendmessage) { - delete avatarendmessage_; - avatarendmessage_ = avatarendmessage; - if (avatarendmessage) { - set_has_avatarendmessage(); - } else { - clear_has_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) } // optional .UnknownAvatarMessage unknownAvatarMessage = 12; inline bool PokerTHMessage::has_unknownavatarmessage() const { - return (_has_bits_[0] & 0x00000800u) != 0; -} -inline void PokerTHMessage::set_has_unknownavatarmessage() { - _has_bits_[0] |= 0x00000800u; -} -inline void PokerTHMessage::clear_has_unknownavatarmessage() { - _has_bits_[0] &= ~0x00000800u; + return (_has_bits_[0] & 0x00000400u) != 0; } inline void PokerTHMessage::clear_unknownavatarmessage() { - if (unknownavatarmessage_ != NULL) unknownavatarmessage_->::UnknownAvatarMessage::Clear(); - clear_has_unknownavatarmessage(); + if (unknownavatarmessage_ != nullptr) unknownavatarmessage_->Clear(); + _has_bits_[0] &= ~0x00000400u; } inline const ::UnknownAvatarMessage& PokerTHMessage::unknownavatarmessage() const { + const ::UnknownAvatarMessage* p = unknownavatarmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.unknownAvatarMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return unknownavatarmessage_ != NULL ? *unknownavatarmessage_ : *default_instance().unknownavatarmessage_; -#else - return unknownavatarmessage_ != NULL ? *unknownavatarmessage_ : *default_instance_->unknownavatarmessage_; -#endif + 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; } inline ::UnknownAvatarMessage* PokerTHMessage::mutable_unknownavatarmessage() { - set_has_unknownavatarmessage(); - if (unknownavatarmessage_ == NULL) unknownavatarmessage_ = new ::UnknownAvatarMessage; + _has_bits_[0] |= 0x00000400u; + if (unknownavatarmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::UnknownAvatarMessage>(GetArenaNoVirtual()); + unknownavatarmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.unknownAvatarMessage) return unknownavatarmessage_; } -inline ::UnknownAvatarMessage* PokerTHMessage::release_unknownavatarmessage() { - clear_has_unknownavatarmessage(); - ::UnknownAvatarMessage* temp = unknownavatarmessage_; - unknownavatarmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_unknownavatarmessage(::UnknownAvatarMessage* unknownavatarmessage) { - delete unknownavatarmessage_; - unknownavatarmessage_ = unknownavatarmessage; - if (unknownavatarmessage) { - set_has_unknownavatarmessage(); - } else { - clear_has_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) } // optional .PlayerListMessage playerListMessage = 13; inline bool PokerTHMessage::has_playerlistmessage() const { - return (_has_bits_[0] & 0x00001000u) != 0; -} -inline void PokerTHMessage::set_has_playerlistmessage() { - _has_bits_[0] |= 0x00001000u; -} -inline void PokerTHMessage::clear_has_playerlistmessage() { - _has_bits_[0] &= ~0x00001000u; + return (_has_bits_[0] & 0x00000800u) != 0; } inline void PokerTHMessage::clear_playerlistmessage() { - if (playerlistmessage_ != NULL) playerlistmessage_->::PlayerListMessage::Clear(); - clear_has_playerlistmessage(); + if (playerlistmessage_ != nullptr) playerlistmessage_->Clear(); + _has_bits_[0] &= ~0x00000800u; } inline const ::PlayerListMessage& PokerTHMessage::playerlistmessage() const { + const ::PlayerListMessage* p = playerlistmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.playerListMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return playerlistmessage_ != NULL ? *playerlistmessage_ : *default_instance().playerlistmessage_; -#else - return playerlistmessage_ != NULL ? *playerlistmessage_ : *default_instance_->playerlistmessage_; -#endif + 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; } inline ::PlayerListMessage* PokerTHMessage::mutable_playerlistmessage() { - set_has_playerlistmessage(); - if (playerlistmessage_ == NULL) playerlistmessage_ = new ::PlayerListMessage; + _has_bits_[0] |= 0x00000800u; + if (playerlistmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::PlayerListMessage>(GetArenaNoVirtual()); + playerlistmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.playerListMessage) return playerlistmessage_; } -inline ::PlayerListMessage* PokerTHMessage::release_playerlistmessage() { - clear_has_playerlistmessage(); - ::PlayerListMessage* temp = playerlistmessage_; - playerlistmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_playerlistmessage(::PlayerListMessage* playerlistmessage) { - delete playerlistmessage_; - playerlistmessage_ = playerlistmessage; - if (playerlistmessage) { - set_has_playerlistmessage(); - } else { - clear_has_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) } // optional .GameListNewMessage gameListNewMessage = 14; inline bool PokerTHMessage::has_gamelistnewmessage() const { - return (_has_bits_[0] & 0x00002000u) != 0; -} -inline void PokerTHMessage::set_has_gamelistnewmessage() { - _has_bits_[0] |= 0x00002000u; -} -inline void PokerTHMessage::clear_has_gamelistnewmessage() { - _has_bits_[0] &= ~0x00002000u; + return (_has_bits_[0] & 0x00001000u) != 0; } inline void PokerTHMessage::clear_gamelistnewmessage() { - if (gamelistnewmessage_ != NULL) gamelistnewmessage_->::GameListNewMessage::Clear(); - clear_has_gamelistnewmessage(); + if (gamelistnewmessage_ != nullptr) gamelistnewmessage_->Clear(); + _has_bits_[0] &= ~0x00001000u; } inline const ::GameListNewMessage& PokerTHMessage::gamelistnewmessage() const { + const ::GameListNewMessage* p = gamelistnewmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.gameListNewMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gamelistnewmessage_ != NULL ? *gamelistnewmessage_ : *default_instance().gamelistnewmessage_; -#else - return gamelistnewmessage_ != NULL ? *gamelistnewmessage_ : *default_instance_->gamelistnewmessage_; -#endif + 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; } inline ::GameListNewMessage* PokerTHMessage::mutable_gamelistnewmessage() { - set_has_gamelistnewmessage(); - if (gamelistnewmessage_ == NULL) gamelistnewmessage_ = new ::GameListNewMessage; + _has_bits_[0] |= 0x00001000u; + if (gamelistnewmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GameListNewMessage>(GetArenaNoVirtual()); + gamelistnewmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameListNewMessage) return gamelistnewmessage_; } -inline ::GameListNewMessage* PokerTHMessage::release_gamelistnewmessage() { - clear_has_gamelistnewmessage(); - ::GameListNewMessage* temp = gamelistnewmessage_; - gamelistnewmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_gamelistnewmessage(::GameListNewMessage* gamelistnewmessage) { - delete gamelistnewmessage_; - gamelistnewmessage_ = gamelistnewmessage; - if (gamelistnewmessage) { - set_has_gamelistnewmessage(); - } else { - clear_has_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) } // optional .GameListUpdateMessage gameListUpdateMessage = 15; inline bool PokerTHMessage::has_gamelistupdatemessage() const { - return (_has_bits_[0] & 0x00004000u) != 0; -} -inline void PokerTHMessage::set_has_gamelistupdatemessage() { - _has_bits_[0] |= 0x00004000u; -} -inline void PokerTHMessage::clear_has_gamelistupdatemessage() { - _has_bits_[0] &= ~0x00004000u; + return (_has_bits_[0] & 0x00002000u) != 0; } inline void PokerTHMessage::clear_gamelistupdatemessage() { - if (gamelistupdatemessage_ != NULL) gamelistupdatemessage_->::GameListUpdateMessage::Clear(); - clear_has_gamelistupdatemessage(); + if (gamelistupdatemessage_ != nullptr) gamelistupdatemessage_->Clear(); + _has_bits_[0] &= ~0x00002000u; } inline const ::GameListUpdateMessage& PokerTHMessage::gamelistupdatemessage() const { + const ::GameListUpdateMessage* p = gamelistupdatemessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.gameListUpdateMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gamelistupdatemessage_ != NULL ? *gamelistupdatemessage_ : *default_instance().gamelistupdatemessage_; -#else - return gamelistupdatemessage_ != NULL ? *gamelistupdatemessage_ : *default_instance_->gamelistupdatemessage_; -#endif + 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; } inline ::GameListUpdateMessage* PokerTHMessage::mutable_gamelistupdatemessage() { - set_has_gamelistupdatemessage(); - if (gamelistupdatemessage_ == NULL) gamelistupdatemessage_ = new ::GameListUpdateMessage; + _has_bits_[0] |= 0x00002000u; + if (gamelistupdatemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GameListUpdateMessage>(GetArenaNoVirtual()); + gamelistupdatemessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameListUpdateMessage) return gamelistupdatemessage_; } -inline ::GameListUpdateMessage* PokerTHMessage::release_gamelistupdatemessage() { - clear_has_gamelistupdatemessage(); - ::GameListUpdateMessage* temp = gamelistupdatemessage_; - gamelistupdatemessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_gamelistupdatemessage(::GameListUpdateMessage* gamelistupdatemessage) { - delete gamelistupdatemessage_; - gamelistupdatemessage_ = gamelistupdatemessage; - if (gamelistupdatemessage) { - set_has_gamelistupdatemessage(); - } else { - clear_has_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) } // optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; inline bool PokerTHMessage::has_gamelistplayerjoinedmessage() const { - return (_has_bits_[0] & 0x00008000u) != 0; -} -inline void PokerTHMessage::set_has_gamelistplayerjoinedmessage() { - _has_bits_[0] |= 0x00008000u; -} -inline void PokerTHMessage::clear_has_gamelistplayerjoinedmessage() { - _has_bits_[0] &= ~0x00008000u; + return (_has_bits_[0] & 0x00004000u) != 0; } inline void PokerTHMessage::clear_gamelistplayerjoinedmessage() { - if (gamelistplayerjoinedmessage_ != NULL) gamelistplayerjoinedmessage_->::GameListPlayerJoinedMessage::Clear(); - clear_has_gamelistplayerjoinedmessage(); + if (gamelistplayerjoinedmessage_ != nullptr) gamelistplayerjoinedmessage_->Clear(); + _has_bits_[0] &= ~0x00004000u; } inline const ::GameListPlayerJoinedMessage& PokerTHMessage::gamelistplayerjoinedmessage() const { + const ::GameListPlayerJoinedMessage* p = gamelistplayerjoinedmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.gameListPlayerJoinedMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gamelistplayerjoinedmessage_ != NULL ? *gamelistplayerjoinedmessage_ : *default_instance().gamelistplayerjoinedmessage_; -#else - return gamelistplayerjoinedmessage_ != NULL ? *gamelistplayerjoinedmessage_ : *default_instance_->gamelistplayerjoinedmessage_; -#endif + 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; } inline ::GameListPlayerJoinedMessage* PokerTHMessage::mutable_gamelistplayerjoinedmessage() { - set_has_gamelistplayerjoinedmessage(); - if (gamelistplayerjoinedmessage_ == NULL) gamelistplayerjoinedmessage_ = new ::GameListPlayerJoinedMessage; + _has_bits_[0] |= 0x00004000u; + if (gamelistplayerjoinedmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GameListPlayerJoinedMessage>(GetArenaNoVirtual()); + gamelistplayerjoinedmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameListPlayerJoinedMessage) return gamelistplayerjoinedmessage_; } -inline ::GameListPlayerJoinedMessage* PokerTHMessage::release_gamelistplayerjoinedmessage() { - clear_has_gamelistplayerjoinedmessage(); - ::GameListPlayerJoinedMessage* temp = gamelistplayerjoinedmessage_; - gamelistplayerjoinedmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_gamelistplayerjoinedmessage(::GameListPlayerJoinedMessage* gamelistplayerjoinedmessage) { - delete gamelistplayerjoinedmessage_; - gamelistplayerjoinedmessage_ = gamelistplayerjoinedmessage; - if (gamelistplayerjoinedmessage) { - set_has_gamelistplayerjoinedmessage(); - } else { - clear_has_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) } // optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; inline bool PokerTHMessage::has_gamelistplayerleftmessage() const { - return (_has_bits_[0] & 0x00010000u) != 0; -} -inline void PokerTHMessage::set_has_gamelistplayerleftmessage() { - _has_bits_[0] |= 0x00010000u; -} -inline void PokerTHMessage::clear_has_gamelistplayerleftmessage() { - _has_bits_[0] &= ~0x00010000u; + return (_has_bits_[0] & 0x00008000u) != 0; } inline void PokerTHMessage::clear_gamelistplayerleftmessage() { - if (gamelistplayerleftmessage_ != NULL) gamelistplayerleftmessage_->::GameListPlayerLeftMessage::Clear(); - clear_has_gamelistplayerleftmessage(); + if (gamelistplayerleftmessage_ != nullptr) gamelistplayerleftmessage_->Clear(); + _has_bits_[0] &= ~0x00008000u; } inline const ::GameListPlayerLeftMessage& PokerTHMessage::gamelistplayerleftmessage() const { + const ::GameListPlayerLeftMessage* p = gamelistplayerleftmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.gameListPlayerLeftMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gamelistplayerleftmessage_ != NULL ? *gamelistplayerleftmessage_ : *default_instance().gamelistplayerleftmessage_; -#else - return gamelistplayerleftmessage_ != NULL ? *gamelistplayerleftmessage_ : *default_instance_->gamelistplayerleftmessage_; -#endif + 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; } inline ::GameListPlayerLeftMessage* PokerTHMessage::mutable_gamelistplayerleftmessage() { - set_has_gamelistplayerleftmessage(); - if (gamelistplayerleftmessage_ == NULL) gamelistplayerleftmessage_ = new ::GameListPlayerLeftMessage; + _has_bits_[0] |= 0x00008000u; + if (gamelistplayerleftmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GameListPlayerLeftMessage>(GetArenaNoVirtual()); + gamelistplayerleftmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameListPlayerLeftMessage) return gamelistplayerleftmessage_; } -inline ::GameListPlayerLeftMessage* PokerTHMessage::release_gamelistplayerleftmessage() { - clear_has_gamelistplayerleftmessage(); - ::GameListPlayerLeftMessage* temp = gamelistplayerleftmessage_; - gamelistplayerleftmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_gamelistplayerleftmessage(::GameListPlayerLeftMessage* gamelistplayerleftmessage) { - delete gamelistplayerleftmessage_; - gamelistplayerleftmessage_ = gamelistplayerleftmessage; - if (gamelistplayerleftmessage) { - set_has_gamelistplayerleftmessage(); - } else { - clear_has_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) } // optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; inline bool PokerTHMessage::has_gamelistadminchangedmessage() const { - return (_has_bits_[0] & 0x00020000u) != 0; -} -inline void PokerTHMessage::set_has_gamelistadminchangedmessage() { - _has_bits_[0] |= 0x00020000u; -} -inline void PokerTHMessage::clear_has_gamelistadminchangedmessage() { - _has_bits_[0] &= ~0x00020000u; + return (_has_bits_[0] & 0x00010000u) != 0; } inline void PokerTHMessage::clear_gamelistadminchangedmessage() { - if (gamelistadminchangedmessage_ != NULL) gamelistadminchangedmessage_->::GameListAdminChangedMessage::Clear(); - clear_has_gamelistadminchangedmessage(); + if (gamelistadminchangedmessage_ != nullptr) gamelistadminchangedmessage_->Clear(); + _has_bits_[0] &= ~0x00010000u; } inline const ::GameListAdminChangedMessage& PokerTHMessage::gamelistadminchangedmessage() const { + const ::GameListAdminChangedMessage* p = gamelistadminchangedmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.gameListAdminChangedMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gamelistadminchangedmessage_ != NULL ? *gamelistadminchangedmessage_ : *default_instance().gamelistadminchangedmessage_; -#else - return gamelistadminchangedmessage_ != NULL ? *gamelistadminchangedmessage_ : *default_instance_->gamelistadminchangedmessage_; -#endif + 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; } inline ::GameListAdminChangedMessage* PokerTHMessage::mutable_gamelistadminchangedmessage() { - set_has_gamelistadminchangedmessage(); - if (gamelistadminchangedmessage_ == NULL) gamelistadminchangedmessage_ = new ::GameListAdminChangedMessage; + _has_bits_[0] |= 0x00010000u; + if (gamelistadminchangedmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GameListAdminChangedMessage>(GetArenaNoVirtual()); + gamelistadminchangedmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameListAdminChangedMessage) return gamelistadminchangedmessage_; } -inline ::GameListAdminChangedMessage* PokerTHMessage::release_gamelistadminchangedmessage() { - clear_has_gamelistadminchangedmessage(); - ::GameListAdminChangedMessage* temp = gamelistadminchangedmessage_; - gamelistadminchangedmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_gamelistadminchangedmessage(::GameListAdminChangedMessage* gamelistadminchangedmessage) { - delete gamelistadminchangedmessage_; - gamelistadminchangedmessage_ = gamelistadminchangedmessage; - if (gamelistadminchangedmessage) { - set_has_gamelistadminchangedmessage(); - } else { - clear_has_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) } // optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; inline bool PokerTHMessage::has_playerinforequestmessage() const { - return (_has_bits_[0] & 0x00040000u) != 0; -} -inline void PokerTHMessage::set_has_playerinforequestmessage() { - _has_bits_[0] |= 0x00040000u; -} -inline void PokerTHMessage::clear_has_playerinforequestmessage() { - _has_bits_[0] &= ~0x00040000u; + return (_has_bits_[0] & 0x00020000u) != 0; } inline void PokerTHMessage::clear_playerinforequestmessage() { - if (playerinforequestmessage_ != NULL) playerinforequestmessage_->::PlayerInfoRequestMessage::Clear(); - clear_has_playerinforequestmessage(); + if (playerinforequestmessage_ != nullptr) playerinforequestmessage_->Clear(); + _has_bits_[0] &= ~0x00020000u; } inline const ::PlayerInfoRequestMessage& PokerTHMessage::playerinforequestmessage() const { + const ::PlayerInfoRequestMessage* p = playerinforequestmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.playerInfoRequestMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return playerinforequestmessage_ != NULL ? *playerinforequestmessage_ : *default_instance().playerinforequestmessage_; -#else - return playerinforequestmessage_ != NULL ? *playerinforequestmessage_ : *default_instance_->playerinforequestmessage_; -#endif + 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; } inline ::PlayerInfoRequestMessage* PokerTHMessage::mutable_playerinforequestmessage() { - set_has_playerinforequestmessage(); - if (playerinforequestmessage_ == NULL) playerinforequestmessage_ = new ::PlayerInfoRequestMessage; + _has_bits_[0] |= 0x00020000u; + if (playerinforequestmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::PlayerInfoRequestMessage>(GetArenaNoVirtual()); + playerinforequestmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.playerInfoRequestMessage) return playerinforequestmessage_; } -inline ::PlayerInfoRequestMessage* PokerTHMessage::release_playerinforequestmessage() { - clear_has_playerinforequestmessage(); - ::PlayerInfoRequestMessage* temp = playerinforequestmessage_; - playerinforequestmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_playerinforequestmessage(::PlayerInfoRequestMessage* playerinforequestmessage) { - delete playerinforequestmessage_; - playerinforequestmessage_ = playerinforequestmessage; - if (playerinforequestmessage) { - set_has_playerinforequestmessage(); - } else { - clear_has_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) } // optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; inline bool PokerTHMessage::has_playerinforeplymessage() const { - return (_has_bits_[0] & 0x00080000u) != 0; -} -inline void PokerTHMessage::set_has_playerinforeplymessage() { - _has_bits_[0] |= 0x00080000u; -} -inline void PokerTHMessage::clear_has_playerinforeplymessage() { - _has_bits_[0] &= ~0x00080000u; + return (_has_bits_[0] & 0x00040000u) != 0; } inline void PokerTHMessage::clear_playerinforeplymessage() { - if (playerinforeplymessage_ != NULL) playerinforeplymessage_->::PlayerInfoReplyMessage::Clear(); - clear_has_playerinforeplymessage(); + if (playerinforeplymessage_ != nullptr) playerinforeplymessage_->Clear(); + _has_bits_[0] &= ~0x00040000u; } inline const ::PlayerInfoReplyMessage& PokerTHMessage::playerinforeplymessage() const { + const ::PlayerInfoReplyMessage* p = playerinforeplymessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.playerInfoReplyMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return playerinforeplymessage_ != NULL ? *playerinforeplymessage_ : *default_instance().playerinforeplymessage_; -#else - return playerinforeplymessage_ != NULL ? *playerinforeplymessage_ : *default_instance_->playerinforeplymessage_; -#endif + 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; } inline ::PlayerInfoReplyMessage* PokerTHMessage::mutable_playerinforeplymessage() { - set_has_playerinforeplymessage(); - if (playerinforeplymessage_ == NULL) playerinforeplymessage_ = new ::PlayerInfoReplyMessage; + _has_bits_[0] |= 0x00040000u; + if (playerinforeplymessage_ == nullptr) { + auto* p = CreateMaybeMessage<::PlayerInfoReplyMessage>(GetArenaNoVirtual()); + playerinforeplymessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.playerInfoReplyMessage) return playerinforeplymessage_; } -inline ::PlayerInfoReplyMessage* PokerTHMessage::release_playerinforeplymessage() { - clear_has_playerinforeplymessage(); - ::PlayerInfoReplyMessage* temp = playerinforeplymessage_; - playerinforeplymessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_playerinforeplymessage(::PlayerInfoReplyMessage* playerinforeplymessage) { - delete playerinforeplymessage_; - playerinforeplymessage_ = playerinforeplymessage; - if (playerinforeplymessage) { - set_has_playerinforeplymessage(); - } else { - clear_has_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) } // optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; inline bool PokerTHMessage::has_subscriptionrequestmessage() const { - return (_has_bits_[0] & 0x00100000u) != 0; -} -inline void PokerTHMessage::set_has_subscriptionrequestmessage() { - _has_bits_[0] |= 0x00100000u; -} -inline void PokerTHMessage::clear_has_subscriptionrequestmessage() { - _has_bits_[0] &= ~0x00100000u; + return (_has_bits_[0] & 0x00080000u) != 0; } inline void PokerTHMessage::clear_subscriptionrequestmessage() { - if (subscriptionrequestmessage_ != NULL) subscriptionrequestmessage_->::SubscriptionRequestMessage::Clear(); - clear_has_subscriptionrequestmessage(); + if (subscriptionrequestmessage_ != nullptr) subscriptionrequestmessage_->Clear(); + _has_bits_[0] &= ~0x00080000u; } inline const ::SubscriptionRequestMessage& PokerTHMessage::subscriptionrequestmessage() const { + const ::SubscriptionRequestMessage* p = subscriptionrequestmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.subscriptionRequestMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return subscriptionrequestmessage_ != NULL ? *subscriptionrequestmessage_ : *default_instance().subscriptionrequestmessage_; -#else - return subscriptionrequestmessage_ != NULL ? *subscriptionrequestmessage_ : *default_instance_->subscriptionrequestmessage_; -#endif + 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; } inline ::SubscriptionRequestMessage* PokerTHMessage::mutable_subscriptionrequestmessage() { - set_has_subscriptionrequestmessage(); - if (subscriptionrequestmessage_ == NULL) subscriptionrequestmessage_ = new ::SubscriptionRequestMessage; + _has_bits_[0] |= 0x00080000u; + if (subscriptionrequestmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::SubscriptionRequestMessage>(GetArenaNoVirtual()); + subscriptionrequestmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.subscriptionRequestMessage) return subscriptionrequestmessage_; } -inline ::SubscriptionRequestMessage* PokerTHMessage::release_subscriptionrequestmessage() { - clear_has_subscriptionrequestmessage(); - ::SubscriptionRequestMessage* temp = subscriptionrequestmessage_; - subscriptionrequestmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_subscriptionrequestmessage(::SubscriptionRequestMessage* subscriptionrequestmessage) { - delete subscriptionrequestmessage_; - subscriptionrequestmessage_ = subscriptionrequestmessage; - if (subscriptionrequestmessage) { - set_has_subscriptionrequestmessage(); - } else { - clear_has_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) } // optional .JoinExistingGameMessage joinExistingGameMessage = 22; inline bool PokerTHMessage::has_joinexistinggamemessage() const { - return (_has_bits_[0] & 0x00200000u) != 0; -} -inline void PokerTHMessage::set_has_joinexistinggamemessage() { - _has_bits_[0] |= 0x00200000u; -} -inline void PokerTHMessage::clear_has_joinexistinggamemessage() { - _has_bits_[0] &= ~0x00200000u; + return (_has_bits_[0] & 0x00100000u) != 0; } inline void PokerTHMessage::clear_joinexistinggamemessage() { - if (joinexistinggamemessage_ != NULL) joinexistinggamemessage_->::JoinExistingGameMessage::Clear(); - clear_has_joinexistinggamemessage(); + if (joinexistinggamemessage_ != nullptr) joinexistinggamemessage_->Clear(); + _has_bits_[0] &= ~0x00100000u; } inline const ::JoinExistingGameMessage& PokerTHMessage::joinexistinggamemessage() const { + const ::JoinExistingGameMessage* p = joinexistinggamemessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.joinExistingGameMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return joinexistinggamemessage_ != NULL ? *joinexistinggamemessage_ : *default_instance().joinexistinggamemessage_; -#else - return joinexistinggamemessage_ != NULL ? *joinexistinggamemessage_ : *default_instance_->joinexistinggamemessage_; -#endif + 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; } inline ::JoinExistingGameMessage* PokerTHMessage::mutable_joinexistinggamemessage() { - set_has_joinexistinggamemessage(); - if (joinexistinggamemessage_ == NULL) joinexistinggamemessage_ = new ::JoinExistingGameMessage; + _has_bits_[0] |= 0x00100000u; + if (joinexistinggamemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::JoinExistingGameMessage>(GetArenaNoVirtual()); + joinexistinggamemessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.joinExistingGameMessage) return joinexistinggamemessage_; } -inline ::JoinExistingGameMessage* PokerTHMessage::release_joinexistinggamemessage() { - clear_has_joinexistinggamemessage(); - ::JoinExistingGameMessage* temp = joinexistinggamemessage_; - joinexistinggamemessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_joinexistinggamemessage(::JoinExistingGameMessage* joinexistinggamemessage) { - delete joinexistinggamemessage_; - joinexistinggamemessage_ = joinexistinggamemessage; - if (joinexistinggamemessage) { - set_has_joinexistinggamemessage(); - } else { - clear_has_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) } // optional .JoinNewGameMessage joinNewGameMessage = 23; inline bool PokerTHMessage::has_joinnewgamemessage() const { - return (_has_bits_[0] & 0x00400000u) != 0; -} -inline void PokerTHMessage::set_has_joinnewgamemessage() { - _has_bits_[0] |= 0x00400000u; -} -inline void PokerTHMessage::clear_has_joinnewgamemessage() { - _has_bits_[0] &= ~0x00400000u; + return (_has_bits_[0] & 0x00200000u) != 0; } inline void PokerTHMessage::clear_joinnewgamemessage() { - if (joinnewgamemessage_ != NULL) joinnewgamemessage_->::JoinNewGameMessage::Clear(); - clear_has_joinnewgamemessage(); + if (joinnewgamemessage_ != nullptr) joinnewgamemessage_->Clear(); + _has_bits_[0] &= ~0x00200000u; } inline const ::JoinNewGameMessage& PokerTHMessage::joinnewgamemessage() const { + const ::JoinNewGameMessage* p = joinnewgamemessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.joinNewGameMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return joinnewgamemessage_ != NULL ? *joinnewgamemessage_ : *default_instance().joinnewgamemessage_; -#else - return joinnewgamemessage_ != NULL ? *joinnewgamemessage_ : *default_instance_->joinnewgamemessage_; -#endif + 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; } inline ::JoinNewGameMessage* PokerTHMessage::mutable_joinnewgamemessage() { - set_has_joinnewgamemessage(); - if (joinnewgamemessage_ == NULL) joinnewgamemessage_ = new ::JoinNewGameMessage; + _has_bits_[0] |= 0x00200000u; + if (joinnewgamemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::JoinNewGameMessage>(GetArenaNoVirtual()); + joinnewgamemessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.joinNewGameMessage) return joinnewgamemessage_; } -inline ::JoinNewGameMessage* PokerTHMessage::release_joinnewgamemessage() { - clear_has_joinnewgamemessage(); - ::JoinNewGameMessage* temp = joinnewgamemessage_; - joinnewgamemessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_joinnewgamemessage(::JoinNewGameMessage* joinnewgamemessage) { - delete joinnewgamemessage_; - joinnewgamemessage_ = joinnewgamemessage; - if (joinnewgamemessage) { - set_has_joinnewgamemessage(); - } else { - clear_has_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) } // optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; inline bool PokerTHMessage::has_rejoinexistinggamemessage() const { - return (_has_bits_[0] & 0x00800000u) != 0; -} -inline void PokerTHMessage::set_has_rejoinexistinggamemessage() { - _has_bits_[0] |= 0x00800000u; -} -inline void PokerTHMessage::clear_has_rejoinexistinggamemessage() { - _has_bits_[0] &= ~0x00800000u; + return (_has_bits_[0] & 0x00400000u) != 0; } inline void PokerTHMessage::clear_rejoinexistinggamemessage() { - if (rejoinexistinggamemessage_ != NULL) rejoinexistinggamemessage_->::RejoinExistingGameMessage::Clear(); - clear_has_rejoinexistinggamemessage(); + if (rejoinexistinggamemessage_ != nullptr) rejoinexistinggamemessage_->Clear(); + _has_bits_[0] &= ~0x00400000u; } inline const ::RejoinExistingGameMessage& PokerTHMessage::rejoinexistinggamemessage() const { + const ::RejoinExistingGameMessage* p = rejoinexistinggamemessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.rejoinExistingGameMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return rejoinexistinggamemessage_ != NULL ? *rejoinexistinggamemessage_ : *default_instance().rejoinexistinggamemessage_; -#else - return rejoinexistinggamemessage_ != NULL ? *rejoinexistinggamemessage_ : *default_instance_->rejoinexistinggamemessage_; -#endif + 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; } inline ::RejoinExistingGameMessage* PokerTHMessage::mutable_rejoinexistinggamemessage() { - set_has_rejoinexistinggamemessage(); - if (rejoinexistinggamemessage_ == NULL) rejoinexistinggamemessage_ = new ::RejoinExistingGameMessage; + _has_bits_[0] |= 0x00400000u; + if (rejoinexistinggamemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::RejoinExistingGameMessage>(GetArenaNoVirtual()); + rejoinexistinggamemessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.rejoinExistingGameMessage) return rejoinexistinggamemessage_; } -inline ::RejoinExistingGameMessage* PokerTHMessage::release_rejoinexistinggamemessage() { - clear_has_rejoinexistinggamemessage(); - ::RejoinExistingGameMessage* temp = rejoinexistinggamemessage_; - rejoinexistinggamemessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_rejoinexistinggamemessage(::RejoinExistingGameMessage* rejoinexistinggamemessage) { - delete rejoinexistinggamemessage_; - rejoinexistinggamemessage_ = rejoinexistinggamemessage; - if (rejoinexistinggamemessage) { - set_has_rejoinexistinggamemessage(); - } else { - clear_has_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) } // optional .JoinGameAckMessage joinGameAckMessage = 25; inline bool PokerTHMessage::has_joingameackmessage() const { - return (_has_bits_[0] & 0x01000000u) != 0; -} -inline void PokerTHMessage::set_has_joingameackmessage() { - _has_bits_[0] |= 0x01000000u; -} -inline void PokerTHMessage::clear_has_joingameackmessage() { - _has_bits_[0] &= ~0x01000000u; + return (_has_bits_[0] & 0x00800000u) != 0; } inline void PokerTHMessage::clear_joingameackmessage() { - if (joingameackmessage_ != NULL) joingameackmessage_->::JoinGameAckMessage::Clear(); - clear_has_joingameackmessage(); + if (joingameackmessage_ != nullptr) joingameackmessage_->Clear(); + _has_bits_[0] &= ~0x00800000u; } inline const ::JoinGameAckMessage& PokerTHMessage::joingameackmessage() const { + const ::JoinGameAckMessage* p = joingameackmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.joinGameAckMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return joingameackmessage_ != NULL ? *joingameackmessage_ : *default_instance().joingameackmessage_; -#else - return joingameackmessage_ != NULL ? *joingameackmessage_ : *default_instance_->joingameackmessage_; -#endif + 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; } inline ::JoinGameAckMessage* PokerTHMessage::mutable_joingameackmessage() { - set_has_joingameackmessage(); - if (joingameackmessage_ == NULL) joingameackmessage_ = new ::JoinGameAckMessage; + _has_bits_[0] |= 0x00800000u; + if (joingameackmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::JoinGameAckMessage>(GetArenaNoVirtual()); + joingameackmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.joinGameAckMessage) return joingameackmessage_; } -inline ::JoinGameAckMessage* PokerTHMessage::release_joingameackmessage() { - clear_has_joingameackmessage(); - ::JoinGameAckMessage* temp = joingameackmessage_; - joingameackmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_joingameackmessage(::JoinGameAckMessage* joingameackmessage) { - delete joingameackmessage_; - joingameackmessage_ = joingameackmessage; - if (joingameackmessage) { - set_has_joingameackmessage(); - } else { - clear_has_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) } // optional .JoinGameFailedMessage joinGameFailedMessage = 26; inline bool PokerTHMessage::has_joingamefailedmessage() const { - return (_has_bits_[0] & 0x02000000u) != 0; -} -inline void PokerTHMessage::set_has_joingamefailedmessage() { - _has_bits_[0] |= 0x02000000u; -} -inline void PokerTHMessage::clear_has_joingamefailedmessage() { - _has_bits_[0] &= ~0x02000000u; + return (_has_bits_[0] & 0x01000000u) != 0; } inline void PokerTHMessage::clear_joingamefailedmessage() { - if (joingamefailedmessage_ != NULL) joingamefailedmessage_->::JoinGameFailedMessage::Clear(); - clear_has_joingamefailedmessage(); + if (joingamefailedmessage_ != nullptr) joingamefailedmessage_->Clear(); + _has_bits_[0] &= ~0x01000000u; } inline const ::JoinGameFailedMessage& PokerTHMessage::joingamefailedmessage() const { + const ::JoinGameFailedMessage* p = joingamefailedmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.joinGameFailedMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return joingamefailedmessage_ != NULL ? *joingamefailedmessage_ : *default_instance().joingamefailedmessage_; -#else - return joingamefailedmessage_ != NULL ? *joingamefailedmessage_ : *default_instance_->joingamefailedmessage_; -#endif + 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; } inline ::JoinGameFailedMessage* PokerTHMessage::mutable_joingamefailedmessage() { - set_has_joingamefailedmessage(); - if (joingamefailedmessage_ == NULL) joingamefailedmessage_ = new ::JoinGameFailedMessage; + _has_bits_[0] |= 0x01000000u; + if (joingamefailedmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::JoinGameFailedMessage>(GetArenaNoVirtual()); + joingamefailedmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.joinGameFailedMessage) return joingamefailedmessage_; } -inline ::JoinGameFailedMessage* PokerTHMessage::release_joingamefailedmessage() { - clear_has_joingamefailedmessage(); - ::JoinGameFailedMessage* temp = joingamefailedmessage_; - joingamefailedmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_joingamefailedmessage(::JoinGameFailedMessage* joingamefailedmessage) { - delete joingamefailedmessage_; - joingamefailedmessage_ = joingamefailedmessage; - if (joingamefailedmessage) { - set_has_joingamefailedmessage(); - } else { - clear_has_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) } // optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; inline bool PokerTHMessage::has_gameplayerjoinedmessage() const { - return (_has_bits_[0] & 0x04000000u) != 0; -} -inline void PokerTHMessage::set_has_gameplayerjoinedmessage() { - _has_bits_[0] |= 0x04000000u; -} -inline void PokerTHMessage::clear_has_gameplayerjoinedmessage() { - _has_bits_[0] &= ~0x04000000u; + return (_has_bits_[0] & 0x02000000u) != 0; } inline void PokerTHMessage::clear_gameplayerjoinedmessage() { - if (gameplayerjoinedmessage_ != NULL) gameplayerjoinedmessage_->::GamePlayerJoinedMessage::Clear(); - clear_has_gameplayerjoinedmessage(); + if (gameplayerjoinedmessage_ != nullptr) gameplayerjoinedmessage_->Clear(); + _has_bits_[0] &= ~0x02000000u; } inline const ::GamePlayerJoinedMessage& PokerTHMessage::gameplayerjoinedmessage() const { + const ::GamePlayerJoinedMessage* p = gameplayerjoinedmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.gamePlayerJoinedMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gameplayerjoinedmessage_ != NULL ? *gameplayerjoinedmessage_ : *default_instance().gameplayerjoinedmessage_; -#else - return gameplayerjoinedmessage_ != NULL ? *gameplayerjoinedmessage_ : *default_instance_->gameplayerjoinedmessage_; -#endif + 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; } inline ::GamePlayerJoinedMessage* PokerTHMessage::mutable_gameplayerjoinedmessage() { - set_has_gameplayerjoinedmessage(); - if (gameplayerjoinedmessage_ == NULL) gameplayerjoinedmessage_ = new ::GamePlayerJoinedMessage; + _has_bits_[0] |= 0x02000000u; + if (gameplayerjoinedmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GamePlayerJoinedMessage>(GetArenaNoVirtual()); + gameplayerjoinedmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.gamePlayerJoinedMessage) return gameplayerjoinedmessage_; } -inline ::GamePlayerJoinedMessage* PokerTHMessage::release_gameplayerjoinedmessage() { - clear_has_gameplayerjoinedmessage(); - ::GamePlayerJoinedMessage* temp = gameplayerjoinedmessage_; - gameplayerjoinedmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_gameplayerjoinedmessage(::GamePlayerJoinedMessage* gameplayerjoinedmessage) { - delete gameplayerjoinedmessage_; - gameplayerjoinedmessage_ = gameplayerjoinedmessage; - if (gameplayerjoinedmessage) { - set_has_gameplayerjoinedmessage(); - } else { - clear_has_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) } // optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; inline bool PokerTHMessage::has_gameplayerleftmessage() const { - return (_has_bits_[0] & 0x08000000u) != 0; -} -inline void PokerTHMessage::set_has_gameplayerleftmessage() { - _has_bits_[0] |= 0x08000000u; -} -inline void PokerTHMessage::clear_has_gameplayerleftmessage() { - _has_bits_[0] &= ~0x08000000u; + return (_has_bits_[0] & 0x04000000u) != 0; } inline void PokerTHMessage::clear_gameplayerleftmessage() { - if (gameplayerleftmessage_ != NULL) gameplayerleftmessage_->::GamePlayerLeftMessage::Clear(); - clear_has_gameplayerleftmessage(); + if (gameplayerleftmessage_ != nullptr) gameplayerleftmessage_->Clear(); + _has_bits_[0] &= ~0x04000000u; } inline const ::GamePlayerLeftMessage& PokerTHMessage::gameplayerleftmessage() const { + const ::GamePlayerLeftMessage* p = gameplayerleftmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.gamePlayerLeftMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gameplayerleftmessage_ != NULL ? *gameplayerleftmessage_ : *default_instance().gameplayerleftmessage_; -#else - return gameplayerleftmessage_ != NULL ? *gameplayerleftmessage_ : *default_instance_->gameplayerleftmessage_; -#endif + 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; } inline ::GamePlayerLeftMessage* PokerTHMessage::mutable_gameplayerleftmessage() { - set_has_gameplayerleftmessage(); - if (gameplayerleftmessage_ == NULL) gameplayerleftmessage_ = new ::GamePlayerLeftMessage; + _has_bits_[0] |= 0x04000000u; + if (gameplayerleftmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GamePlayerLeftMessage>(GetArenaNoVirtual()); + gameplayerleftmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.gamePlayerLeftMessage) return gameplayerleftmessage_; } -inline ::GamePlayerLeftMessage* PokerTHMessage::release_gameplayerleftmessage() { - clear_has_gameplayerleftmessage(); - ::GamePlayerLeftMessage* temp = gameplayerleftmessage_; - gameplayerleftmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_gameplayerleftmessage(::GamePlayerLeftMessage* gameplayerleftmessage) { - delete gameplayerleftmessage_; - gameplayerleftmessage_ = gameplayerleftmessage; - if (gameplayerleftmessage) { - set_has_gameplayerleftmessage(); - } else { - clear_has_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) } // optional .GameAdminChangedMessage gameAdminChangedMessage = 29; inline bool PokerTHMessage::has_gameadminchangedmessage() const { - return (_has_bits_[0] & 0x10000000u) != 0; -} -inline void PokerTHMessage::set_has_gameadminchangedmessage() { - _has_bits_[0] |= 0x10000000u; -} -inline void PokerTHMessage::clear_has_gameadminchangedmessage() { - _has_bits_[0] &= ~0x10000000u; + return (_has_bits_[0] & 0x08000000u) != 0; } inline void PokerTHMessage::clear_gameadminchangedmessage() { - if (gameadminchangedmessage_ != NULL) gameadminchangedmessage_->::GameAdminChangedMessage::Clear(); - clear_has_gameadminchangedmessage(); + if (gameadminchangedmessage_ != nullptr) gameadminchangedmessage_->Clear(); + _has_bits_[0] &= ~0x08000000u; } inline const ::GameAdminChangedMessage& PokerTHMessage::gameadminchangedmessage() const { + const ::GameAdminChangedMessage* p = gameadminchangedmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.gameAdminChangedMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gameadminchangedmessage_ != NULL ? *gameadminchangedmessage_ : *default_instance().gameadminchangedmessage_; -#else - return gameadminchangedmessage_ != NULL ? *gameadminchangedmessage_ : *default_instance_->gameadminchangedmessage_; -#endif + 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; } inline ::GameAdminChangedMessage* PokerTHMessage::mutable_gameadminchangedmessage() { - set_has_gameadminchangedmessage(); - if (gameadminchangedmessage_ == NULL) gameadminchangedmessage_ = new ::GameAdminChangedMessage; + _has_bits_[0] |= 0x08000000u; + if (gameadminchangedmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GameAdminChangedMessage>(GetArenaNoVirtual()); + gameadminchangedmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameAdminChangedMessage) return gameadminchangedmessage_; } -inline ::GameAdminChangedMessage* PokerTHMessage::release_gameadminchangedmessage() { - clear_has_gameadminchangedmessage(); - ::GameAdminChangedMessage* temp = gameadminchangedmessage_; - gameadminchangedmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_gameadminchangedmessage(::GameAdminChangedMessage* gameadminchangedmessage) { - delete gameadminchangedmessage_; - gameadminchangedmessage_ = gameadminchangedmessage; - if (gameadminchangedmessage) { - set_has_gameadminchangedmessage(); - } else { - clear_has_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) } // optional .RemovedFromGameMessage removedFromGameMessage = 30; inline bool PokerTHMessage::has_removedfromgamemessage() const { - return (_has_bits_[0] & 0x20000000u) != 0; -} -inline void PokerTHMessage::set_has_removedfromgamemessage() { - _has_bits_[0] |= 0x20000000u; -} -inline void PokerTHMessage::clear_has_removedfromgamemessage() { - _has_bits_[0] &= ~0x20000000u; + return (_has_bits_[0] & 0x10000000u) != 0; } inline void PokerTHMessage::clear_removedfromgamemessage() { - if (removedfromgamemessage_ != NULL) removedfromgamemessage_->::RemovedFromGameMessage::Clear(); - clear_has_removedfromgamemessage(); + if (removedfromgamemessage_ != nullptr) removedfromgamemessage_->Clear(); + _has_bits_[0] &= ~0x10000000u; } inline const ::RemovedFromGameMessage& PokerTHMessage::removedfromgamemessage() const { + const ::RemovedFromGameMessage* p = removedfromgamemessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.removedFromGameMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return removedfromgamemessage_ != NULL ? *removedfromgamemessage_ : *default_instance().removedfromgamemessage_; -#else - return removedfromgamemessage_ != NULL ? *removedfromgamemessage_ : *default_instance_->removedfromgamemessage_; -#endif + 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; } inline ::RemovedFromGameMessage* PokerTHMessage::mutable_removedfromgamemessage() { - set_has_removedfromgamemessage(); - if (removedfromgamemessage_ == NULL) removedfromgamemessage_ = new ::RemovedFromGameMessage; + _has_bits_[0] |= 0x10000000u; + if (removedfromgamemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::RemovedFromGameMessage>(GetArenaNoVirtual()); + removedfromgamemessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.removedFromGameMessage) return removedfromgamemessage_; } -inline ::RemovedFromGameMessage* PokerTHMessage::release_removedfromgamemessage() { - clear_has_removedfromgamemessage(); - ::RemovedFromGameMessage* temp = removedfromgamemessage_; - removedfromgamemessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_removedfromgamemessage(::RemovedFromGameMessage* removedfromgamemessage) { - delete removedfromgamemessage_; - removedfromgamemessage_ = removedfromgamemessage; - if (removedfromgamemessage) { - set_has_removedfromgamemessage(); - } else { - clear_has_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) } // optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; inline bool PokerTHMessage::has_kickplayerrequestmessage() const { - return (_has_bits_[0] & 0x40000000u) != 0; -} -inline void PokerTHMessage::set_has_kickplayerrequestmessage() { - _has_bits_[0] |= 0x40000000u; -} -inline void PokerTHMessage::clear_has_kickplayerrequestmessage() { - _has_bits_[0] &= ~0x40000000u; + return (_has_bits_[0] & 0x20000000u) != 0; } inline void PokerTHMessage::clear_kickplayerrequestmessage() { - if (kickplayerrequestmessage_ != NULL) kickplayerrequestmessage_->::KickPlayerRequestMessage::Clear(); - clear_has_kickplayerrequestmessage(); + if (kickplayerrequestmessage_ != nullptr) kickplayerrequestmessage_->Clear(); + _has_bits_[0] &= ~0x20000000u; } inline const ::KickPlayerRequestMessage& PokerTHMessage::kickplayerrequestmessage() const { + const ::KickPlayerRequestMessage* p = kickplayerrequestmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.kickPlayerRequestMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return kickplayerrequestmessage_ != NULL ? *kickplayerrequestmessage_ : *default_instance().kickplayerrequestmessage_; -#else - return kickplayerrequestmessage_ != NULL ? *kickplayerrequestmessage_ : *default_instance_->kickplayerrequestmessage_; -#endif + 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; } inline ::KickPlayerRequestMessage* PokerTHMessage::mutable_kickplayerrequestmessage() { - set_has_kickplayerrequestmessage(); - if (kickplayerrequestmessage_ == NULL) kickplayerrequestmessage_ = new ::KickPlayerRequestMessage; + _has_bits_[0] |= 0x20000000u; + if (kickplayerrequestmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::KickPlayerRequestMessage>(GetArenaNoVirtual()); + kickplayerrequestmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.kickPlayerRequestMessage) return kickplayerrequestmessage_; } -inline ::KickPlayerRequestMessage* PokerTHMessage::release_kickplayerrequestmessage() { - clear_has_kickplayerrequestmessage(); - ::KickPlayerRequestMessage* temp = kickplayerrequestmessage_; - kickplayerrequestmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_kickplayerrequestmessage(::KickPlayerRequestMessage* kickplayerrequestmessage) { - delete kickplayerrequestmessage_; - kickplayerrequestmessage_ = kickplayerrequestmessage; - if (kickplayerrequestmessage) { - set_has_kickplayerrequestmessage(); - } else { - clear_has_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) } // optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; inline bool PokerTHMessage::has_leavegamerequestmessage() const { - return (_has_bits_[0] & 0x80000000u) != 0; -} -inline void PokerTHMessage::set_has_leavegamerequestmessage() { - _has_bits_[0] |= 0x80000000u; -} -inline void PokerTHMessage::clear_has_leavegamerequestmessage() { - _has_bits_[0] &= ~0x80000000u; + return (_has_bits_[0] & 0x40000000u) != 0; } inline void PokerTHMessage::clear_leavegamerequestmessage() { - if (leavegamerequestmessage_ != NULL) leavegamerequestmessage_->::LeaveGameRequestMessage::Clear(); - clear_has_leavegamerequestmessage(); + if (leavegamerequestmessage_ != nullptr) leavegamerequestmessage_->Clear(); + _has_bits_[0] &= ~0x40000000u; } inline const ::LeaveGameRequestMessage& PokerTHMessage::leavegamerequestmessage() const { + const ::LeaveGameRequestMessage* p = leavegamerequestmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.leaveGameRequestMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return leavegamerequestmessage_ != NULL ? *leavegamerequestmessage_ : *default_instance().leavegamerequestmessage_; -#else - return leavegamerequestmessage_ != NULL ? *leavegamerequestmessage_ : *default_instance_->leavegamerequestmessage_; -#endif + 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; } inline ::LeaveGameRequestMessage* PokerTHMessage::mutable_leavegamerequestmessage() { - set_has_leavegamerequestmessage(); - if (leavegamerequestmessage_ == NULL) leavegamerequestmessage_ = new ::LeaveGameRequestMessage; + _has_bits_[0] |= 0x40000000u; + if (leavegamerequestmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::LeaveGameRequestMessage>(GetArenaNoVirtual()); + leavegamerequestmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.leaveGameRequestMessage) return leavegamerequestmessage_; } -inline ::LeaveGameRequestMessage* PokerTHMessage::release_leavegamerequestmessage() { - clear_has_leavegamerequestmessage(); - ::LeaveGameRequestMessage* temp = leavegamerequestmessage_; - leavegamerequestmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_leavegamerequestmessage(::LeaveGameRequestMessage* leavegamerequestmessage) { - delete leavegamerequestmessage_; - leavegamerequestmessage_ = leavegamerequestmessage; - if (leavegamerequestmessage) { - set_has_leavegamerequestmessage(); - } else { - clear_has_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) } // optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; inline bool PokerTHMessage::has_inviteplayertogamemessage() const { - return (_has_bits_[1] & 0x00000001u) != 0; -} -inline void PokerTHMessage::set_has_inviteplayertogamemessage() { - _has_bits_[1] |= 0x00000001u; -} -inline void PokerTHMessage::clear_has_inviteplayertogamemessage() { - _has_bits_[1] &= ~0x00000001u; + return (_has_bits_[0] & 0x80000000u) != 0; } inline void PokerTHMessage::clear_inviteplayertogamemessage() { - if (inviteplayertogamemessage_ != NULL) inviteplayertogamemessage_->::InvitePlayerToGameMessage::Clear(); - clear_has_inviteplayertogamemessage(); + if (inviteplayertogamemessage_ != nullptr) inviteplayertogamemessage_->Clear(); + _has_bits_[0] &= ~0x80000000u; } inline const ::InvitePlayerToGameMessage& PokerTHMessage::inviteplayertogamemessage() const { + const ::InvitePlayerToGameMessage* p = inviteplayertogamemessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.invitePlayerToGameMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return inviteplayertogamemessage_ != NULL ? *inviteplayertogamemessage_ : *default_instance().inviteplayertogamemessage_; -#else - return inviteplayertogamemessage_ != NULL ? *inviteplayertogamemessage_ : *default_instance_->inviteplayertogamemessage_; -#endif + 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; } inline ::InvitePlayerToGameMessage* PokerTHMessage::mutable_inviteplayertogamemessage() { - set_has_inviteplayertogamemessage(); - if (inviteplayertogamemessage_ == NULL) inviteplayertogamemessage_ = new ::InvitePlayerToGameMessage; + _has_bits_[0] |= 0x80000000u; + if (inviteplayertogamemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::InvitePlayerToGameMessage>(GetArenaNoVirtual()); + inviteplayertogamemessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.invitePlayerToGameMessage) return inviteplayertogamemessage_; } -inline ::InvitePlayerToGameMessage* PokerTHMessage::release_inviteplayertogamemessage() { - clear_has_inviteplayertogamemessage(); - ::InvitePlayerToGameMessage* temp = inviteplayertogamemessage_; - inviteplayertogamemessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_inviteplayertogamemessage(::InvitePlayerToGameMessage* inviteplayertogamemessage) { - delete inviteplayertogamemessage_; - inviteplayertogamemessage_ = inviteplayertogamemessage; - if (inviteplayertogamemessage) { - set_has_inviteplayertogamemessage(); - } else { - clear_has_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) } // optional .InviteNotifyMessage inviteNotifyMessage = 34; inline bool PokerTHMessage::has_invitenotifymessage() const { - return (_has_bits_[1] & 0x00000002u) != 0; -} -inline void PokerTHMessage::set_has_invitenotifymessage() { - _has_bits_[1] |= 0x00000002u; -} -inline void PokerTHMessage::clear_has_invitenotifymessage() { - _has_bits_[1] &= ~0x00000002u; + return (_has_bits_[1] & 0x00000001u) != 0; } inline void PokerTHMessage::clear_invitenotifymessage() { - if (invitenotifymessage_ != NULL) invitenotifymessage_->::InviteNotifyMessage::Clear(); - clear_has_invitenotifymessage(); + if (invitenotifymessage_ != nullptr) invitenotifymessage_->Clear(); + _has_bits_[1] &= ~0x00000001u; } inline const ::InviteNotifyMessage& PokerTHMessage::invitenotifymessage() const { + const ::InviteNotifyMessage* p = invitenotifymessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.inviteNotifyMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return invitenotifymessage_ != NULL ? *invitenotifymessage_ : *default_instance().invitenotifymessage_; -#else - return invitenotifymessage_ != NULL ? *invitenotifymessage_ : *default_instance_->invitenotifymessage_; -#endif + 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; } inline ::InviteNotifyMessage* PokerTHMessage::mutable_invitenotifymessage() { - set_has_invitenotifymessage(); - if (invitenotifymessage_ == NULL) invitenotifymessage_ = new ::InviteNotifyMessage; + _has_bits_[1] |= 0x00000001u; + if (invitenotifymessage_ == nullptr) { + auto* p = CreateMaybeMessage<::InviteNotifyMessage>(GetArenaNoVirtual()); + invitenotifymessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.inviteNotifyMessage) return invitenotifymessage_; } -inline ::InviteNotifyMessage* PokerTHMessage::release_invitenotifymessage() { - clear_has_invitenotifymessage(); - ::InviteNotifyMessage* temp = invitenotifymessage_; - invitenotifymessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_invitenotifymessage(::InviteNotifyMessage* invitenotifymessage) { - delete invitenotifymessage_; - invitenotifymessage_ = invitenotifymessage; - if (invitenotifymessage) { - set_has_invitenotifymessage(); - } else { - clear_has_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) } // optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; inline bool PokerTHMessage::has_rejectgameinvitationmessage() const { - return (_has_bits_[1] & 0x00000004u) != 0; -} -inline void PokerTHMessage::set_has_rejectgameinvitationmessage() { - _has_bits_[1] |= 0x00000004u; -} -inline void PokerTHMessage::clear_has_rejectgameinvitationmessage() { - _has_bits_[1] &= ~0x00000004u; + return (_has_bits_[1] & 0x00000002u) != 0; } inline void PokerTHMessage::clear_rejectgameinvitationmessage() { - if (rejectgameinvitationmessage_ != NULL) rejectgameinvitationmessage_->::RejectGameInvitationMessage::Clear(); - clear_has_rejectgameinvitationmessage(); + if (rejectgameinvitationmessage_ != nullptr) rejectgameinvitationmessage_->Clear(); + _has_bits_[1] &= ~0x00000002u; } inline const ::RejectGameInvitationMessage& PokerTHMessage::rejectgameinvitationmessage() const { + const ::RejectGameInvitationMessage* p = rejectgameinvitationmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.rejectGameInvitationMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return rejectgameinvitationmessage_ != NULL ? *rejectgameinvitationmessage_ : *default_instance().rejectgameinvitationmessage_; -#else - return rejectgameinvitationmessage_ != NULL ? *rejectgameinvitationmessage_ : *default_instance_->rejectgameinvitationmessage_; -#endif + 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; } inline ::RejectGameInvitationMessage* PokerTHMessage::mutable_rejectgameinvitationmessage() { - set_has_rejectgameinvitationmessage(); - if (rejectgameinvitationmessage_ == NULL) rejectgameinvitationmessage_ = new ::RejectGameInvitationMessage; + _has_bits_[1] |= 0x00000002u; + if (rejectgameinvitationmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::RejectGameInvitationMessage>(GetArenaNoVirtual()); + rejectgameinvitationmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.rejectGameInvitationMessage) return rejectgameinvitationmessage_; } -inline ::RejectGameInvitationMessage* PokerTHMessage::release_rejectgameinvitationmessage() { - clear_has_rejectgameinvitationmessage(); - ::RejectGameInvitationMessage* temp = rejectgameinvitationmessage_; - rejectgameinvitationmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_rejectgameinvitationmessage(::RejectGameInvitationMessage* rejectgameinvitationmessage) { - delete rejectgameinvitationmessage_; - rejectgameinvitationmessage_ = rejectgameinvitationmessage; - if (rejectgameinvitationmessage) { - set_has_rejectgameinvitationmessage(); - } else { - clear_has_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) } // optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; inline bool PokerTHMessage::has_rejectinvnotifymessage() const { - return (_has_bits_[1] & 0x00000008u) != 0; -} -inline void PokerTHMessage::set_has_rejectinvnotifymessage() { - _has_bits_[1] |= 0x00000008u; -} -inline void PokerTHMessage::clear_has_rejectinvnotifymessage() { - _has_bits_[1] &= ~0x00000008u; + return (_has_bits_[1] & 0x00000004u) != 0; } inline void PokerTHMessage::clear_rejectinvnotifymessage() { - if (rejectinvnotifymessage_ != NULL) rejectinvnotifymessage_->::RejectInvNotifyMessage::Clear(); - clear_has_rejectinvnotifymessage(); + if (rejectinvnotifymessage_ != nullptr) rejectinvnotifymessage_->Clear(); + _has_bits_[1] &= ~0x00000004u; } inline const ::RejectInvNotifyMessage& PokerTHMessage::rejectinvnotifymessage() const { + const ::RejectInvNotifyMessage* p = rejectinvnotifymessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.rejectInvNotifyMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return rejectinvnotifymessage_ != NULL ? *rejectinvnotifymessage_ : *default_instance().rejectinvnotifymessage_; -#else - return rejectinvnotifymessage_ != NULL ? *rejectinvnotifymessage_ : *default_instance_->rejectinvnotifymessage_; -#endif + 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; } inline ::RejectInvNotifyMessage* PokerTHMessage::mutable_rejectinvnotifymessage() { - set_has_rejectinvnotifymessage(); - if (rejectinvnotifymessage_ == NULL) rejectinvnotifymessage_ = new ::RejectInvNotifyMessage; + _has_bits_[1] |= 0x00000004u; + if (rejectinvnotifymessage_ == nullptr) { + auto* p = CreateMaybeMessage<::RejectInvNotifyMessage>(GetArenaNoVirtual()); + rejectinvnotifymessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.rejectInvNotifyMessage) return rejectinvnotifymessage_; } -inline ::RejectInvNotifyMessage* PokerTHMessage::release_rejectinvnotifymessage() { - clear_has_rejectinvnotifymessage(); - ::RejectInvNotifyMessage* temp = rejectinvnotifymessage_; - rejectinvnotifymessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_rejectinvnotifymessage(::RejectInvNotifyMessage* rejectinvnotifymessage) { - delete rejectinvnotifymessage_; - rejectinvnotifymessage_ = rejectinvnotifymessage; - if (rejectinvnotifymessage) { - set_has_rejectinvnotifymessage(); - } else { - clear_has_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) } // optional .StartEventMessage startEventMessage = 37; inline bool PokerTHMessage::has_starteventmessage() const { - return (_has_bits_[1] & 0x00000010u) != 0; -} -inline void PokerTHMessage::set_has_starteventmessage() { - _has_bits_[1] |= 0x00000010u; -} -inline void PokerTHMessage::clear_has_starteventmessage() { - _has_bits_[1] &= ~0x00000010u; + return (_has_bits_[1] & 0x00000008u) != 0; } inline void PokerTHMessage::clear_starteventmessage() { - if (starteventmessage_ != NULL) starteventmessage_->::StartEventMessage::Clear(); - clear_has_starteventmessage(); + if (starteventmessage_ != nullptr) starteventmessage_->Clear(); + _has_bits_[1] &= ~0x00000008u; } inline const ::StartEventMessage& PokerTHMessage::starteventmessage() const { + const ::StartEventMessage* p = starteventmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.startEventMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return starteventmessage_ != NULL ? *starteventmessage_ : *default_instance().starteventmessage_; -#else - return starteventmessage_ != NULL ? *starteventmessage_ : *default_instance_->starteventmessage_; -#endif + 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; } inline ::StartEventMessage* PokerTHMessage::mutable_starteventmessage() { - set_has_starteventmessage(); - if (starteventmessage_ == NULL) starteventmessage_ = new ::StartEventMessage; + _has_bits_[1] |= 0x00000008u; + if (starteventmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::StartEventMessage>(GetArenaNoVirtual()); + starteventmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.startEventMessage) return starteventmessage_; } -inline ::StartEventMessage* PokerTHMessage::release_starteventmessage() { - clear_has_starteventmessage(); - ::StartEventMessage* temp = starteventmessage_; - starteventmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_starteventmessage(::StartEventMessage* starteventmessage) { - delete starteventmessage_; - starteventmessage_ = starteventmessage; - if (starteventmessage) { - set_has_starteventmessage(); - } else { - clear_has_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) } // optional .StartEventAckMessage startEventAckMessage = 38; inline bool PokerTHMessage::has_starteventackmessage() const { - return (_has_bits_[1] & 0x00000020u) != 0; -} -inline void PokerTHMessage::set_has_starteventackmessage() { - _has_bits_[1] |= 0x00000020u; -} -inline void PokerTHMessage::clear_has_starteventackmessage() { - _has_bits_[1] &= ~0x00000020u; + return (_has_bits_[1] & 0x00000010u) != 0; } inline void PokerTHMessage::clear_starteventackmessage() { - if (starteventackmessage_ != NULL) starteventackmessage_->::StartEventAckMessage::Clear(); - clear_has_starteventackmessage(); + if (starteventackmessage_ != nullptr) starteventackmessage_->Clear(); + _has_bits_[1] &= ~0x00000010u; } inline const ::StartEventAckMessage& PokerTHMessage::starteventackmessage() const { + const ::StartEventAckMessage* p = starteventackmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.startEventAckMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return starteventackmessage_ != NULL ? *starteventackmessage_ : *default_instance().starteventackmessage_; -#else - return starteventackmessage_ != NULL ? *starteventackmessage_ : *default_instance_->starteventackmessage_; -#endif + 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; } inline ::StartEventAckMessage* PokerTHMessage::mutable_starteventackmessage() { - set_has_starteventackmessage(); - if (starteventackmessage_ == NULL) starteventackmessage_ = new ::StartEventAckMessage; + _has_bits_[1] |= 0x00000010u; + if (starteventackmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::StartEventAckMessage>(GetArenaNoVirtual()); + starteventackmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.startEventAckMessage) return starteventackmessage_; } -inline ::StartEventAckMessage* PokerTHMessage::release_starteventackmessage() { - clear_has_starteventackmessage(); - ::StartEventAckMessage* temp = starteventackmessage_; - starteventackmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_starteventackmessage(::StartEventAckMessage* starteventackmessage) { - delete starteventackmessage_; - starteventackmessage_ = starteventackmessage; - if (starteventackmessage) { - set_has_starteventackmessage(); - } else { - clear_has_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) } // optional .GameStartInitialMessage gameStartInitialMessage = 39; inline bool PokerTHMessage::has_gamestartinitialmessage() const { - return (_has_bits_[1] & 0x00000040u) != 0; -} -inline void PokerTHMessage::set_has_gamestartinitialmessage() { - _has_bits_[1] |= 0x00000040u; -} -inline void PokerTHMessage::clear_has_gamestartinitialmessage() { - _has_bits_[1] &= ~0x00000040u; + return (_has_bits_[1] & 0x00000020u) != 0; } inline void PokerTHMessage::clear_gamestartinitialmessage() { - if (gamestartinitialmessage_ != NULL) gamestartinitialmessage_->::GameStartInitialMessage::Clear(); - clear_has_gamestartinitialmessage(); + if (gamestartinitialmessage_ != nullptr) gamestartinitialmessage_->Clear(); + _has_bits_[1] &= ~0x00000020u; } inline const ::GameStartInitialMessage& PokerTHMessage::gamestartinitialmessage() const { + const ::GameStartInitialMessage* p = gamestartinitialmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.gameStartInitialMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gamestartinitialmessage_ != NULL ? *gamestartinitialmessage_ : *default_instance().gamestartinitialmessage_; -#else - return gamestartinitialmessage_ != NULL ? *gamestartinitialmessage_ : *default_instance_->gamestartinitialmessage_; -#endif + 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; } inline ::GameStartInitialMessage* PokerTHMessage::mutable_gamestartinitialmessage() { - set_has_gamestartinitialmessage(); - if (gamestartinitialmessage_ == NULL) gamestartinitialmessage_ = new ::GameStartInitialMessage; + _has_bits_[1] |= 0x00000020u; + if (gamestartinitialmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GameStartInitialMessage>(GetArenaNoVirtual()); + gamestartinitialmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameStartInitialMessage) return gamestartinitialmessage_; } -inline ::GameStartInitialMessage* PokerTHMessage::release_gamestartinitialmessage() { - clear_has_gamestartinitialmessage(); - ::GameStartInitialMessage* temp = gamestartinitialmessage_; - gamestartinitialmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_gamestartinitialmessage(::GameStartInitialMessage* gamestartinitialmessage) { - delete gamestartinitialmessage_; - gamestartinitialmessage_ = gamestartinitialmessage; - if (gamestartinitialmessage) { - set_has_gamestartinitialmessage(); - } else { - clear_has_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) } // optional .GameStartRejoinMessage gameStartRejoinMessage = 40; inline bool PokerTHMessage::has_gamestartrejoinmessage() const { - return (_has_bits_[1] & 0x00000080u) != 0; -} -inline void PokerTHMessage::set_has_gamestartrejoinmessage() { - _has_bits_[1] |= 0x00000080u; -} -inline void PokerTHMessage::clear_has_gamestartrejoinmessage() { - _has_bits_[1] &= ~0x00000080u; + return (_has_bits_[1] & 0x00000040u) != 0; } inline void PokerTHMessage::clear_gamestartrejoinmessage() { - if (gamestartrejoinmessage_ != NULL) gamestartrejoinmessage_->::GameStartRejoinMessage::Clear(); - clear_has_gamestartrejoinmessage(); + if (gamestartrejoinmessage_ != nullptr) gamestartrejoinmessage_->Clear(); + _has_bits_[1] &= ~0x00000040u; } inline const ::GameStartRejoinMessage& PokerTHMessage::gamestartrejoinmessage() const { + const ::GameStartRejoinMessage* p = gamestartrejoinmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.gameStartRejoinMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gamestartrejoinmessage_ != NULL ? *gamestartrejoinmessage_ : *default_instance().gamestartrejoinmessage_; -#else - return gamestartrejoinmessage_ != NULL ? *gamestartrejoinmessage_ : *default_instance_->gamestartrejoinmessage_; -#endif + 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; } inline ::GameStartRejoinMessage* PokerTHMessage::mutable_gamestartrejoinmessage() { - set_has_gamestartrejoinmessage(); - if (gamestartrejoinmessage_ == NULL) gamestartrejoinmessage_ = new ::GameStartRejoinMessage; + _has_bits_[1] |= 0x00000040u; + if (gamestartrejoinmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GameStartRejoinMessage>(GetArenaNoVirtual()); + gamestartrejoinmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameStartRejoinMessage) return gamestartrejoinmessage_; } -inline ::GameStartRejoinMessage* PokerTHMessage::release_gamestartrejoinmessage() { - clear_has_gamestartrejoinmessage(); - ::GameStartRejoinMessage* temp = gamestartrejoinmessage_; - gamestartrejoinmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_gamestartrejoinmessage(::GameStartRejoinMessage* gamestartrejoinmessage) { - delete gamestartrejoinmessage_; - gamestartrejoinmessage_ = gamestartrejoinmessage; - if (gamestartrejoinmessage) { - set_has_gamestartrejoinmessage(); - } else { - clear_has_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) } // optional .HandStartMessage handStartMessage = 41; inline bool PokerTHMessage::has_handstartmessage() const { - return (_has_bits_[1] & 0x00000100u) != 0; -} -inline void PokerTHMessage::set_has_handstartmessage() { - _has_bits_[1] |= 0x00000100u; -} -inline void PokerTHMessage::clear_has_handstartmessage() { - _has_bits_[1] &= ~0x00000100u; + return (_has_bits_[1] & 0x00000080u) != 0; } inline void PokerTHMessage::clear_handstartmessage() { - if (handstartmessage_ != NULL) handstartmessage_->::HandStartMessage::Clear(); - clear_has_handstartmessage(); + if (handstartmessage_ != nullptr) handstartmessage_->Clear(); + _has_bits_[1] &= ~0x00000080u; } inline const ::HandStartMessage& PokerTHMessage::handstartmessage() const { + const ::HandStartMessage* p = handstartmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.handStartMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return handstartmessage_ != NULL ? *handstartmessage_ : *default_instance().handstartmessage_; -#else - return handstartmessage_ != NULL ? *handstartmessage_ : *default_instance_->handstartmessage_; -#endif + 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; } inline ::HandStartMessage* PokerTHMessage::mutable_handstartmessage() { - set_has_handstartmessage(); - if (handstartmessage_ == NULL) handstartmessage_ = new ::HandStartMessage; + _has_bits_[1] |= 0x00000080u; + if (handstartmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::HandStartMessage>(GetArenaNoVirtual()); + handstartmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.handStartMessage) return handstartmessage_; } -inline ::HandStartMessage* PokerTHMessage::release_handstartmessage() { - clear_has_handstartmessage(); - ::HandStartMessage* temp = handstartmessage_; - handstartmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_handstartmessage(::HandStartMessage* handstartmessage) { - delete handstartmessage_; - handstartmessage_ = handstartmessage; - if (handstartmessage) { - set_has_handstartmessage(); - } else { - clear_has_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) } // optional .PlayersTurnMessage playersTurnMessage = 42; inline bool PokerTHMessage::has_playersturnmessage() const { - return (_has_bits_[1] & 0x00000200u) != 0; -} -inline void PokerTHMessage::set_has_playersturnmessage() { - _has_bits_[1] |= 0x00000200u; -} -inline void PokerTHMessage::clear_has_playersturnmessage() { - _has_bits_[1] &= ~0x00000200u; + return (_has_bits_[1] & 0x00000100u) != 0; } inline void PokerTHMessage::clear_playersturnmessage() { - if (playersturnmessage_ != NULL) playersturnmessage_->::PlayersTurnMessage::Clear(); - clear_has_playersturnmessage(); + if (playersturnmessage_ != nullptr) playersturnmessage_->Clear(); + _has_bits_[1] &= ~0x00000100u; } inline const ::PlayersTurnMessage& PokerTHMessage::playersturnmessage() const { + const ::PlayersTurnMessage* p = playersturnmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.playersTurnMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return playersturnmessage_ != NULL ? *playersturnmessage_ : *default_instance().playersturnmessage_; -#else - return playersturnmessage_ != NULL ? *playersturnmessage_ : *default_instance_->playersturnmessage_; -#endif + 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; } inline ::PlayersTurnMessage* PokerTHMessage::mutable_playersturnmessage() { - set_has_playersturnmessage(); - if (playersturnmessage_ == NULL) playersturnmessage_ = new ::PlayersTurnMessage; + _has_bits_[1] |= 0x00000100u; + if (playersturnmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::PlayersTurnMessage>(GetArenaNoVirtual()); + playersturnmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.playersTurnMessage) return playersturnmessage_; } -inline ::PlayersTurnMessage* PokerTHMessage::release_playersturnmessage() { - clear_has_playersturnmessage(); - ::PlayersTurnMessage* temp = playersturnmessage_; - playersturnmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_playersturnmessage(::PlayersTurnMessage* playersturnmessage) { - delete playersturnmessage_; - playersturnmessage_ = playersturnmessage; - if (playersturnmessage) { - set_has_playersturnmessage(); - } else { - clear_has_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) } // optional .MyActionRequestMessage myActionRequestMessage = 43; inline bool PokerTHMessage::has_myactionrequestmessage() const { - return (_has_bits_[1] & 0x00000400u) != 0; -} -inline void PokerTHMessage::set_has_myactionrequestmessage() { - _has_bits_[1] |= 0x00000400u; -} -inline void PokerTHMessage::clear_has_myactionrequestmessage() { - _has_bits_[1] &= ~0x00000400u; + return (_has_bits_[1] & 0x00000200u) != 0; } inline void PokerTHMessage::clear_myactionrequestmessage() { - if (myactionrequestmessage_ != NULL) myactionrequestmessage_->::MyActionRequestMessage::Clear(); - clear_has_myactionrequestmessage(); + if (myactionrequestmessage_ != nullptr) myactionrequestmessage_->Clear(); + _has_bits_[1] &= ~0x00000200u; } inline const ::MyActionRequestMessage& PokerTHMessage::myactionrequestmessage() const { + const ::MyActionRequestMessage* p = myactionrequestmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.myActionRequestMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return myactionrequestmessage_ != NULL ? *myactionrequestmessage_ : *default_instance().myactionrequestmessage_; -#else - return myactionrequestmessage_ != NULL ? *myactionrequestmessage_ : *default_instance_->myactionrequestmessage_; -#endif + 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; } inline ::MyActionRequestMessage* PokerTHMessage::mutable_myactionrequestmessage() { - set_has_myactionrequestmessage(); - if (myactionrequestmessage_ == NULL) myactionrequestmessage_ = new ::MyActionRequestMessage; + _has_bits_[1] |= 0x00000200u; + if (myactionrequestmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::MyActionRequestMessage>(GetArenaNoVirtual()); + myactionrequestmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.myActionRequestMessage) return myactionrequestmessage_; } -inline ::MyActionRequestMessage* PokerTHMessage::release_myactionrequestmessage() { - clear_has_myactionrequestmessage(); - ::MyActionRequestMessage* temp = myactionrequestmessage_; - myactionrequestmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_myactionrequestmessage(::MyActionRequestMessage* myactionrequestmessage) { - delete myactionrequestmessage_; - myactionrequestmessage_ = myactionrequestmessage; - if (myactionrequestmessage) { - set_has_myactionrequestmessage(); - } else { - clear_has_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) } // optional .YourActionRejectedMessage yourActionRejectedMessage = 44; inline bool PokerTHMessage::has_youractionrejectedmessage() const { - return (_has_bits_[1] & 0x00000800u) != 0; -} -inline void PokerTHMessage::set_has_youractionrejectedmessage() { - _has_bits_[1] |= 0x00000800u; -} -inline void PokerTHMessage::clear_has_youractionrejectedmessage() { - _has_bits_[1] &= ~0x00000800u; + return (_has_bits_[1] & 0x00000400u) != 0; } inline void PokerTHMessage::clear_youractionrejectedmessage() { - if (youractionrejectedmessage_ != NULL) youractionrejectedmessage_->::YourActionRejectedMessage::Clear(); - clear_has_youractionrejectedmessage(); + if (youractionrejectedmessage_ != nullptr) youractionrejectedmessage_->Clear(); + _has_bits_[1] &= ~0x00000400u; } inline const ::YourActionRejectedMessage& PokerTHMessage::youractionrejectedmessage() const { + const ::YourActionRejectedMessage* p = youractionrejectedmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.yourActionRejectedMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return youractionrejectedmessage_ != NULL ? *youractionrejectedmessage_ : *default_instance().youractionrejectedmessage_; -#else - return youractionrejectedmessage_ != NULL ? *youractionrejectedmessage_ : *default_instance_->youractionrejectedmessage_; -#endif + 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; } inline ::YourActionRejectedMessage* PokerTHMessage::mutable_youractionrejectedmessage() { - set_has_youractionrejectedmessage(); - if (youractionrejectedmessage_ == NULL) youractionrejectedmessage_ = new ::YourActionRejectedMessage; + _has_bits_[1] |= 0x00000400u; + if (youractionrejectedmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::YourActionRejectedMessage>(GetArenaNoVirtual()); + youractionrejectedmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.yourActionRejectedMessage) return youractionrejectedmessage_; } -inline ::YourActionRejectedMessage* PokerTHMessage::release_youractionrejectedmessage() { - clear_has_youractionrejectedmessage(); - ::YourActionRejectedMessage* temp = youractionrejectedmessage_; - youractionrejectedmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_youractionrejectedmessage(::YourActionRejectedMessage* youractionrejectedmessage) { - delete youractionrejectedmessage_; - youractionrejectedmessage_ = youractionrejectedmessage; - if (youractionrejectedmessage) { - set_has_youractionrejectedmessage(); - } else { - clear_has_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) } // optional .PlayersActionDoneMessage playersActionDoneMessage = 45; inline bool PokerTHMessage::has_playersactiondonemessage() const { - return (_has_bits_[1] & 0x00001000u) != 0; -} -inline void PokerTHMessage::set_has_playersactiondonemessage() { - _has_bits_[1] |= 0x00001000u; -} -inline void PokerTHMessage::clear_has_playersactiondonemessage() { - _has_bits_[1] &= ~0x00001000u; + return (_has_bits_[1] & 0x00000800u) != 0; } inline void PokerTHMessage::clear_playersactiondonemessage() { - if (playersactiondonemessage_ != NULL) playersactiondonemessage_->::PlayersActionDoneMessage::Clear(); - clear_has_playersactiondonemessage(); + if (playersactiondonemessage_ != nullptr) playersactiondonemessage_->Clear(); + _has_bits_[1] &= ~0x00000800u; } inline const ::PlayersActionDoneMessage& PokerTHMessage::playersactiondonemessage() const { + const ::PlayersActionDoneMessage* p = playersactiondonemessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.playersActionDoneMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return playersactiondonemessage_ != NULL ? *playersactiondonemessage_ : *default_instance().playersactiondonemessage_; -#else - return playersactiondonemessage_ != NULL ? *playersactiondonemessage_ : *default_instance_->playersactiondonemessage_; -#endif + 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; } inline ::PlayersActionDoneMessage* PokerTHMessage::mutable_playersactiondonemessage() { - set_has_playersactiondonemessage(); - if (playersactiondonemessage_ == NULL) playersactiondonemessage_ = new ::PlayersActionDoneMessage; + _has_bits_[1] |= 0x00000800u; + if (playersactiondonemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::PlayersActionDoneMessage>(GetArenaNoVirtual()); + playersactiondonemessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.playersActionDoneMessage) return playersactiondonemessage_; } -inline ::PlayersActionDoneMessage* PokerTHMessage::release_playersactiondonemessage() { - clear_has_playersactiondonemessage(); - ::PlayersActionDoneMessage* temp = playersactiondonemessage_; - playersactiondonemessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_playersactiondonemessage(::PlayersActionDoneMessage* playersactiondonemessage) { - delete playersactiondonemessage_; - playersactiondonemessage_ = playersactiondonemessage; - if (playersactiondonemessage) { - set_has_playersactiondonemessage(); - } else { - clear_has_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) } // optional .DealFlopCardsMessage dealFlopCardsMessage = 46; inline bool PokerTHMessage::has_dealflopcardsmessage() const { - return (_has_bits_[1] & 0x00002000u) != 0; -} -inline void PokerTHMessage::set_has_dealflopcardsmessage() { - _has_bits_[1] |= 0x00002000u; -} -inline void PokerTHMessage::clear_has_dealflopcardsmessage() { - _has_bits_[1] &= ~0x00002000u; + return (_has_bits_[1] & 0x00001000u) != 0; } inline void PokerTHMessage::clear_dealflopcardsmessage() { - if (dealflopcardsmessage_ != NULL) dealflopcardsmessage_->::DealFlopCardsMessage::Clear(); - clear_has_dealflopcardsmessage(); + if (dealflopcardsmessage_ != nullptr) dealflopcardsmessage_->Clear(); + _has_bits_[1] &= ~0x00001000u; } inline const ::DealFlopCardsMessage& PokerTHMessage::dealflopcardsmessage() const { + const ::DealFlopCardsMessage* p = dealflopcardsmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.dealFlopCardsMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return dealflopcardsmessage_ != NULL ? *dealflopcardsmessage_ : *default_instance().dealflopcardsmessage_; -#else - return dealflopcardsmessage_ != NULL ? *dealflopcardsmessage_ : *default_instance_->dealflopcardsmessage_; -#endif + 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; } inline ::DealFlopCardsMessage* PokerTHMessage::mutable_dealflopcardsmessage() { - set_has_dealflopcardsmessage(); - if (dealflopcardsmessage_ == NULL) dealflopcardsmessage_ = new ::DealFlopCardsMessage; + _has_bits_[1] |= 0x00001000u; + if (dealflopcardsmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::DealFlopCardsMessage>(GetArenaNoVirtual()); + dealflopcardsmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.dealFlopCardsMessage) return dealflopcardsmessage_; } -inline ::DealFlopCardsMessage* PokerTHMessage::release_dealflopcardsmessage() { - clear_has_dealflopcardsmessage(); - ::DealFlopCardsMessage* temp = dealflopcardsmessage_; - dealflopcardsmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_dealflopcardsmessage(::DealFlopCardsMessage* dealflopcardsmessage) { - delete dealflopcardsmessage_; - dealflopcardsmessage_ = dealflopcardsmessage; - if (dealflopcardsmessage) { - set_has_dealflopcardsmessage(); - } else { - clear_has_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) } // optional .DealTurnCardMessage dealTurnCardMessage = 47; inline bool PokerTHMessage::has_dealturncardmessage() const { - return (_has_bits_[1] & 0x00004000u) != 0; -} -inline void PokerTHMessage::set_has_dealturncardmessage() { - _has_bits_[1] |= 0x00004000u; -} -inline void PokerTHMessage::clear_has_dealturncardmessage() { - _has_bits_[1] &= ~0x00004000u; + return (_has_bits_[1] & 0x00002000u) != 0; } inline void PokerTHMessage::clear_dealturncardmessage() { - if (dealturncardmessage_ != NULL) dealturncardmessage_->::DealTurnCardMessage::Clear(); - clear_has_dealturncardmessage(); + if (dealturncardmessage_ != nullptr) dealturncardmessage_->Clear(); + _has_bits_[1] &= ~0x00002000u; } inline const ::DealTurnCardMessage& PokerTHMessage::dealturncardmessage() const { + const ::DealTurnCardMessage* p = dealturncardmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.dealTurnCardMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return dealturncardmessage_ != NULL ? *dealturncardmessage_ : *default_instance().dealturncardmessage_; -#else - return dealturncardmessage_ != NULL ? *dealturncardmessage_ : *default_instance_->dealturncardmessage_; -#endif + 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; } inline ::DealTurnCardMessage* PokerTHMessage::mutable_dealturncardmessage() { - set_has_dealturncardmessage(); - if (dealturncardmessage_ == NULL) dealturncardmessage_ = new ::DealTurnCardMessage; + _has_bits_[1] |= 0x00002000u; + if (dealturncardmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::DealTurnCardMessage>(GetArenaNoVirtual()); + dealturncardmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.dealTurnCardMessage) return dealturncardmessage_; } -inline ::DealTurnCardMessage* PokerTHMessage::release_dealturncardmessage() { - clear_has_dealturncardmessage(); - ::DealTurnCardMessage* temp = dealturncardmessage_; - dealturncardmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_dealturncardmessage(::DealTurnCardMessage* dealturncardmessage) { - delete dealturncardmessage_; - dealturncardmessage_ = dealturncardmessage; - if (dealturncardmessage) { - set_has_dealturncardmessage(); - } else { - clear_has_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) } // optional .DealRiverCardMessage dealRiverCardMessage = 48; inline bool PokerTHMessage::has_dealrivercardmessage() const { - return (_has_bits_[1] & 0x00008000u) != 0; -} -inline void PokerTHMessage::set_has_dealrivercardmessage() { - _has_bits_[1] |= 0x00008000u; -} -inline void PokerTHMessage::clear_has_dealrivercardmessage() { - _has_bits_[1] &= ~0x00008000u; + return (_has_bits_[1] & 0x00004000u) != 0; } inline void PokerTHMessage::clear_dealrivercardmessage() { - if (dealrivercardmessage_ != NULL) dealrivercardmessage_->::DealRiverCardMessage::Clear(); - clear_has_dealrivercardmessage(); + if (dealrivercardmessage_ != nullptr) dealrivercardmessage_->Clear(); + _has_bits_[1] &= ~0x00004000u; } inline const ::DealRiverCardMessage& PokerTHMessage::dealrivercardmessage() const { + const ::DealRiverCardMessage* p = dealrivercardmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.dealRiverCardMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return dealrivercardmessage_ != NULL ? *dealrivercardmessage_ : *default_instance().dealrivercardmessage_; -#else - return dealrivercardmessage_ != NULL ? *dealrivercardmessage_ : *default_instance_->dealrivercardmessage_; -#endif + 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; } inline ::DealRiverCardMessage* PokerTHMessage::mutable_dealrivercardmessage() { - set_has_dealrivercardmessage(); - if (dealrivercardmessage_ == NULL) dealrivercardmessage_ = new ::DealRiverCardMessage; + _has_bits_[1] |= 0x00004000u; + if (dealrivercardmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::DealRiverCardMessage>(GetArenaNoVirtual()); + dealrivercardmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.dealRiverCardMessage) return dealrivercardmessage_; } -inline ::DealRiverCardMessage* PokerTHMessage::release_dealrivercardmessage() { - clear_has_dealrivercardmessage(); - ::DealRiverCardMessage* temp = dealrivercardmessage_; - dealrivercardmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_dealrivercardmessage(::DealRiverCardMessage* dealrivercardmessage) { - delete dealrivercardmessage_; - dealrivercardmessage_ = dealrivercardmessage; - if (dealrivercardmessage) { - set_has_dealrivercardmessage(); - } else { - clear_has_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) } // optional .AllInShowCardsMessage allInShowCardsMessage = 49; inline bool PokerTHMessage::has_allinshowcardsmessage() const { - return (_has_bits_[1] & 0x00010000u) != 0; -} -inline void PokerTHMessage::set_has_allinshowcardsmessage() { - _has_bits_[1] |= 0x00010000u; -} -inline void PokerTHMessage::clear_has_allinshowcardsmessage() { - _has_bits_[1] &= ~0x00010000u; + return (_has_bits_[1] & 0x00008000u) != 0; } inline void PokerTHMessage::clear_allinshowcardsmessage() { - if (allinshowcardsmessage_ != NULL) allinshowcardsmessage_->::AllInShowCardsMessage::Clear(); - clear_has_allinshowcardsmessage(); + if (allinshowcardsmessage_ != nullptr) allinshowcardsmessage_->Clear(); + _has_bits_[1] &= ~0x00008000u; } inline const ::AllInShowCardsMessage& PokerTHMessage::allinshowcardsmessage() const { + const ::AllInShowCardsMessage* p = allinshowcardsmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.allInShowCardsMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return allinshowcardsmessage_ != NULL ? *allinshowcardsmessage_ : *default_instance().allinshowcardsmessage_; -#else - return allinshowcardsmessage_ != NULL ? *allinshowcardsmessage_ : *default_instance_->allinshowcardsmessage_; -#endif + 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; } inline ::AllInShowCardsMessage* PokerTHMessage::mutable_allinshowcardsmessage() { - set_has_allinshowcardsmessage(); - if (allinshowcardsmessage_ == NULL) allinshowcardsmessage_ = new ::AllInShowCardsMessage; + _has_bits_[1] |= 0x00008000u; + if (allinshowcardsmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AllInShowCardsMessage>(GetArenaNoVirtual()); + allinshowcardsmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.allInShowCardsMessage) return allinshowcardsmessage_; } -inline ::AllInShowCardsMessage* PokerTHMessage::release_allinshowcardsmessage() { - clear_has_allinshowcardsmessage(); - ::AllInShowCardsMessage* temp = allinshowcardsmessage_; - allinshowcardsmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_allinshowcardsmessage(::AllInShowCardsMessage* allinshowcardsmessage) { - delete allinshowcardsmessage_; - allinshowcardsmessage_ = allinshowcardsmessage; - if (allinshowcardsmessage) { - set_has_allinshowcardsmessage(); - } else { - clear_has_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) } // optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; inline bool PokerTHMessage::has_endofhandshowcardsmessage() const { - return (_has_bits_[1] & 0x00020000u) != 0; -} -inline void PokerTHMessage::set_has_endofhandshowcardsmessage() { - _has_bits_[1] |= 0x00020000u; -} -inline void PokerTHMessage::clear_has_endofhandshowcardsmessage() { - _has_bits_[1] &= ~0x00020000u; + return (_has_bits_[1] & 0x00010000u) != 0; } inline void PokerTHMessage::clear_endofhandshowcardsmessage() { - if (endofhandshowcardsmessage_ != NULL) endofhandshowcardsmessage_->::EndOfHandShowCardsMessage::Clear(); - clear_has_endofhandshowcardsmessage(); + if (endofhandshowcardsmessage_ != nullptr) endofhandshowcardsmessage_->Clear(); + _has_bits_[1] &= ~0x00010000u; } inline const ::EndOfHandShowCardsMessage& PokerTHMessage::endofhandshowcardsmessage() const { + const ::EndOfHandShowCardsMessage* p = endofhandshowcardsmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.endOfHandShowCardsMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return endofhandshowcardsmessage_ != NULL ? *endofhandshowcardsmessage_ : *default_instance().endofhandshowcardsmessage_; -#else - return endofhandshowcardsmessage_ != NULL ? *endofhandshowcardsmessage_ : *default_instance_->endofhandshowcardsmessage_; -#endif + 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; } inline ::EndOfHandShowCardsMessage* PokerTHMessage::mutable_endofhandshowcardsmessage() { - set_has_endofhandshowcardsmessage(); - if (endofhandshowcardsmessage_ == NULL) endofhandshowcardsmessage_ = new ::EndOfHandShowCardsMessage; + _has_bits_[1] |= 0x00010000u; + if (endofhandshowcardsmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::EndOfHandShowCardsMessage>(GetArenaNoVirtual()); + endofhandshowcardsmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.endOfHandShowCardsMessage) return endofhandshowcardsmessage_; } -inline ::EndOfHandShowCardsMessage* PokerTHMessage::release_endofhandshowcardsmessage() { - clear_has_endofhandshowcardsmessage(); - ::EndOfHandShowCardsMessage* temp = endofhandshowcardsmessage_; - endofhandshowcardsmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_endofhandshowcardsmessage(::EndOfHandShowCardsMessage* endofhandshowcardsmessage) { - delete endofhandshowcardsmessage_; - endofhandshowcardsmessage_ = endofhandshowcardsmessage; - if (endofhandshowcardsmessage) { - set_has_endofhandshowcardsmessage(); - } else { - clear_has_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) } // optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; inline bool PokerTHMessage::has_endofhandhidecardsmessage() const { - return (_has_bits_[1] & 0x00040000u) != 0; -} -inline void PokerTHMessage::set_has_endofhandhidecardsmessage() { - _has_bits_[1] |= 0x00040000u; -} -inline void PokerTHMessage::clear_has_endofhandhidecardsmessage() { - _has_bits_[1] &= ~0x00040000u; + return (_has_bits_[1] & 0x00020000u) != 0; } inline void PokerTHMessage::clear_endofhandhidecardsmessage() { - if (endofhandhidecardsmessage_ != NULL) endofhandhidecardsmessage_->::EndOfHandHideCardsMessage::Clear(); - clear_has_endofhandhidecardsmessage(); + if (endofhandhidecardsmessage_ != nullptr) endofhandhidecardsmessage_->Clear(); + _has_bits_[1] &= ~0x00020000u; } inline const ::EndOfHandHideCardsMessage& PokerTHMessage::endofhandhidecardsmessage() const { + const ::EndOfHandHideCardsMessage* p = endofhandhidecardsmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.endOfHandHideCardsMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return endofhandhidecardsmessage_ != NULL ? *endofhandhidecardsmessage_ : *default_instance().endofhandhidecardsmessage_; -#else - return endofhandhidecardsmessage_ != NULL ? *endofhandhidecardsmessage_ : *default_instance_->endofhandhidecardsmessage_; -#endif + 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; } inline ::EndOfHandHideCardsMessage* PokerTHMessage::mutable_endofhandhidecardsmessage() { - set_has_endofhandhidecardsmessage(); - if (endofhandhidecardsmessage_ == NULL) endofhandhidecardsmessage_ = new ::EndOfHandHideCardsMessage; + _has_bits_[1] |= 0x00020000u; + if (endofhandhidecardsmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::EndOfHandHideCardsMessage>(GetArenaNoVirtual()); + endofhandhidecardsmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.endOfHandHideCardsMessage) return endofhandhidecardsmessage_; } -inline ::EndOfHandHideCardsMessage* PokerTHMessage::release_endofhandhidecardsmessage() { - clear_has_endofhandhidecardsmessage(); - ::EndOfHandHideCardsMessage* temp = endofhandhidecardsmessage_; - endofhandhidecardsmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_endofhandhidecardsmessage(::EndOfHandHideCardsMessage* endofhandhidecardsmessage) { - delete endofhandhidecardsmessage_; - endofhandhidecardsmessage_ = endofhandhidecardsmessage; - if (endofhandhidecardsmessage) { - set_has_endofhandhidecardsmessage(); - } else { - clear_has_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) } // optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; inline bool PokerTHMessage::has_showmycardsrequestmessage() const { - return (_has_bits_[1] & 0x00080000u) != 0; -} -inline void PokerTHMessage::set_has_showmycardsrequestmessage() { - _has_bits_[1] |= 0x00080000u; -} -inline void PokerTHMessage::clear_has_showmycardsrequestmessage() { - _has_bits_[1] &= ~0x00080000u; + return (_has_bits_[1] & 0x00040000u) != 0; } inline void PokerTHMessage::clear_showmycardsrequestmessage() { - if (showmycardsrequestmessage_ != NULL) showmycardsrequestmessage_->::ShowMyCardsRequestMessage::Clear(); - clear_has_showmycardsrequestmessage(); + if (showmycardsrequestmessage_ != nullptr) showmycardsrequestmessage_->Clear(); + _has_bits_[1] &= ~0x00040000u; } inline const ::ShowMyCardsRequestMessage& PokerTHMessage::showmycardsrequestmessage() const { + const ::ShowMyCardsRequestMessage* p = showmycardsrequestmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.showMyCardsRequestMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return showmycardsrequestmessage_ != NULL ? *showmycardsrequestmessage_ : *default_instance().showmycardsrequestmessage_; -#else - return showmycardsrequestmessage_ != NULL ? *showmycardsrequestmessage_ : *default_instance_->showmycardsrequestmessage_; -#endif + 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; } inline ::ShowMyCardsRequestMessage* PokerTHMessage::mutable_showmycardsrequestmessage() { - set_has_showmycardsrequestmessage(); - if (showmycardsrequestmessage_ == NULL) showmycardsrequestmessage_ = new ::ShowMyCardsRequestMessage; + _has_bits_[1] |= 0x00040000u; + if (showmycardsrequestmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::ShowMyCardsRequestMessage>(GetArenaNoVirtual()); + showmycardsrequestmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.showMyCardsRequestMessage) return showmycardsrequestmessage_; } -inline ::ShowMyCardsRequestMessage* PokerTHMessage::release_showmycardsrequestmessage() { - clear_has_showmycardsrequestmessage(); - ::ShowMyCardsRequestMessage* temp = showmycardsrequestmessage_; - showmycardsrequestmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_showmycardsrequestmessage(::ShowMyCardsRequestMessage* showmycardsrequestmessage) { - delete showmycardsrequestmessage_; - showmycardsrequestmessage_ = showmycardsrequestmessage; - if (showmycardsrequestmessage) { - set_has_showmycardsrequestmessage(); - } else { - clear_has_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) } // optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; inline bool PokerTHMessage::has_afterhandshowcardsmessage() const { - return (_has_bits_[1] & 0x00100000u) != 0; -} -inline void PokerTHMessage::set_has_afterhandshowcardsmessage() { - _has_bits_[1] |= 0x00100000u; -} -inline void PokerTHMessage::clear_has_afterhandshowcardsmessage() { - _has_bits_[1] &= ~0x00100000u; + return (_has_bits_[1] & 0x00080000u) != 0; } inline void PokerTHMessage::clear_afterhandshowcardsmessage() { - if (afterhandshowcardsmessage_ != NULL) afterhandshowcardsmessage_->::AfterHandShowCardsMessage::Clear(); - clear_has_afterhandshowcardsmessage(); + if (afterhandshowcardsmessage_ != nullptr) afterhandshowcardsmessage_->Clear(); + _has_bits_[1] &= ~0x00080000u; } inline const ::AfterHandShowCardsMessage& PokerTHMessage::afterhandshowcardsmessage() const { + const ::AfterHandShowCardsMessage* p = afterhandshowcardsmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.afterHandShowCardsMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return afterhandshowcardsmessage_ != NULL ? *afterhandshowcardsmessage_ : *default_instance().afterhandshowcardsmessage_; -#else - return afterhandshowcardsmessage_ != NULL ? *afterhandshowcardsmessage_ : *default_instance_->afterhandshowcardsmessage_; -#endif + 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; } inline ::AfterHandShowCardsMessage* PokerTHMessage::mutable_afterhandshowcardsmessage() { - set_has_afterhandshowcardsmessage(); - if (afterhandshowcardsmessage_ == NULL) afterhandshowcardsmessage_ = new ::AfterHandShowCardsMessage; + _has_bits_[1] |= 0x00080000u; + if (afterhandshowcardsmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AfterHandShowCardsMessage>(GetArenaNoVirtual()); + afterhandshowcardsmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.afterHandShowCardsMessage) return afterhandshowcardsmessage_; } -inline ::AfterHandShowCardsMessage* PokerTHMessage::release_afterhandshowcardsmessage() { - clear_has_afterhandshowcardsmessage(); - ::AfterHandShowCardsMessage* temp = afterhandshowcardsmessage_; - afterhandshowcardsmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_afterhandshowcardsmessage(::AfterHandShowCardsMessage* afterhandshowcardsmessage) { - delete afterhandshowcardsmessage_; - afterhandshowcardsmessage_ = afterhandshowcardsmessage; - if (afterhandshowcardsmessage) { - set_has_afterhandshowcardsmessage(); - } else { - clear_has_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) } // optional .EndOfGameMessage endOfGameMessage = 54; inline bool PokerTHMessage::has_endofgamemessage() const { - return (_has_bits_[1] & 0x00200000u) != 0; -} -inline void PokerTHMessage::set_has_endofgamemessage() { - _has_bits_[1] |= 0x00200000u; -} -inline void PokerTHMessage::clear_has_endofgamemessage() { - _has_bits_[1] &= ~0x00200000u; + return (_has_bits_[1] & 0x00100000u) != 0; } inline void PokerTHMessage::clear_endofgamemessage() { - if (endofgamemessage_ != NULL) endofgamemessage_->::EndOfGameMessage::Clear(); - clear_has_endofgamemessage(); + if (endofgamemessage_ != nullptr) endofgamemessage_->Clear(); + _has_bits_[1] &= ~0x00100000u; } inline const ::EndOfGameMessage& PokerTHMessage::endofgamemessage() const { + const ::EndOfGameMessage* p = endofgamemessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.endOfGameMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return endofgamemessage_ != NULL ? *endofgamemessage_ : *default_instance().endofgamemessage_; -#else - return endofgamemessage_ != NULL ? *endofgamemessage_ : *default_instance_->endofgamemessage_; -#endif + 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; } inline ::EndOfGameMessage* PokerTHMessage::mutable_endofgamemessage() { - set_has_endofgamemessage(); - if (endofgamemessage_ == NULL) endofgamemessage_ = new ::EndOfGameMessage; + _has_bits_[1] |= 0x00100000u; + if (endofgamemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::EndOfGameMessage>(GetArenaNoVirtual()); + endofgamemessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.endOfGameMessage) return endofgamemessage_; } -inline ::EndOfGameMessage* PokerTHMessage::release_endofgamemessage() { - clear_has_endofgamemessage(); - ::EndOfGameMessage* temp = endofgamemessage_; - endofgamemessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_endofgamemessage(::EndOfGameMessage* endofgamemessage) { - delete endofgamemessage_; - endofgamemessage_ = endofgamemessage; - if (endofgamemessage) { - set_has_endofgamemessage(); - } else { - clear_has_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) } // optional .PlayerIdChangedMessage playerIdChangedMessage = 55; inline bool PokerTHMessage::has_playeridchangedmessage() const { - return (_has_bits_[1] & 0x00400000u) != 0; -} -inline void PokerTHMessage::set_has_playeridchangedmessage() { - _has_bits_[1] |= 0x00400000u; -} -inline void PokerTHMessage::clear_has_playeridchangedmessage() { - _has_bits_[1] &= ~0x00400000u; + return (_has_bits_[1] & 0x00200000u) != 0; } inline void PokerTHMessage::clear_playeridchangedmessage() { - if (playeridchangedmessage_ != NULL) playeridchangedmessage_->::PlayerIdChangedMessage::Clear(); - clear_has_playeridchangedmessage(); + if (playeridchangedmessage_ != nullptr) playeridchangedmessage_->Clear(); + _has_bits_[1] &= ~0x00200000u; } inline const ::PlayerIdChangedMessage& PokerTHMessage::playeridchangedmessage() const { + const ::PlayerIdChangedMessage* p = playeridchangedmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.playerIdChangedMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return playeridchangedmessage_ != NULL ? *playeridchangedmessage_ : *default_instance().playeridchangedmessage_; -#else - return playeridchangedmessage_ != NULL ? *playeridchangedmessage_ : *default_instance_->playeridchangedmessage_; -#endif + 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; } inline ::PlayerIdChangedMessage* PokerTHMessage::mutable_playeridchangedmessage() { - set_has_playeridchangedmessage(); - if (playeridchangedmessage_ == NULL) playeridchangedmessage_ = new ::PlayerIdChangedMessage; + _has_bits_[1] |= 0x00200000u; + if (playeridchangedmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::PlayerIdChangedMessage>(GetArenaNoVirtual()); + playeridchangedmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.playerIdChangedMessage) return playeridchangedmessage_; } -inline ::PlayerIdChangedMessage* PokerTHMessage::release_playeridchangedmessage() { - clear_has_playeridchangedmessage(); - ::PlayerIdChangedMessage* temp = playeridchangedmessage_; - playeridchangedmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_playeridchangedmessage(::PlayerIdChangedMessage* playeridchangedmessage) { - delete playeridchangedmessage_; - playeridchangedmessage_ = playeridchangedmessage; - if (playeridchangedmessage) { - set_has_playeridchangedmessage(); - } else { - clear_has_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) } // optional .AskKickPlayerMessage askKickPlayerMessage = 56; inline bool PokerTHMessage::has_askkickplayermessage() const { - return (_has_bits_[1] & 0x00800000u) != 0; -} -inline void PokerTHMessage::set_has_askkickplayermessage() { - _has_bits_[1] |= 0x00800000u; -} -inline void PokerTHMessage::clear_has_askkickplayermessage() { - _has_bits_[1] &= ~0x00800000u; + return (_has_bits_[1] & 0x00400000u) != 0; } inline void PokerTHMessage::clear_askkickplayermessage() { - if (askkickplayermessage_ != NULL) askkickplayermessage_->::AskKickPlayerMessage::Clear(); - clear_has_askkickplayermessage(); + if (askkickplayermessage_ != nullptr) askkickplayermessage_->Clear(); + _has_bits_[1] &= ~0x00400000u; } inline const ::AskKickPlayerMessage& PokerTHMessage::askkickplayermessage() const { + const ::AskKickPlayerMessage* p = askkickplayermessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.askKickPlayerMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return askkickplayermessage_ != NULL ? *askkickplayermessage_ : *default_instance().askkickplayermessage_; -#else - return askkickplayermessage_ != NULL ? *askkickplayermessage_ : *default_instance_->askkickplayermessage_; -#endif + 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; } inline ::AskKickPlayerMessage* PokerTHMessage::mutable_askkickplayermessage() { - set_has_askkickplayermessage(); - if (askkickplayermessage_ == NULL) askkickplayermessage_ = new ::AskKickPlayerMessage; + _has_bits_[1] |= 0x00400000u; + if (askkickplayermessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AskKickPlayerMessage>(GetArenaNoVirtual()); + askkickplayermessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.askKickPlayerMessage) return askkickplayermessage_; } -inline ::AskKickPlayerMessage* PokerTHMessage::release_askkickplayermessage() { - clear_has_askkickplayermessage(); - ::AskKickPlayerMessage* temp = askkickplayermessage_; - askkickplayermessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_askkickplayermessage(::AskKickPlayerMessage* askkickplayermessage) { - delete askkickplayermessage_; - askkickplayermessage_ = askkickplayermessage; - if (askkickplayermessage) { - set_has_askkickplayermessage(); - } else { - clear_has_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) } // optional .AskKickDeniedMessage askKickDeniedMessage = 57; inline bool PokerTHMessage::has_askkickdeniedmessage() const { - return (_has_bits_[1] & 0x01000000u) != 0; -} -inline void PokerTHMessage::set_has_askkickdeniedmessage() { - _has_bits_[1] |= 0x01000000u; -} -inline void PokerTHMessage::clear_has_askkickdeniedmessage() { - _has_bits_[1] &= ~0x01000000u; + return (_has_bits_[1] & 0x00800000u) != 0; } inline void PokerTHMessage::clear_askkickdeniedmessage() { - if (askkickdeniedmessage_ != NULL) askkickdeniedmessage_->::AskKickDeniedMessage::Clear(); - clear_has_askkickdeniedmessage(); + if (askkickdeniedmessage_ != nullptr) askkickdeniedmessage_->Clear(); + _has_bits_[1] &= ~0x00800000u; } inline const ::AskKickDeniedMessage& PokerTHMessage::askkickdeniedmessage() const { + const ::AskKickDeniedMessage* p = askkickdeniedmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.askKickDeniedMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return askkickdeniedmessage_ != NULL ? *askkickdeniedmessage_ : *default_instance().askkickdeniedmessage_; -#else - return askkickdeniedmessage_ != NULL ? *askkickdeniedmessage_ : *default_instance_->askkickdeniedmessage_; -#endif + 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; } inline ::AskKickDeniedMessage* PokerTHMessage::mutable_askkickdeniedmessage() { - set_has_askkickdeniedmessage(); - if (askkickdeniedmessage_ == NULL) askkickdeniedmessage_ = new ::AskKickDeniedMessage; + _has_bits_[1] |= 0x00800000u; + if (askkickdeniedmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AskKickDeniedMessage>(GetArenaNoVirtual()); + askkickdeniedmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.askKickDeniedMessage) return askkickdeniedmessage_; } -inline ::AskKickDeniedMessage* PokerTHMessage::release_askkickdeniedmessage() { - clear_has_askkickdeniedmessage(); - ::AskKickDeniedMessage* temp = askkickdeniedmessage_; - askkickdeniedmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_askkickdeniedmessage(::AskKickDeniedMessage* askkickdeniedmessage) { - delete askkickdeniedmessage_; - askkickdeniedmessage_ = askkickdeniedmessage; - if (askkickdeniedmessage) { - set_has_askkickdeniedmessage(); - } else { - clear_has_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) } // optional .StartKickPetitionMessage startKickPetitionMessage = 58; inline bool PokerTHMessage::has_startkickpetitionmessage() const { - return (_has_bits_[1] & 0x02000000u) != 0; -} -inline void PokerTHMessage::set_has_startkickpetitionmessage() { - _has_bits_[1] |= 0x02000000u; -} -inline void PokerTHMessage::clear_has_startkickpetitionmessage() { - _has_bits_[1] &= ~0x02000000u; + return (_has_bits_[1] & 0x01000000u) != 0; } inline void PokerTHMessage::clear_startkickpetitionmessage() { - if (startkickpetitionmessage_ != NULL) startkickpetitionmessage_->::StartKickPetitionMessage::Clear(); - clear_has_startkickpetitionmessage(); + if (startkickpetitionmessage_ != nullptr) startkickpetitionmessage_->Clear(); + _has_bits_[1] &= ~0x01000000u; } inline const ::StartKickPetitionMessage& PokerTHMessage::startkickpetitionmessage() const { + const ::StartKickPetitionMessage* p = startkickpetitionmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.startKickPetitionMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return startkickpetitionmessage_ != NULL ? *startkickpetitionmessage_ : *default_instance().startkickpetitionmessage_; -#else - return startkickpetitionmessage_ != NULL ? *startkickpetitionmessage_ : *default_instance_->startkickpetitionmessage_; -#endif + 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; } inline ::StartKickPetitionMessage* PokerTHMessage::mutable_startkickpetitionmessage() { - set_has_startkickpetitionmessage(); - if (startkickpetitionmessage_ == NULL) startkickpetitionmessage_ = new ::StartKickPetitionMessage; + _has_bits_[1] |= 0x01000000u; + if (startkickpetitionmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::StartKickPetitionMessage>(GetArenaNoVirtual()); + startkickpetitionmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.startKickPetitionMessage) return startkickpetitionmessage_; } -inline ::StartKickPetitionMessage* PokerTHMessage::release_startkickpetitionmessage() { - clear_has_startkickpetitionmessage(); - ::StartKickPetitionMessage* temp = startkickpetitionmessage_; - startkickpetitionmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_startkickpetitionmessage(::StartKickPetitionMessage* startkickpetitionmessage) { - delete startkickpetitionmessage_; - startkickpetitionmessage_ = startkickpetitionmessage; - if (startkickpetitionmessage) { - set_has_startkickpetitionmessage(); - } else { - clear_has_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) } // optional .VoteKickRequestMessage voteKickRequestMessage = 59; inline bool PokerTHMessage::has_votekickrequestmessage() const { - return (_has_bits_[1] & 0x04000000u) != 0; -} -inline void PokerTHMessage::set_has_votekickrequestmessage() { - _has_bits_[1] |= 0x04000000u; -} -inline void PokerTHMessage::clear_has_votekickrequestmessage() { - _has_bits_[1] &= ~0x04000000u; + return (_has_bits_[1] & 0x02000000u) != 0; } inline void PokerTHMessage::clear_votekickrequestmessage() { - if (votekickrequestmessage_ != NULL) votekickrequestmessage_->::VoteKickRequestMessage::Clear(); - clear_has_votekickrequestmessage(); + if (votekickrequestmessage_ != nullptr) votekickrequestmessage_->Clear(); + _has_bits_[1] &= ~0x02000000u; } inline const ::VoteKickRequestMessage& PokerTHMessage::votekickrequestmessage() const { + const ::VoteKickRequestMessage* p = votekickrequestmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.voteKickRequestMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return votekickrequestmessage_ != NULL ? *votekickrequestmessage_ : *default_instance().votekickrequestmessage_; -#else - return votekickrequestmessage_ != NULL ? *votekickrequestmessage_ : *default_instance_->votekickrequestmessage_; -#endif + 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; } inline ::VoteKickRequestMessage* PokerTHMessage::mutable_votekickrequestmessage() { - set_has_votekickrequestmessage(); - if (votekickrequestmessage_ == NULL) votekickrequestmessage_ = new ::VoteKickRequestMessage; + _has_bits_[1] |= 0x02000000u; + if (votekickrequestmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::VoteKickRequestMessage>(GetArenaNoVirtual()); + votekickrequestmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.voteKickRequestMessage) return votekickrequestmessage_; } -inline ::VoteKickRequestMessage* PokerTHMessage::release_votekickrequestmessage() { - clear_has_votekickrequestmessage(); - ::VoteKickRequestMessage* temp = votekickrequestmessage_; - votekickrequestmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_votekickrequestmessage(::VoteKickRequestMessage* votekickrequestmessage) { - delete votekickrequestmessage_; - votekickrequestmessage_ = votekickrequestmessage; - if (votekickrequestmessage) { - set_has_votekickrequestmessage(); - } else { - clear_has_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) } // optional .VoteKickReplyMessage voteKickReplyMessage = 60; inline bool PokerTHMessage::has_votekickreplymessage() const { - return (_has_bits_[1] & 0x08000000u) != 0; -} -inline void PokerTHMessage::set_has_votekickreplymessage() { - _has_bits_[1] |= 0x08000000u; -} -inline void PokerTHMessage::clear_has_votekickreplymessage() { - _has_bits_[1] &= ~0x08000000u; + return (_has_bits_[1] & 0x04000000u) != 0; } inline void PokerTHMessage::clear_votekickreplymessage() { - if (votekickreplymessage_ != NULL) votekickreplymessage_->::VoteKickReplyMessage::Clear(); - clear_has_votekickreplymessage(); + if (votekickreplymessage_ != nullptr) votekickreplymessage_->Clear(); + _has_bits_[1] &= ~0x04000000u; } inline const ::VoteKickReplyMessage& PokerTHMessage::votekickreplymessage() const { + const ::VoteKickReplyMessage* p = votekickreplymessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.voteKickReplyMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return votekickreplymessage_ != NULL ? *votekickreplymessage_ : *default_instance().votekickreplymessage_; -#else - return votekickreplymessage_ != NULL ? *votekickreplymessage_ : *default_instance_->votekickreplymessage_; -#endif + 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; } inline ::VoteKickReplyMessage* PokerTHMessage::mutable_votekickreplymessage() { - set_has_votekickreplymessage(); - if (votekickreplymessage_ == NULL) votekickreplymessage_ = new ::VoteKickReplyMessage; + _has_bits_[1] |= 0x04000000u; + if (votekickreplymessage_ == nullptr) { + auto* p = CreateMaybeMessage<::VoteKickReplyMessage>(GetArenaNoVirtual()); + votekickreplymessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.voteKickReplyMessage) return votekickreplymessage_; } -inline ::VoteKickReplyMessage* PokerTHMessage::release_votekickreplymessage() { - clear_has_votekickreplymessage(); - ::VoteKickReplyMessage* temp = votekickreplymessage_; - votekickreplymessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_votekickreplymessage(::VoteKickReplyMessage* votekickreplymessage) { - delete votekickreplymessage_; - votekickreplymessage_ = votekickreplymessage; - if (votekickreplymessage) { - set_has_votekickreplymessage(); - } else { - clear_has_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) } // optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; inline bool PokerTHMessage::has_kickpetitionupdatemessage() const { - return (_has_bits_[1] & 0x10000000u) != 0; -} -inline void PokerTHMessage::set_has_kickpetitionupdatemessage() { - _has_bits_[1] |= 0x10000000u; -} -inline void PokerTHMessage::clear_has_kickpetitionupdatemessage() { - _has_bits_[1] &= ~0x10000000u; + return (_has_bits_[1] & 0x08000000u) != 0; } inline void PokerTHMessage::clear_kickpetitionupdatemessage() { - if (kickpetitionupdatemessage_ != NULL) kickpetitionupdatemessage_->::KickPetitionUpdateMessage::Clear(); - clear_has_kickpetitionupdatemessage(); + if (kickpetitionupdatemessage_ != nullptr) kickpetitionupdatemessage_->Clear(); + _has_bits_[1] &= ~0x08000000u; } inline const ::KickPetitionUpdateMessage& PokerTHMessage::kickpetitionupdatemessage() const { + const ::KickPetitionUpdateMessage* p = kickpetitionupdatemessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.kickPetitionUpdateMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return kickpetitionupdatemessage_ != NULL ? *kickpetitionupdatemessage_ : *default_instance().kickpetitionupdatemessage_; -#else - return kickpetitionupdatemessage_ != NULL ? *kickpetitionupdatemessage_ : *default_instance_->kickpetitionupdatemessage_; -#endif + 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; } inline ::KickPetitionUpdateMessage* PokerTHMessage::mutable_kickpetitionupdatemessage() { - set_has_kickpetitionupdatemessage(); - if (kickpetitionupdatemessage_ == NULL) kickpetitionupdatemessage_ = new ::KickPetitionUpdateMessage; + _has_bits_[1] |= 0x08000000u; + if (kickpetitionupdatemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::KickPetitionUpdateMessage>(GetArenaNoVirtual()); + kickpetitionupdatemessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.kickPetitionUpdateMessage) return kickpetitionupdatemessage_; } -inline ::KickPetitionUpdateMessage* PokerTHMessage::release_kickpetitionupdatemessage() { - clear_has_kickpetitionupdatemessage(); - ::KickPetitionUpdateMessage* temp = kickpetitionupdatemessage_; - kickpetitionupdatemessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_kickpetitionupdatemessage(::KickPetitionUpdateMessage* kickpetitionupdatemessage) { - delete kickpetitionupdatemessage_; - kickpetitionupdatemessage_ = kickpetitionupdatemessage; - if (kickpetitionupdatemessage) { - set_has_kickpetitionupdatemessage(); - } else { - clear_has_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) } // optional .EndKickPetitionMessage endKickPetitionMessage = 62; inline bool PokerTHMessage::has_endkickpetitionmessage() const { - return (_has_bits_[1] & 0x20000000u) != 0; -} -inline void PokerTHMessage::set_has_endkickpetitionmessage() { - _has_bits_[1] |= 0x20000000u; -} -inline void PokerTHMessage::clear_has_endkickpetitionmessage() { - _has_bits_[1] &= ~0x20000000u; + return (_has_bits_[1] & 0x10000000u) != 0; } inline void PokerTHMessage::clear_endkickpetitionmessage() { - if (endkickpetitionmessage_ != NULL) endkickpetitionmessage_->::EndKickPetitionMessage::Clear(); - clear_has_endkickpetitionmessage(); + if (endkickpetitionmessage_ != nullptr) endkickpetitionmessage_->Clear(); + _has_bits_[1] &= ~0x10000000u; } inline const ::EndKickPetitionMessage& PokerTHMessage::endkickpetitionmessage() const { + const ::EndKickPetitionMessage* p = endkickpetitionmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.endKickPetitionMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return endkickpetitionmessage_ != NULL ? *endkickpetitionmessage_ : *default_instance().endkickpetitionmessage_; -#else - return endkickpetitionmessage_ != NULL ? *endkickpetitionmessage_ : *default_instance_->endkickpetitionmessage_; -#endif + 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; } inline ::EndKickPetitionMessage* PokerTHMessage::mutable_endkickpetitionmessage() { - set_has_endkickpetitionmessage(); - if (endkickpetitionmessage_ == NULL) endkickpetitionmessage_ = new ::EndKickPetitionMessage; + _has_bits_[1] |= 0x10000000u; + if (endkickpetitionmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::EndKickPetitionMessage>(GetArenaNoVirtual()); + endkickpetitionmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.endKickPetitionMessage) return endkickpetitionmessage_; } -inline ::EndKickPetitionMessage* PokerTHMessage::release_endkickpetitionmessage() { - clear_has_endkickpetitionmessage(); - ::EndKickPetitionMessage* temp = endkickpetitionmessage_; - endkickpetitionmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_endkickpetitionmessage(::EndKickPetitionMessage* endkickpetitionmessage) { - delete endkickpetitionmessage_; - endkickpetitionmessage_ = endkickpetitionmessage; - if (endkickpetitionmessage) { - set_has_endkickpetitionmessage(); - } else { - clear_has_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) } // optional .StatisticsMessage statisticsMessage = 63; inline bool PokerTHMessage::has_statisticsmessage() const { - return (_has_bits_[1] & 0x40000000u) != 0; -} -inline void PokerTHMessage::set_has_statisticsmessage() { - _has_bits_[1] |= 0x40000000u; -} -inline void PokerTHMessage::clear_has_statisticsmessage() { - _has_bits_[1] &= ~0x40000000u; + return (_has_bits_[1] & 0x20000000u) != 0; } inline void PokerTHMessage::clear_statisticsmessage() { - if (statisticsmessage_ != NULL) statisticsmessage_->::StatisticsMessage::Clear(); - clear_has_statisticsmessage(); + if (statisticsmessage_ != nullptr) statisticsmessage_->Clear(); + _has_bits_[1] &= ~0x20000000u; } inline const ::StatisticsMessage& PokerTHMessage::statisticsmessage() const { + const ::StatisticsMessage* p = statisticsmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.statisticsMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return statisticsmessage_ != NULL ? *statisticsmessage_ : *default_instance().statisticsmessage_; -#else - return statisticsmessage_ != NULL ? *statisticsmessage_ : *default_instance_->statisticsmessage_; -#endif + 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; } inline ::StatisticsMessage* PokerTHMessage::mutable_statisticsmessage() { - set_has_statisticsmessage(); - if (statisticsmessage_ == NULL) statisticsmessage_ = new ::StatisticsMessage; + _has_bits_[1] |= 0x20000000u; + if (statisticsmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::StatisticsMessage>(GetArenaNoVirtual()); + statisticsmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.statisticsMessage) return statisticsmessage_; } -inline ::StatisticsMessage* PokerTHMessage::release_statisticsmessage() { - clear_has_statisticsmessage(); - ::StatisticsMessage* temp = statisticsmessage_; - statisticsmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_statisticsmessage(::StatisticsMessage* statisticsmessage) { - delete statisticsmessage_; - statisticsmessage_ = statisticsmessage; - if (statisticsmessage) { - set_has_statisticsmessage(); - } else { - clear_has_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) } // optional .ChatRequestMessage chatRequestMessage = 64; inline bool PokerTHMessage::has_chatrequestmessage() const { - return (_has_bits_[1] & 0x80000000u) != 0; -} -inline void PokerTHMessage::set_has_chatrequestmessage() { - _has_bits_[1] |= 0x80000000u; -} -inline void PokerTHMessage::clear_has_chatrequestmessage() { - _has_bits_[1] &= ~0x80000000u; + return (_has_bits_[1] & 0x40000000u) != 0; } inline void PokerTHMessage::clear_chatrequestmessage() { - if (chatrequestmessage_ != NULL) chatrequestmessage_->::ChatRequestMessage::Clear(); - clear_has_chatrequestmessage(); + if (chatrequestmessage_ != nullptr) chatrequestmessage_->Clear(); + _has_bits_[1] &= ~0x40000000u; } inline const ::ChatRequestMessage& PokerTHMessage::chatrequestmessage() const { + const ::ChatRequestMessage* p = chatrequestmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.chatRequestMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return chatrequestmessage_ != NULL ? *chatrequestmessage_ : *default_instance().chatrequestmessage_; -#else - return chatrequestmessage_ != NULL ? *chatrequestmessage_ : *default_instance_->chatrequestmessage_; -#endif + 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; } inline ::ChatRequestMessage* PokerTHMessage::mutable_chatrequestmessage() { - set_has_chatrequestmessage(); - if (chatrequestmessage_ == NULL) chatrequestmessage_ = new ::ChatRequestMessage; + _has_bits_[1] |= 0x40000000u; + if (chatrequestmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::ChatRequestMessage>(GetArenaNoVirtual()); + chatrequestmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.chatRequestMessage) return chatrequestmessage_; } -inline ::ChatRequestMessage* PokerTHMessage::release_chatrequestmessage() { - clear_has_chatrequestmessage(); - ::ChatRequestMessage* temp = chatrequestmessage_; - chatrequestmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_chatrequestmessage(::ChatRequestMessage* chatrequestmessage) { - delete chatrequestmessage_; - chatrequestmessage_ = chatrequestmessage; - if (chatrequestmessage) { - set_has_chatrequestmessage(); - } else { - clear_has_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) } // optional .ChatMessage chatMessage = 65; inline bool PokerTHMessage::has_chatmessage() const { - return (_has_bits_[2] & 0x00000001u) != 0; -} -inline void PokerTHMessage::set_has_chatmessage() { - _has_bits_[2] |= 0x00000001u; -} -inline void PokerTHMessage::clear_has_chatmessage() { - _has_bits_[2] &= ~0x00000001u; + return (_has_bits_[1] & 0x80000000u) != 0; } inline void PokerTHMessage::clear_chatmessage() { - if (chatmessage_ != NULL) chatmessage_->::ChatMessage::Clear(); - clear_has_chatmessage(); + if (chatmessage_ != nullptr) chatmessage_->Clear(); + _has_bits_[1] &= ~0x80000000u; } inline const ::ChatMessage& PokerTHMessage::chatmessage() const { + const ::ChatMessage* p = chatmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.chatMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return chatmessage_ != NULL ? *chatmessage_ : *default_instance().chatmessage_; -#else - return chatmessage_ != NULL ? *chatmessage_ : *default_instance_->chatmessage_; -#endif + 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; } inline ::ChatMessage* PokerTHMessage::mutable_chatmessage() { - set_has_chatmessage(); - if (chatmessage_ == NULL) chatmessage_ = new ::ChatMessage; + _has_bits_[1] |= 0x80000000u; + if (chatmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::ChatMessage>(GetArenaNoVirtual()); + chatmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.chatMessage) return chatmessage_; } -inline ::ChatMessage* PokerTHMessage::release_chatmessage() { - clear_has_chatmessage(); - ::ChatMessage* temp = chatmessage_; - chatmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_chatmessage(::ChatMessage* chatmessage) { - delete chatmessage_; - chatmessage_ = chatmessage; - if (chatmessage) { - set_has_chatmessage(); - } else { - clear_has_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) } // optional .ChatRejectMessage chatRejectMessage = 66; inline bool PokerTHMessage::has_chatrejectmessage() const { - return (_has_bits_[2] & 0x00000002u) != 0; -} -inline void PokerTHMessage::set_has_chatrejectmessage() { - _has_bits_[2] |= 0x00000002u; -} -inline void PokerTHMessage::clear_has_chatrejectmessage() { - _has_bits_[2] &= ~0x00000002u; + return (_has_bits_[2] & 0x00000001u) != 0; } inline void PokerTHMessage::clear_chatrejectmessage() { - if (chatrejectmessage_ != NULL) chatrejectmessage_->::ChatRejectMessage::Clear(); - clear_has_chatrejectmessage(); + if (chatrejectmessage_ != nullptr) chatrejectmessage_->Clear(); + _has_bits_[2] &= ~0x00000001u; } inline const ::ChatRejectMessage& PokerTHMessage::chatrejectmessage() const { + const ::ChatRejectMessage* p = chatrejectmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.chatRejectMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return chatrejectmessage_ != NULL ? *chatrejectmessage_ : *default_instance().chatrejectmessage_; -#else - return chatrejectmessage_ != NULL ? *chatrejectmessage_ : *default_instance_->chatrejectmessage_; -#endif + 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; } inline ::ChatRejectMessage* PokerTHMessage::mutable_chatrejectmessage() { - set_has_chatrejectmessage(); - if (chatrejectmessage_ == NULL) chatrejectmessage_ = new ::ChatRejectMessage; + _has_bits_[2] |= 0x00000001u; + if (chatrejectmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::ChatRejectMessage>(GetArenaNoVirtual()); + chatrejectmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.chatRejectMessage) return chatrejectmessage_; } -inline ::ChatRejectMessage* PokerTHMessage::release_chatrejectmessage() { - clear_has_chatrejectmessage(); - ::ChatRejectMessage* temp = chatrejectmessage_; - chatrejectmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_chatrejectmessage(::ChatRejectMessage* chatrejectmessage) { - delete chatrejectmessage_; - chatrejectmessage_ = chatrejectmessage; - if (chatrejectmessage) { - set_has_chatrejectmessage(); - } else { - clear_has_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) } // optional .DialogMessage dialogMessage = 67; inline bool PokerTHMessage::has_dialogmessage() const { - return (_has_bits_[2] & 0x00000004u) != 0; -} -inline void PokerTHMessage::set_has_dialogmessage() { - _has_bits_[2] |= 0x00000004u; -} -inline void PokerTHMessage::clear_has_dialogmessage() { - _has_bits_[2] &= ~0x00000004u; + return (_has_bits_[2] & 0x00000002u) != 0; } inline void PokerTHMessage::clear_dialogmessage() { - if (dialogmessage_ != NULL) dialogmessage_->::DialogMessage::Clear(); - clear_has_dialogmessage(); + if (dialogmessage_ != nullptr) dialogmessage_->Clear(); + _has_bits_[2] &= ~0x00000002u; } inline const ::DialogMessage& PokerTHMessage::dialogmessage() const { + const ::DialogMessage* p = dialogmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.dialogMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return dialogmessage_ != NULL ? *dialogmessage_ : *default_instance().dialogmessage_; -#else - return dialogmessage_ != NULL ? *dialogmessage_ : *default_instance_->dialogmessage_; -#endif + 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; } inline ::DialogMessage* PokerTHMessage::mutable_dialogmessage() { - set_has_dialogmessage(); - if (dialogmessage_ == NULL) dialogmessage_ = new ::DialogMessage; + _has_bits_[2] |= 0x00000002u; + if (dialogmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::DialogMessage>(GetArenaNoVirtual()); + dialogmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.dialogMessage) return dialogmessage_; } -inline ::DialogMessage* PokerTHMessage::release_dialogmessage() { - clear_has_dialogmessage(); - ::DialogMessage* temp = dialogmessage_; - dialogmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_dialogmessage(::DialogMessage* dialogmessage) { - delete dialogmessage_; - dialogmessage_ = dialogmessage; - if (dialogmessage) { - set_has_dialogmessage(); - } else { - clear_has_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) } // optional .TimeoutWarningMessage timeoutWarningMessage = 68; inline bool PokerTHMessage::has_timeoutwarningmessage() const { - return (_has_bits_[2] & 0x00000008u) != 0; -} -inline void PokerTHMessage::set_has_timeoutwarningmessage() { - _has_bits_[2] |= 0x00000008u; -} -inline void PokerTHMessage::clear_has_timeoutwarningmessage() { - _has_bits_[2] &= ~0x00000008u; + return (_has_bits_[2] & 0x00000004u) != 0; } inline void PokerTHMessage::clear_timeoutwarningmessage() { - if (timeoutwarningmessage_ != NULL) timeoutwarningmessage_->::TimeoutWarningMessage::Clear(); - clear_has_timeoutwarningmessage(); + if (timeoutwarningmessage_ != nullptr) timeoutwarningmessage_->Clear(); + _has_bits_[2] &= ~0x00000004u; } inline const ::TimeoutWarningMessage& PokerTHMessage::timeoutwarningmessage() const { + const ::TimeoutWarningMessage* p = timeoutwarningmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.timeoutWarningMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return timeoutwarningmessage_ != NULL ? *timeoutwarningmessage_ : *default_instance().timeoutwarningmessage_; -#else - return timeoutwarningmessage_ != NULL ? *timeoutwarningmessage_ : *default_instance_->timeoutwarningmessage_; -#endif + 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; } inline ::TimeoutWarningMessage* PokerTHMessage::mutable_timeoutwarningmessage() { - set_has_timeoutwarningmessage(); - if (timeoutwarningmessage_ == NULL) timeoutwarningmessage_ = new ::TimeoutWarningMessage; + _has_bits_[2] |= 0x00000004u; + if (timeoutwarningmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::TimeoutWarningMessage>(GetArenaNoVirtual()); + timeoutwarningmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.timeoutWarningMessage) return timeoutwarningmessage_; } -inline ::TimeoutWarningMessage* PokerTHMessage::release_timeoutwarningmessage() { - clear_has_timeoutwarningmessage(); - ::TimeoutWarningMessage* temp = timeoutwarningmessage_; - timeoutwarningmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_timeoutwarningmessage(::TimeoutWarningMessage* timeoutwarningmessage) { - delete timeoutwarningmessage_; - timeoutwarningmessage_ = timeoutwarningmessage; - if (timeoutwarningmessage) { - set_has_timeoutwarningmessage(); - } else { - clear_has_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) } // optional .ResetTimeoutMessage resetTimeoutMessage = 69; inline bool PokerTHMessage::has_resettimeoutmessage() const { - return (_has_bits_[2] & 0x00000010u) != 0; -} -inline void PokerTHMessage::set_has_resettimeoutmessage() { - _has_bits_[2] |= 0x00000010u; -} -inline void PokerTHMessage::clear_has_resettimeoutmessage() { - _has_bits_[2] &= ~0x00000010u; + return (_has_bits_[2] & 0x00000008u) != 0; } inline void PokerTHMessage::clear_resettimeoutmessage() { - if (resettimeoutmessage_ != NULL) resettimeoutmessage_->::ResetTimeoutMessage::Clear(); - clear_has_resettimeoutmessage(); + if (resettimeoutmessage_ != nullptr) resettimeoutmessage_->Clear(); + _has_bits_[2] &= ~0x00000008u; } inline const ::ResetTimeoutMessage& PokerTHMessage::resettimeoutmessage() const { + const ::ResetTimeoutMessage* p = resettimeoutmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.resetTimeoutMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return resettimeoutmessage_ != NULL ? *resettimeoutmessage_ : *default_instance().resettimeoutmessage_; -#else - return resettimeoutmessage_ != NULL ? *resettimeoutmessage_ : *default_instance_->resettimeoutmessage_; -#endif + 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; } inline ::ResetTimeoutMessage* PokerTHMessage::mutable_resettimeoutmessage() { - set_has_resettimeoutmessage(); - if (resettimeoutmessage_ == NULL) resettimeoutmessage_ = new ::ResetTimeoutMessage; + _has_bits_[2] |= 0x00000008u; + if (resettimeoutmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::ResetTimeoutMessage>(GetArenaNoVirtual()); + resettimeoutmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.resetTimeoutMessage) return resettimeoutmessage_; } -inline ::ResetTimeoutMessage* PokerTHMessage::release_resettimeoutmessage() { - clear_has_resettimeoutmessage(); - ::ResetTimeoutMessage* temp = resettimeoutmessage_; - resettimeoutmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_resettimeoutmessage(::ResetTimeoutMessage* resettimeoutmessage) { - delete resettimeoutmessage_; - resettimeoutmessage_ = resettimeoutmessage; - if (resettimeoutmessage) { - set_has_resettimeoutmessage(); - } else { - clear_has_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) } // optional .ReportAvatarMessage reportAvatarMessage = 70; inline bool PokerTHMessage::has_reportavatarmessage() const { - return (_has_bits_[2] & 0x00000020u) != 0; -} -inline void PokerTHMessage::set_has_reportavatarmessage() { - _has_bits_[2] |= 0x00000020u; -} -inline void PokerTHMessage::clear_has_reportavatarmessage() { - _has_bits_[2] &= ~0x00000020u; + return (_has_bits_[2] & 0x00000010u) != 0; } inline void PokerTHMessage::clear_reportavatarmessage() { - if (reportavatarmessage_ != NULL) reportavatarmessage_->::ReportAvatarMessage::Clear(); - clear_has_reportavatarmessage(); + if (reportavatarmessage_ != nullptr) reportavatarmessage_->Clear(); + _has_bits_[2] &= ~0x00000010u; } inline const ::ReportAvatarMessage& PokerTHMessage::reportavatarmessage() const { + const ::ReportAvatarMessage* p = reportavatarmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.reportAvatarMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return reportavatarmessage_ != NULL ? *reportavatarmessage_ : *default_instance().reportavatarmessage_; -#else - return reportavatarmessage_ != NULL ? *reportavatarmessage_ : *default_instance_->reportavatarmessage_; -#endif + 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; } inline ::ReportAvatarMessage* PokerTHMessage::mutable_reportavatarmessage() { - set_has_reportavatarmessage(); - if (reportavatarmessage_ == NULL) reportavatarmessage_ = new ::ReportAvatarMessage; + _has_bits_[2] |= 0x00000010u; + if (reportavatarmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::ReportAvatarMessage>(GetArenaNoVirtual()); + reportavatarmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.reportAvatarMessage) return reportavatarmessage_; } -inline ::ReportAvatarMessage* PokerTHMessage::release_reportavatarmessage() { - clear_has_reportavatarmessage(); - ::ReportAvatarMessage* temp = reportavatarmessage_; - reportavatarmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_reportavatarmessage(::ReportAvatarMessage* reportavatarmessage) { - delete reportavatarmessage_; - reportavatarmessage_ = reportavatarmessage; - if (reportavatarmessage) { - set_has_reportavatarmessage(); - } else { - clear_has_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) } // optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; inline bool PokerTHMessage::has_reportavatarackmessage() const { - return (_has_bits_[2] & 0x00000040u) != 0; -} -inline void PokerTHMessage::set_has_reportavatarackmessage() { - _has_bits_[2] |= 0x00000040u; -} -inline void PokerTHMessage::clear_has_reportavatarackmessage() { - _has_bits_[2] &= ~0x00000040u; + return (_has_bits_[2] & 0x00000020u) != 0; } inline void PokerTHMessage::clear_reportavatarackmessage() { - if (reportavatarackmessage_ != NULL) reportavatarackmessage_->::ReportAvatarAckMessage::Clear(); - clear_has_reportavatarackmessage(); + if (reportavatarackmessage_ != nullptr) reportavatarackmessage_->Clear(); + _has_bits_[2] &= ~0x00000020u; } inline const ::ReportAvatarAckMessage& PokerTHMessage::reportavatarackmessage() const { + const ::ReportAvatarAckMessage* p = reportavatarackmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.reportAvatarAckMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return reportavatarackmessage_ != NULL ? *reportavatarackmessage_ : *default_instance().reportavatarackmessage_; -#else - return reportavatarackmessage_ != NULL ? *reportavatarackmessage_ : *default_instance_->reportavatarackmessage_; -#endif + 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; } inline ::ReportAvatarAckMessage* PokerTHMessage::mutable_reportavatarackmessage() { - set_has_reportavatarackmessage(); - if (reportavatarackmessage_ == NULL) reportavatarackmessage_ = new ::ReportAvatarAckMessage; + _has_bits_[2] |= 0x00000020u; + if (reportavatarackmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::ReportAvatarAckMessage>(GetArenaNoVirtual()); + reportavatarackmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.reportAvatarAckMessage) return reportavatarackmessage_; } -inline ::ReportAvatarAckMessage* PokerTHMessage::release_reportavatarackmessage() { - clear_has_reportavatarackmessage(); - ::ReportAvatarAckMessage* temp = reportavatarackmessage_; - reportavatarackmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_reportavatarackmessage(::ReportAvatarAckMessage* reportavatarackmessage) { - delete reportavatarackmessage_; - reportavatarackmessage_ = reportavatarackmessage; - if (reportavatarackmessage) { - set_has_reportavatarackmessage(); - } else { - clear_has_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) } // optional .ReportGameMessage reportGameMessage = 72; inline bool PokerTHMessage::has_reportgamemessage() const { - return (_has_bits_[2] & 0x00000080u) != 0; -} -inline void PokerTHMessage::set_has_reportgamemessage() { - _has_bits_[2] |= 0x00000080u; -} -inline void PokerTHMessage::clear_has_reportgamemessage() { - _has_bits_[2] &= ~0x00000080u; + return (_has_bits_[2] & 0x00000040u) != 0; } inline void PokerTHMessage::clear_reportgamemessage() { - if (reportgamemessage_ != NULL) reportgamemessage_->::ReportGameMessage::Clear(); - clear_has_reportgamemessage(); + if (reportgamemessage_ != nullptr) reportgamemessage_->Clear(); + _has_bits_[2] &= ~0x00000040u; } inline const ::ReportGameMessage& PokerTHMessage::reportgamemessage() const { + const ::ReportGameMessage* p = reportgamemessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.reportGameMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return reportgamemessage_ != NULL ? *reportgamemessage_ : *default_instance().reportgamemessage_; -#else - return reportgamemessage_ != NULL ? *reportgamemessage_ : *default_instance_->reportgamemessage_; -#endif + 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; } inline ::ReportGameMessage* PokerTHMessage::mutable_reportgamemessage() { - set_has_reportgamemessage(); - if (reportgamemessage_ == NULL) reportgamemessage_ = new ::ReportGameMessage; + _has_bits_[2] |= 0x00000040u; + if (reportgamemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::ReportGameMessage>(GetArenaNoVirtual()); + reportgamemessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.reportGameMessage) return reportgamemessage_; } -inline ::ReportGameMessage* PokerTHMessage::release_reportgamemessage() { - clear_has_reportgamemessage(); - ::ReportGameMessage* temp = reportgamemessage_; - reportgamemessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_reportgamemessage(::ReportGameMessage* reportgamemessage) { - delete reportgamemessage_; - reportgamemessage_ = reportgamemessage; - if (reportgamemessage) { - set_has_reportgamemessage(); - } else { - clear_has_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) } // optional .ReportGameAckMessage reportGameAckMessage = 73; inline bool PokerTHMessage::has_reportgameackmessage() const { - return (_has_bits_[2] & 0x00000100u) != 0; -} -inline void PokerTHMessage::set_has_reportgameackmessage() { - _has_bits_[2] |= 0x00000100u; -} -inline void PokerTHMessage::clear_has_reportgameackmessage() { - _has_bits_[2] &= ~0x00000100u; + return (_has_bits_[2] & 0x00000080u) != 0; } inline void PokerTHMessage::clear_reportgameackmessage() { - if (reportgameackmessage_ != NULL) reportgameackmessage_->::ReportGameAckMessage::Clear(); - clear_has_reportgameackmessage(); + if (reportgameackmessage_ != nullptr) reportgameackmessage_->Clear(); + _has_bits_[2] &= ~0x00000080u; } inline const ::ReportGameAckMessage& PokerTHMessage::reportgameackmessage() const { + const ::ReportGameAckMessage* p = reportgameackmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.reportGameAckMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return reportgameackmessage_ != NULL ? *reportgameackmessage_ : *default_instance().reportgameackmessage_; -#else - return reportgameackmessage_ != NULL ? *reportgameackmessage_ : *default_instance_->reportgameackmessage_; -#endif + 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; } inline ::ReportGameAckMessage* PokerTHMessage::mutable_reportgameackmessage() { - set_has_reportgameackmessage(); - if (reportgameackmessage_ == NULL) reportgameackmessage_ = new ::ReportGameAckMessage; + _has_bits_[2] |= 0x00000080u; + if (reportgameackmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::ReportGameAckMessage>(GetArenaNoVirtual()); + reportgameackmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.reportGameAckMessage) return reportgameackmessage_; } -inline ::ReportGameAckMessage* PokerTHMessage::release_reportgameackmessage() { - clear_has_reportgameackmessage(); - ::ReportGameAckMessage* temp = reportgameackmessage_; - reportgameackmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_reportgameackmessage(::ReportGameAckMessage* reportgameackmessage) { - delete reportgameackmessage_; - reportgameackmessage_ = reportgameackmessage; - if (reportgameackmessage) { - set_has_reportgameackmessage(); - } else { - clear_has_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) } // optional .ErrorMessage errorMessage = 74; inline bool PokerTHMessage::has_errormessage() const { - return (_has_bits_[2] & 0x00000200u) != 0; -} -inline void PokerTHMessage::set_has_errormessage() { - _has_bits_[2] |= 0x00000200u; -} -inline void PokerTHMessage::clear_has_errormessage() { - _has_bits_[2] &= ~0x00000200u; + return (_has_bits_[2] & 0x00000100u) != 0; } inline void PokerTHMessage::clear_errormessage() { - if (errormessage_ != NULL) errormessage_->::ErrorMessage::Clear(); - clear_has_errormessage(); + if (errormessage_ != nullptr) errormessage_->Clear(); + _has_bits_[2] &= ~0x00000100u; } inline const ::ErrorMessage& PokerTHMessage::errormessage() const { + const ::ErrorMessage* p = errormessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.errorMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return errormessage_ != NULL ? *errormessage_ : *default_instance().errormessage_; -#else - return errormessage_ != NULL ? *errormessage_ : *default_instance_->errormessage_; -#endif + 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; } inline ::ErrorMessage* PokerTHMessage::mutable_errormessage() { - set_has_errormessage(); - if (errormessage_ == NULL) errormessage_ = new ::ErrorMessage; + _has_bits_[2] |= 0x00000100u; + if (errormessage_ == nullptr) { + auto* p = CreateMaybeMessage<::ErrorMessage>(GetArenaNoVirtual()); + errormessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.errorMessage) return errormessage_; } -inline ::ErrorMessage* PokerTHMessage::release_errormessage() { - clear_has_errormessage(); - ::ErrorMessage* temp = errormessage_; - errormessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_errormessage(::ErrorMessage* errormessage) { - delete errormessage_; - errormessage_ = errormessage; - if (errormessage) { - set_has_errormessage(); - } else { - clear_has_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) } // optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; inline bool PokerTHMessage::has_adminremovegamemessage() const { - return (_has_bits_[2] & 0x00000400u) != 0; -} -inline void PokerTHMessage::set_has_adminremovegamemessage() { - _has_bits_[2] |= 0x00000400u; -} -inline void PokerTHMessage::clear_has_adminremovegamemessage() { - _has_bits_[2] &= ~0x00000400u; + return (_has_bits_[2] & 0x00000200u) != 0; } inline void PokerTHMessage::clear_adminremovegamemessage() { - if (adminremovegamemessage_ != NULL) adminremovegamemessage_->::AdminRemoveGameMessage::Clear(); - clear_has_adminremovegamemessage(); + if (adminremovegamemessage_ != nullptr) adminremovegamemessage_->Clear(); + _has_bits_[2] &= ~0x00000200u; } inline const ::AdminRemoveGameMessage& PokerTHMessage::adminremovegamemessage() const { + const ::AdminRemoveGameMessage* p = adminremovegamemessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.adminRemoveGameMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return adminremovegamemessage_ != NULL ? *adminremovegamemessage_ : *default_instance().adminremovegamemessage_; -#else - return adminremovegamemessage_ != NULL ? *adminremovegamemessage_ : *default_instance_->adminremovegamemessage_; -#endif + 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; } inline ::AdminRemoveGameMessage* PokerTHMessage::mutable_adminremovegamemessage() { - set_has_adminremovegamemessage(); - if (adminremovegamemessage_ == NULL) adminremovegamemessage_ = new ::AdminRemoveGameMessage; + _has_bits_[2] |= 0x00000200u; + if (adminremovegamemessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AdminRemoveGameMessage>(GetArenaNoVirtual()); + adminremovegamemessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.adminRemoveGameMessage) return adminremovegamemessage_; } -inline ::AdminRemoveGameMessage* PokerTHMessage::release_adminremovegamemessage() { - clear_has_adminremovegamemessage(); - ::AdminRemoveGameMessage* temp = adminremovegamemessage_; - adminremovegamemessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_adminremovegamemessage(::AdminRemoveGameMessage* adminremovegamemessage) { - delete adminremovegamemessage_; - adminremovegamemessage_ = adminremovegamemessage; - if (adminremovegamemessage) { - set_has_adminremovegamemessage(); - } else { - clear_has_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) } // optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; inline bool PokerTHMessage::has_adminremovegameackmessage() const { - return (_has_bits_[2] & 0x00000800u) != 0; -} -inline void PokerTHMessage::set_has_adminremovegameackmessage() { - _has_bits_[2] |= 0x00000800u; -} -inline void PokerTHMessage::clear_has_adminremovegameackmessage() { - _has_bits_[2] &= ~0x00000800u; + return (_has_bits_[2] & 0x00000400u) != 0; } inline void PokerTHMessage::clear_adminremovegameackmessage() { - if (adminremovegameackmessage_ != NULL) adminremovegameackmessage_->::AdminRemoveGameAckMessage::Clear(); - clear_has_adminremovegameackmessage(); + if (adminremovegameackmessage_ != nullptr) adminremovegameackmessage_->Clear(); + _has_bits_[2] &= ~0x00000400u; } inline const ::AdminRemoveGameAckMessage& PokerTHMessage::adminremovegameackmessage() const { + const ::AdminRemoveGameAckMessage* p = adminremovegameackmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.adminRemoveGameAckMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return adminremovegameackmessage_ != NULL ? *adminremovegameackmessage_ : *default_instance().adminremovegameackmessage_; -#else - return adminremovegameackmessage_ != NULL ? *adminremovegameackmessage_ : *default_instance_->adminremovegameackmessage_; -#endif + 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; } inline ::AdminRemoveGameAckMessage* PokerTHMessage::mutable_adminremovegameackmessage() { - set_has_adminremovegameackmessage(); - if (adminremovegameackmessage_ == NULL) adminremovegameackmessage_ = new ::AdminRemoveGameAckMessage; + _has_bits_[2] |= 0x00000400u; + if (adminremovegameackmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AdminRemoveGameAckMessage>(GetArenaNoVirtual()); + adminremovegameackmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.adminRemoveGameAckMessage) return adminremovegameackmessage_; } -inline ::AdminRemoveGameAckMessage* PokerTHMessage::release_adminremovegameackmessage() { - clear_has_adminremovegameackmessage(); - ::AdminRemoveGameAckMessage* temp = adminremovegameackmessage_; - adminremovegameackmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_adminremovegameackmessage(::AdminRemoveGameAckMessage* adminremovegameackmessage) { - delete adminremovegameackmessage_; - adminremovegameackmessage_ = adminremovegameackmessage; - if (adminremovegameackmessage) { - set_has_adminremovegameackmessage(); - } else { - clear_has_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) } // optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; inline bool PokerTHMessage::has_adminbanplayermessage() const { - return (_has_bits_[2] & 0x00001000u) != 0; -} -inline void PokerTHMessage::set_has_adminbanplayermessage() { - _has_bits_[2] |= 0x00001000u; -} -inline void PokerTHMessage::clear_has_adminbanplayermessage() { - _has_bits_[2] &= ~0x00001000u; + return (_has_bits_[2] & 0x00000800u) != 0; } inline void PokerTHMessage::clear_adminbanplayermessage() { - if (adminbanplayermessage_ != NULL) adminbanplayermessage_->::AdminBanPlayerMessage::Clear(); - clear_has_adminbanplayermessage(); + if (adminbanplayermessage_ != nullptr) adminbanplayermessage_->Clear(); + _has_bits_[2] &= ~0x00000800u; } inline const ::AdminBanPlayerMessage& PokerTHMessage::adminbanplayermessage() const { + const ::AdminBanPlayerMessage* p = adminbanplayermessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.adminBanPlayerMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return adminbanplayermessage_ != NULL ? *adminbanplayermessage_ : *default_instance().adminbanplayermessage_; -#else - return adminbanplayermessage_ != NULL ? *adminbanplayermessage_ : *default_instance_->adminbanplayermessage_; -#endif + 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; } inline ::AdminBanPlayerMessage* PokerTHMessage::mutable_adminbanplayermessage() { - set_has_adminbanplayermessage(); - if (adminbanplayermessage_ == NULL) adminbanplayermessage_ = new ::AdminBanPlayerMessage; + _has_bits_[2] |= 0x00000800u; + if (adminbanplayermessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AdminBanPlayerMessage>(GetArenaNoVirtual()); + adminbanplayermessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.adminBanPlayerMessage) return adminbanplayermessage_; } -inline ::AdminBanPlayerMessage* PokerTHMessage::release_adminbanplayermessage() { - clear_has_adminbanplayermessage(); - ::AdminBanPlayerMessage* temp = adminbanplayermessage_; - adminbanplayermessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_adminbanplayermessage(::AdminBanPlayerMessage* adminbanplayermessage) { - delete adminbanplayermessage_; - adminbanplayermessage_ = adminbanplayermessage; - if (adminbanplayermessage) { - set_has_adminbanplayermessage(); - } else { - clear_has_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) } // optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; inline bool PokerTHMessage::has_adminbanplayerackmessage() const { - return (_has_bits_[2] & 0x00002000u) != 0; -} -inline void PokerTHMessage::set_has_adminbanplayerackmessage() { - _has_bits_[2] |= 0x00002000u; -} -inline void PokerTHMessage::clear_has_adminbanplayerackmessage() { - _has_bits_[2] &= ~0x00002000u; + return (_has_bits_[2] & 0x00001000u) != 0; } inline void PokerTHMessage::clear_adminbanplayerackmessage() { - if (adminbanplayerackmessage_ != NULL) adminbanplayerackmessage_->::AdminBanPlayerAckMessage::Clear(); - clear_has_adminbanplayerackmessage(); + if (adminbanplayerackmessage_ != nullptr) adminbanplayerackmessage_->Clear(); + _has_bits_[2] &= ~0x00001000u; } inline const ::AdminBanPlayerAckMessage& PokerTHMessage::adminbanplayerackmessage() const { + const ::AdminBanPlayerAckMessage* p = adminbanplayerackmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.adminBanPlayerAckMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return adminbanplayerackmessage_ != NULL ? *adminbanplayerackmessage_ : *default_instance().adminbanplayerackmessage_; -#else - return adminbanplayerackmessage_ != NULL ? *adminbanplayerackmessage_ : *default_instance_->adminbanplayerackmessage_; -#endif + 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; } inline ::AdminBanPlayerAckMessage* PokerTHMessage::mutable_adminbanplayerackmessage() { - set_has_adminbanplayerackmessage(); - if (adminbanplayerackmessage_ == NULL) adminbanplayerackmessage_ = new ::AdminBanPlayerAckMessage; + _has_bits_[2] |= 0x00001000u; + if (adminbanplayerackmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::AdminBanPlayerAckMessage>(GetArenaNoVirtual()); + adminbanplayerackmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.adminBanPlayerAckMessage) return adminbanplayerackmessage_; } -inline ::AdminBanPlayerAckMessage* PokerTHMessage::release_adminbanplayerackmessage() { - clear_has_adminbanplayerackmessage(); - ::AdminBanPlayerAckMessage* temp = adminbanplayerackmessage_; - adminbanplayerackmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_adminbanplayerackmessage(::AdminBanPlayerAckMessage* adminbanplayerackmessage) { - delete adminbanplayerackmessage_; - adminbanplayerackmessage_ = adminbanplayerackmessage; - if (adminbanplayerackmessage) { - set_has_adminbanplayerackmessage(); - } else { - clear_has_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) } // optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; inline bool PokerTHMessage::has_gamelistspectatorjoinedmessage() const { - return (_has_bits_[2] & 0x00004000u) != 0; -} -inline void PokerTHMessage::set_has_gamelistspectatorjoinedmessage() { - _has_bits_[2] |= 0x00004000u; -} -inline void PokerTHMessage::clear_has_gamelistspectatorjoinedmessage() { - _has_bits_[2] &= ~0x00004000u; + return (_has_bits_[2] & 0x00002000u) != 0; } inline void PokerTHMessage::clear_gamelistspectatorjoinedmessage() { - if (gamelistspectatorjoinedmessage_ != NULL) gamelistspectatorjoinedmessage_->::GameListSpectatorJoinedMessage::Clear(); - clear_has_gamelistspectatorjoinedmessage(); + if (gamelistspectatorjoinedmessage_ != nullptr) gamelistspectatorjoinedmessage_->Clear(); + _has_bits_[2] &= ~0x00002000u; } inline const ::GameListSpectatorJoinedMessage& PokerTHMessage::gamelistspectatorjoinedmessage() const { + const ::GameListSpectatorJoinedMessage* p = gamelistspectatorjoinedmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.gameListSpectatorJoinedMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gamelistspectatorjoinedmessage_ != NULL ? *gamelistspectatorjoinedmessage_ : *default_instance().gamelistspectatorjoinedmessage_; -#else - return gamelistspectatorjoinedmessage_ != NULL ? *gamelistspectatorjoinedmessage_ : *default_instance_->gamelistspectatorjoinedmessage_; -#endif + 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; } inline ::GameListSpectatorJoinedMessage* PokerTHMessage::mutable_gamelistspectatorjoinedmessage() { - set_has_gamelistspectatorjoinedmessage(); - if (gamelistspectatorjoinedmessage_ == NULL) gamelistspectatorjoinedmessage_ = new ::GameListSpectatorJoinedMessage; + _has_bits_[2] |= 0x00002000u; + if (gamelistspectatorjoinedmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GameListSpectatorJoinedMessage>(GetArenaNoVirtual()); + gamelistspectatorjoinedmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameListSpectatorJoinedMessage) return gamelistspectatorjoinedmessage_; } -inline ::GameListSpectatorJoinedMessage* PokerTHMessage::release_gamelistspectatorjoinedmessage() { - clear_has_gamelistspectatorjoinedmessage(); - ::GameListSpectatorJoinedMessage* temp = gamelistspectatorjoinedmessage_; - gamelistspectatorjoinedmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_gamelistspectatorjoinedmessage(::GameListSpectatorJoinedMessage* gamelistspectatorjoinedmessage) { - delete gamelistspectatorjoinedmessage_; - gamelistspectatorjoinedmessage_ = gamelistspectatorjoinedmessage; - if (gamelistspectatorjoinedmessage) { - set_has_gamelistspectatorjoinedmessage(); - } else { - clear_has_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) } // optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; inline bool PokerTHMessage::has_gamelistspectatorleftmessage() const { - return (_has_bits_[2] & 0x00008000u) != 0; -} -inline void PokerTHMessage::set_has_gamelistspectatorleftmessage() { - _has_bits_[2] |= 0x00008000u; -} -inline void PokerTHMessage::clear_has_gamelistspectatorleftmessage() { - _has_bits_[2] &= ~0x00008000u; + return (_has_bits_[2] & 0x00004000u) != 0; } inline void PokerTHMessage::clear_gamelistspectatorleftmessage() { - if (gamelistspectatorleftmessage_ != NULL) gamelistspectatorleftmessage_->::GameListSpectatorLeftMessage::Clear(); - clear_has_gamelistspectatorleftmessage(); + if (gamelistspectatorleftmessage_ != nullptr) gamelistspectatorleftmessage_->Clear(); + _has_bits_[2] &= ~0x00004000u; } inline const ::GameListSpectatorLeftMessage& PokerTHMessage::gamelistspectatorleftmessage() const { + const ::GameListSpectatorLeftMessage* p = gamelistspectatorleftmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.gameListSpectatorLeftMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gamelistspectatorleftmessage_ != NULL ? *gamelistspectatorleftmessage_ : *default_instance().gamelistspectatorleftmessage_; -#else - return gamelistspectatorleftmessage_ != NULL ? *gamelistspectatorleftmessage_ : *default_instance_->gamelistspectatorleftmessage_; -#endif + 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; } inline ::GameListSpectatorLeftMessage* PokerTHMessage::mutable_gamelistspectatorleftmessage() { - set_has_gamelistspectatorleftmessage(); - if (gamelistspectatorleftmessage_ == NULL) gamelistspectatorleftmessage_ = new ::GameListSpectatorLeftMessage; + _has_bits_[2] |= 0x00004000u; + if (gamelistspectatorleftmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GameListSpectatorLeftMessage>(GetArenaNoVirtual()); + gamelistspectatorleftmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameListSpectatorLeftMessage) return gamelistspectatorleftmessage_; } -inline ::GameListSpectatorLeftMessage* PokerTHMessage::release_gamelistspectatorleftmessage() { - clear_has_gamelistspectatorleftmessage(); - ::GameListSpectatorLeftMessage* temp = gamelistspectatorleftmessage_; - gamelistspectatorleftmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_gamelistspectatorleftmessage(::GameListSpectatorLeftMessage* gamelistspectatorleftmessage) { - delete gamelistspectatorleftmessage_; - gamelistspectatorleftmessage_ = gamelistspectatorleftmessage; - if (gamelistspectatorleftmessage) { - set_has_gamelistspectatorleftmessage(); - } else { - clear_has_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) } // optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; inline bool PokerTHMessage::has_gamespectatorjoinedmessage() const { - return (_has_bits_[2] & 0x00010000u) != 0; -} -inline void PokerTHMessage::set_has_gamespectatorjoinedmessage() { - _has_bits_[2] |= 0x00010000u; -} -inline void PokerTHMessage::clear_has_gamespectatorjoinedmessage() { - _has_bits_[2] &= ~0x00010000u; + return (_has_bits_[2] & 0x00008000u) != 0; } inline void PokerTHMessage::clear_gamespectatorjoinedmessage() { - if (gamespectatorjoinedmessage_ != NULL) gamespectatorjoinedmessage_->::GameSpectatorJoinedMessage::Clear(); - clear_has_gamespectatorjoinedmessage(); + if (gamespectatorjoinedmessage_ != nullptr) gamespectatorjoinedmessage_->Clear(); + _has_bits_[2] &= ~0x00008000u; } inline const ::GameSpectatorJoinedMessage& PokerTHMessage::gamespectatorjoinedmessage() const { + const ::GameSpectatorJoinedMessage* p = gamespectatorjoinedmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.gameSpectatorJoinedMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gamespectatorjoinedmessage_ != NULL ? *gamespectatorjoinedmessage_ : *default_instance().gamespectatorjoinedmessage_; -#else - return gamespectatorjoinedmessage_ != NULL ? *gamespectatorjoinedmessage_ : *default_instance_->gamespectatorjoinedmessage_; -#endif + 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; } inline ::GameSpectatorJoinedMessage* PokerTHMessage::mutable_gamespectatorjoinedmessage() { - set_has_gamespectatorjoinedmessage(); - if (gamespectatorjoinedmessage_ == NULL) gamespectatorjoinedmessage_ = new ::GameSpectatorJoinedMessage; + _has_bits_[2] |= 0x00008000u; + if (gamespectatorjoinedmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GameSpectatorJoinedMessage>(GetArenaNoVirtual()); + gamespectatorjoinedmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameSpectatorJoinedMessage) return gamespectatorjoinedmessage_; } -inline ::GameSpectatorJoinedMessage* PokerTHMessage::release_gamespectatorjoinedmessage() { - clear_has_gamespectatorjoinedmessage(); - ::GameSpectatorJoinedMessage* temp = gamespectatorjoinedmessage_; - gamespectatorjoinedmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_gamespectatorjoinedmessage(::GameSpectatorJoinedMessage* gamespectatorjoinedmessage) { - delete gamespectatorjoinedmessage_; - gamespectatorjoinedmessage_ = gamespectatorjoinedmessage; - if (gamespectatorjoinedmessage) { - set_has_gamespectatorjoinedmessage(); - } else { - clear_has_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) } // optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; inline bool PokerTHMessage::has_gamespectatorleftmessage() const { - return (_has_bits_[2] & 0x00020000u) != 0; -} -inline void PokerTHMessage::set_has_gamespectatorleftmessage() { - _has_bits_[2] |= 0x00020000u; -} -inline void PokerTHMessage::clear_has_gamespectatorleftmessage() { - _has_bits_[2] &= ~0x00020000u; + return (_has_bits_[2] & 0x00010000u) != 0; } inline void PokerTHMessage::clear_gamespectatorleftmessage() { - if (gamespectatorleftmessage_ != NULL) gamespectatorleftmessage_->::GameSpectatorLeftMessage::Clear(); - clear_has_gamespectatorleftmessage(); + if (gamespectatorleftmessage_ != nullptr) gamespectatorleftmessage_->Clear(); + _has_bits_[2] &= ~0x00010000u; } inline const ::GameSpectatorLeftMessage& PokerTHMessage::gamespectatorleftmessage() const { + const ::GameSpectatorLeftMessage* p = gamespectatorleftmessage_; // @@protoc_insertion_point(field_get:PokerTHMessage.gameSpectatorLeftMessage) -#ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER - return gamespectatorleftmessage_ != NULL ? *gamespectatorleftmessage_ : *default_instance().gamespectatorleftmessage_; -#else - return gamespectatorleftmessage_ != NULL ? *gamespectatorleftmessage_ : *default_instance_->gamespectatorleftmessage_; -#endif + 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; } inline ::GameSpectatorLeftMessage* PokerTHMessage::mutable_gamespectatorleftmessage() { - set_has_gamespectatorleftmessage(); - if (gamespectatorleftmessage_ == NULL) gamespectatorleftmessage_ = new ::GameSpectatorLeftMessage; + _has_bits_[2] |= 0x00010000u; + if (gamespectatorleftmessage_ == nullptr) { + auto* p = CreateMaybeMessage<::GameSpectatorLeftMessage>(GetArenaNoVirtual()); + gamespectatorleftmessage_ = p; + } // @@protoc_insertion_point(field_mutable:PokerTHMessage.gameSpectatorLeftMessage) return gamespectatorleftmessage_; } -inline ::GameSpectatorLeftMessage* PokerTHMessage::release_gamespectatorleftmessage() { - clear_has_gamespectatorleftmessage(); - ::GameSpectatorLeftMessage* temp = gamespectatorleftmessage_; - gamespectatorleftmessage_ = NULL; - return temp; -} inline void PokerTHMessage::set_allocated_gamespectatorleftmessage(::GameSpectatorLeftMessage* gamespectatorleftmessage) { - delete gamespectatorleftmessage_; - gamespectatorleftmessage_ = gamespectatorleftmessage; - if (gamespectatorleftmessage) { - set_has_gamespectatorleftmessage(); - } else { - clear_has_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) } +#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) -#endif // PROTOBUF_pokerth_2eproto__INCLUDED +#include +#endif // PROTOBUF_INCLUDED_pokerth_2eproto diff --git a/src/third_party/websocketpp/COPYING b/src/third_party/websocketpp.old/COPYING similarity index 100% rename from src/third_party/websocketpp/COPYING rename to src/third_party/websocketpp.old/COPYING diff --git a/src/third_party/websocketpp/websocketpp/CMakeLists.txt b/src/third_party/websocketpp.old/websocketpp/CMakeLists.txt similarity index 100% rename from src/third_party/websocketpp/websocketpp/CMakeLists.txt rename to src/third_party/websocketpp.old/websocketpp/CMakeLists.txt diff --git a/src/third_party/websocketpp/websocketpp/base64/base64.hpp b/src/third_party/websocketpp.old/websocketpp/base64/base64.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/base64/base64.hpp rename to src/third_party/websocketpp.old/websocketpp/base64/base64.hpp diff --git a/src/third_party/websocketpp/websocketpp/client.hpp b/src/third_party/websocketpp.old/websocketpp/client.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/client.hpp rename to src/third_party/websocketpp.old/websocketpp/client.hpp diff --git a/src/third_party/websocketpp/websocketpp/close.hpp b/src/third_party/websocketpp.old/websocketpp/close.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/close.hpp rename to src/third_party/websocketpp.old/websocketpp/close.hpp diff --git a/src/third_party/websocketpp/websocketpp/common/asio.hpp b/src/third_party/websocketpp.old/websocketpp/common/asio.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/common/asio.hpp rename to src/third_party/websocketpp.old/websocketpp/common/asio.hpp diff --git a/src/third_party/websocketpp/websocketpp/common/asio_ssl.hpp b/src/third_party/websocketpp.old/websocketpp/common/asio_ssl.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/common/asio_ssl.hpp rename to src/third_party/websocketpp.old/websocketpp/common/asio_ssl.hpp diff --git a/src/third_party/websocketpp/websocketpp/common/chrono.hpp b/src/third_party/websocketpp.old/websocketpp/common/chrono.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/common/chrono.hpp rename to src/third_party/websocketpp.old/websocketpp/common/chrono.hpp diff --git a/src/third_party/websocketpp/websocketpp/common/connection_hdl.hpp b/src/third_party/websocketpp.old/websocketpp/common/connection_hdl.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/common/connection_hdl.hpp rename to src/third_party/websocketpp.old/websocketpp/common/connection_hdl.hpp diff --git a/src/third_party/websocketpp/websocketpp/common/cpp11.hpp b/src/third_party/websocketpp.old/websocketpp/common/cpp11.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/common/cpp11.hpp rename to src/third_party/websocketpp.old/websocketpp/common/cpp11.hpp diff --git a/src/third_party/websocketpp/websocketpp/common/functional.hpp b/src/third_party/websocketpp.old/websocketpp/common/functional.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/common/functional.hpp rename to src/third_party/websocketpp.old/websocketpp/common/functional.hpp diff --git a/src/third_party/websocketpp/websocketpp/common/md5.hpp b/src/third_party/websocketpp.old/websocketpp/common/md5.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/common/md5.hpp rename to src/third_party/websocketpp.old/websocketpp/common/md5.hpp diff --git a/src/third_party/websocketpp/websocketpp/common/memory.hpp b/src/third_party/websocketpp.old/websocketpp/common/memory.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/common/memory.hpp rename to src/third_party/websocketpp.old/websocketpp/common/memory.hpp diff --git a/src/third_party/websocketpp/websocketpp/common/network.hpp b/src/third_party/websocketpp.old/websocketpp/common/network.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/common/network.hpp rename to src/third_party/websocketpp.old/websocketpp/common/network.hpp diff --git a/src/third_party/websocketpp/websocketpp/common/platforms.hpp b/src/third_party/websocketpp.old/websocketpp/common/platforms.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/common/platforms.hpp rename to src/third_party/websocketpp.old/websocketpp/common/platforms.hpp diff --git a/src/third_party/websocketpp/websocketpp/common/random.hpp b/src/third_party/websocketpp.old/websocketpp/common/random.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/common/random.hpp rename to src/third_party/websocketpp.old/websocketpp/common/random.hpp diff --git a/src/third_party/websocketpp/websocketpp/common/regex.hpp b/src/third_party/websocketpp.old/websocketpp/common/regex.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/common/regex.hpp rename to src/third_party/websocketpp.old/websocketpp/common/regex.hpp diff --git a/src/third_party/websocketpp/websocketpp/common/stdint.hpp b/src/third_party/websocketpp.old/websocketpp/common/stdint.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/common/stdint.hpp rename to src/third_party/websocketpp.old/websocketpp/common/stdint.hpp diff --git a/src/third_party/websocketpp/websocketpp/common/system_error.hpp b/src/third_party/websocketpp.old/websocketpp/common/system_error.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/common/system_error.hpp rename to src/third_party/websocketpp.old/websocketpp/common/system_error.hpp diff --git a/src/third_party/websocketpp/websocketpp/common/thread.hpp b/src/third_party/websocketpp.old/websocketpp/common/thread.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/common/thread.hpp rename to src/third_party/websocketpp.old/websocketpp/common/thread.hpp diff --git a/src/third_party/websocketpp/websocketpp/common/time.hpp b/src/third_party/websocketpp.old/websocketpp/common/time.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/common/time.hpp rename to src/third_party/websocketpp.old/websocketpp/common/time.hpp diff --git a/src/third_party/websocketpp/websocketpp/common/type_traits.hpp b/src/third_party/websocketpp.old/websocketpp/common/type_traits.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/common/type_traits.hpp rename to src/third_party/websocketpp.old/websocketpp/common/type_traits.hpp diff --git a/src/third_party/websocketpp/websocketpp/concurrency/basic.hpp b/src/third_party/websocketpp.old/websocketpp/concurrency/basic.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/concurrency/basic.hpp rename to src/third_party/websocketpp.old/websocketpp/concurrency/basic.hpp diff --git a/src/third_party/websocketpp/websocketpp/concurrency/none.hpp b/src/third_party/websocketpp.old/websocketpp/concurrency/none.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/concurrency/none.hpp rename to src/third_party/websocketpp.old/websocketpp/concurrency/none.hpp diff --git a/src/third_party/websocketpp/websocketpp/config/asio.hpp b/src/third_party/websocketpp.old/websocketpp/config/asio.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/config/asio.hpp rename to src/third_party/websocketpp.old/websocketpp/config/asio.hpp diff --git a/src/third_party/websocketpp/websocketpp/config/asio_client.hpp b/src/third_party/websocketpp.old/websocketpp/config/asio_client.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/config/asio_client.hpp rename to src/third_party/websocketpp.old/websocketpp/config/asio_client.hpp diff --git a/src/third_party/websocketpp/websocketpp/config/asio_no_tls.hpp b/src/third_party/websocketpp.old/websocketpp/config/asio_no_tls.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/config/asio_no_tls.hpp rename to src/third_party/websocketpp.old/websocketpp/config/asio_no_tls.hpp diff --git a/src/third_party/websocketpp/websocketpp/config/asio_no_tls_client.hpp b/src/third_party/websocketpp.old/websocketpp/config/asio_no_tls_client.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/config/asio_no_tls_client.hpp rename to src/third_party/websocketpp.old/websocketpp/config/asio_no_tls_client.hpp diff --git a/src/third_party/websocketpp/websocketpp/config/boost_config.hpp b/src/third_party/websocketpp.old/websocketpp/config/boost_config.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/config/boost_config.hpp rename to src/third_party/websocketpp.old/websocketpp/config/boost_config.hpp diff --git a/src/third_party/websocketpp/websocketpp/config/core.hpp b/src/third_party/websocketpp.old/websocketpp/config/core.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/config/core.hpp rename to src/third_party/websocketpp.old/websocketpp/config/core.hpp diff --git a/src/third_party/websocketpp/websocketpp/config/core_client.hpp b/src/third_party/websocketpp.old/websocketpp/config/core_client.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/config/core_client.hpp rename to src/third_party/websocketpp.old/websocketpp/config/core_client.hpp diff --git a/src/third_party/websocketpp/websocketpp/config/debug.hpp b/src/third_party/websocketpp.old/websocketpp/config/debug.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/config/debug.hpp rename to src/third_party/websocketpp.old/websocketpp/config/debug.hpp diff --git a/src/third_party/websocketpp/websocketpp/config/debug_asio.hpp b/src/third_party/websocketpp.old/websocketpp/config/debug_asio.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/config/debug_asio.hpp rename to src/third_party/websocketpp.old/websocketpp/config/debug_asio.hpp diff --git a/src/third_party/websocketpp/websocketpp/config/debug_asio_no_tls.hpp b/src/third_party/websocketpp.old/websocketpp/config/debug_asio_no_tls.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/config/debug_asio_no_tls.hpp rename to src/third_party/websocketpp.old/websocketpp/config/debug_asio_no_tls.hpp diff --git a/src/third_party/websocketpp/websocketpp/config/minimal_client.hpp b/src/third_party/websocketpp.old/websocketpp/config/minimal_client.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/config/minimal_client.hpp rename to src/third_party/websocketpp.old/websocketpp/config/minimal_client.hpp diff --git a/src/third_party/websocketpp/websocketpp/config/minimal_server.hpp b/src/third_party/websocketpp.old/websocketpp/config/minimal_server.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/config/minimal_server.hpp rename to src/third_party/websocketpp.old/websocketpp/config/minimal_server.hpp diff --git a/src/third_party/websocketpp/websocketpp/connection.hpp b/src/third_party/websocketpp.old/websocketpp/connection.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/connection.hpp rename to src/third_party/websocketpp.old/websocketpp/connection.hpp diff --git a/src/third_party/websocketpp/websocketpp/connection_base.hpp b/src/third_party/websocketpp.old/websocketpp/connection_base.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/connection_base.hpp rename to src/third_party/websocketpp.old/websocketpp/connection_base.hpp diff --git a/src/third_party/websocketpp/websocketpp/endpoint.hpp b/src/third_party/websocketpp.old/websocketpp/endpoint.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/endpoint.hpp rename to src/third_party/websocketpp.old/websocketpp/endpoint.hpp diff --git a/src/third_party/websocketpp/websocketpp/endpoint_base.hpp b/src/third_party/websocketpp.old/websocketpp/endpoint_base.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/endpoint_base.hpp rename to src/third_party/websocketpp.old/websocketpp/endpoint_base.hpp diff --git a/src/third_party/websocketpp/websocketpp/error.hpp b/src/third_party/websocketpp.old/websocketpp/error.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/error.hpp rename to src/third_party/websocketpp.old/websocketpp/error.hpp diff --git a/src/third_party/websocketpp/websocketpp/extensions/extension.hpp b/src/third_party/websocketpp.old/websocketpp/extensions/extension.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/extensions/extension.hpp rename to src/third_party/websocketpp.old/websocketpp/extensions/extension.hpp diff --git a/src/third_party/websocketpp/websocketpp/extensions/permessage_deflate/disabled.hpp b/src/third_party/websocketpp.old/websocketpp/extensions/permessage_deflate/disabled.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/extensions/permessage_deflate/disabled.hpp rename to src/third_party/websocketpp.old/websocketpp/extensions/permessage_deflate/disabled.hpp diff --git a/src/third_party/websocketpp/websocketpp/extensions/permessage_deflate/enabled.hpp b/src/third_party/websocketpp.old/websocketpp/extensions/permessage_deflate/enabled.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/extensions/permessage_deflate/enabled.hpp rename to src/third_party/websocketpp.old/websocketpp/extensions/permessage_deflate/enabled.hpp diff --git a/src/third_party/websocketpp/websocketpp/frame.hpp b/src/third_party/websocketpp.old/websocketpp/frame.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/frame.hpp rename to src/third_party/websocketpp.old/websocketpp/frame.hpp diff --git a/src/third_party/websocketpp/websocketpp/http/constants.hpp b/src/third_party/websocketpp.old/websocketpp/http/constants.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/http/constants.hpp rename to src/third_party/websocketpp.old/websocketpp/http/constants.hpp diff --git a/src/third_party/websocketpp/websocketpp/http/impl/parser.hpp b/src/third_party/websocketpp.old/websocketpp/http/impl/parser.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/http/impl/parser.hpp rename to src/third_party/websocketpp.old/websocketpp/http/impl/parser.hpp diff --git a/src/third_party/websocketpp/websocketpp/http/impl/request.hpp b/src/third_party/websocketpp.old/websocketpp/http/impl/request.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/http/impl/request.hpp rename to src/third_party/websocketpp.old/websocketpp/http/impl/request.hpp diff --git a/src/third_party/websocketpp/websocketpp/http/impl/response.hpp b/src/third_party/websocketpp.old/websocketpp/http/impl/response.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/http/impl/response.hpp rename to src/third_party/websocketpp.old/websocketpp/http/impl/response.hpp diff --git a/src/third_party/websocketpp/websocketpp/http/parser.hpp b/src/third_party/websocketpp.old/websocketpp/http/parser.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/http/parser.hpp rename to src/third_party/websocketpp.old/websocketpp/http/parser.hpp diff --git a/src/third_party/websocketpp/websocketpp/http/request.hpp b/src/third_party/websocketpp.old/websocketpp/http/request.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/http/request.hpp rename to src/third_party/websocketpp.old/websocketpp/http/request.hpp diff --git a/src/third_party/websocketpp/websocketpp/http/response.hpp b/src/third_party/websocketpp.old/websocketpp/http/response.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/http/response.hpp rename to src/third_party/websocketpp.old/websocketpp/http/response.hpp diff --git a/src/third_party/websocketpp/websocketpp/impl/connection_impl.hpp b/src/third_party/websocketpp.old/websocketpp/impl/connection_impl.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/impl/connection_impl.hpp rename to src/third_party/websocketpp.old/websocketpp/impl/connection_impl.hpp diff --git a/src/third_party/websocketpp/websocketpp/impl/endpoint_impl.hpp b/src/third_party/websocketpp.old/websocketpp/impl/endpoint_impl.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/impl/endpoint_impl.hpp rename to src/third_party/websocketpp.old/websocketpp/impl/endpoint_impl.hpp diff --git a/src/third_party/websocketpp/websocketpp/impl/utilities_impl.hpp b/src/third_party/websocketpp.old/websocketpp/impl/utilities_impl.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/impl/utilities_impl.hpp rename to src/third_party/websocketpp.old/websocketpp/impl/utilities_impl.hpp diff --git a/src/third_party/websocketpp/websocketpp/logger/basic.hpp b/src/third_party/websocketpp.old/websocketpp/logger/basic.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/logger/basic.hpp rename to src/third_party/websocketpp.old/websocketpp/logger/basic.hpp diff --git a/src/third_party/websocketpp/websocketpp/logger/levels.hpp b/src/third_party/websocketpp.old/websocketpp/logger/levels.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/logger/levels.hpp rename to src/third_party/websocketpp.old/websocketpp/logger/levels.hpp diff --git a/src/third_party/websocketpp/websocketpp/logger/stub.hpp b/src/third_party/websocketpp.old/websocketpp/logger/stub.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/logger/stub.hpp rename to src/third_party/websocketpp.old/websocketpp/logger/stub.hpp diff --git a/src/third_party/websocketpp/websocketpp/logger/syslog.hpp b/src/third_party/websocketpp.old/websocketpp/logger/syslog.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/logger/syslog.hpp rename to src/third_party/websocketpp.old/websocketpp/logger/syslog.hpp diff --git a/src/third_party/websocketpp/websocketpp/message_buffer/alloc.hpp b/src/third_party/websocketpp.old/websocketpp/message_buffer/alloc.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/message_buffer/alloc.hpp rename to src/third_party/websocketpp.old/websocketpp/message_buffer/alloc.hpp diff --git a/src/third_party/websocketpp/websocketpp/message_buffer/message.hpp b/src/third_party/websocketpp.old/websocketpp/message_buffer/message.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/message_buffer/message.hpp rename to src/third_party/websocketpp.old/websocketpp/message_buffer/message.hpp diff --git a/src/third_party/websocketpp/websocketpp/message_buffer/pool.hpp b/src/third_party/websocketpp.old/websocketpp/message_buffer/pool.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/message_buffer/pool.hpp rename to src/third_party/websocketpp.old/websocketpp/message_buffer/pool.hpp diff --git a/src/third_party/websocketpp/websocketpp/processors/base.hpp b/src/third_party/websocketpp.old/websocketpp/processors/base.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/processors/base.hpp rename to src/third_party/websocketpp.old/websocketpp/processors/base.hpp diff --git a/src/third_party/websocketpp/websocketpp/processors/hybi00.hpp b/src/third_party/websocketpp.old/websocketpp/processors/hybi00.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/processors/hybi00.hpp rename to src/third_party/websocketpp.old/websocketpp/processors/hybi00.hpp diff --git a/src/third_party/websocketpp/websocketpp/processors/hybi07.hpp b/src/third_party/websocketpp.old/websocketpp/processors/hybi07.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/processors/hybi07.hpp rename to src/third_party/websocketpp.old/websocketpp/processors/hybi07.hpp diff --git a/src/third_party/websocketpp/websocketpp/processors/hybi08.hpp b/src/third_party/websocketpp.old/websocketpp/processors/hybi08.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/processors/hybi08.hpp rename to src/third_party/websocketpp.old/websocketpp/processors/hybi08.hpp diff --git a/src/third_party/websocketpp/websocketpp/processors/hybi13.hpp b/src/third_party/websocketpp.old/websocketpp/processors/hybi13.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/processors/hybi13.hpp rename to src/third_party/websocketpp.old/websocketpp/processors/hybi13.hpp diff --git a/src/third_party/websocketpp/websocketpp/processors/processor.hpp b/src/third_party/websocketpp.old/websocketpp/processors/processor.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/processors/processor.hpp rename to src/third_party/websocketpp.old/websocketpp/processors/processor.hpp diff --git a/src/third_party/websocketpp/websocketpp/random/none.hpp b/src/third_party/websocketpp.old/websocketpp/random/none.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/random/none.hpp rename to src/third_party/websocketpp.old/websocketpp/random/none.hpp diff --git a/src/third_party/websocketpp/websocketpp/random/random_device.hpp b/src/third_party/websocketpp.old/websocketpp/random/random_device.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/random/random_device.hpp rename to src/third_party/websocketpp.old/websocketpp/random/random_device.hpp diff --git a/src/third_party/websocketpp/websocketpp/roles/client_endpoint.hpp b/src/third_party/websocketpp.old/websocketpp/roles/client_endpoint.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/roles/client_endpoint.hpp rename to src/third_party/websocketpp.old/websocketpp/roles/client_endpoint.hpp diff --git a/src/third_party/websocketpp/websocketpp/roles/server_endpoint.hpp b/src/third_party/websocketpp.old/websocketpp/roles/server_endpoint.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/roles/server_endpoint.hpp rename to src/third_party/websocketpp.old/websocketpp/roles/server_endpoint.hpp diff --git a/src/third_party/websocketpp/websocketpp/server.hpp b/src/third_party/websocketpp.old/websocketpp/server.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/server.hpp rename to src/third_party/websocketpp.old/websocketpp/server.hpp diff --git a/src/third_party/websocketpp/websocketpp/sha1/sha1.hpp b/src/third_party/websocketpp.old/websocketpp/sha1/sha1.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/sha1/sha1.hpp rename to src/third_party/websocketpp.old/websocketpp/sha1/sha1.hpp diff --git a/src/third_party/websocketpp/websocketpp/transport/asio/base.hpp b/src/third_party/websocketpp.old/websocketpp/transport/asio/base.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/transport/asio/base.hpp rename to src/third_party/websocketpp.old/websocketpp/transport/asio/base.hpp diff --git a/src/third_party/websocketpp/websocketpp/transport/asio/connection.hpp b/src/third_party/websocketpp.old/websocketpp/transport/asio/connection.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/transport/asio/connection.hpp rename to src/third_party/websocketpp.old/websocketpp/transport/asio/connection.hpp diff --git a/src/third_party/websocketpp/websocketpp/transport/asio/endpoint.hpp b/src/third_party/websocketpp.old/websocketpp/transport/asio/endpoint.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/transport/asio/endpoint.hpp rename to src/third_party/websocketpp.old/websocketpp/transport/asio/endpoint.hpp diff --git a/src/third_party/websocketpp/websocketpp/transport/asio/security/base.hpp b/src/third_party/websocketpp.old/websocketpp/transport/asio/security/base.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/transport/asio/security/base.hpp rename to src/third_party/websocketpp.old/websocketpp/transport/asio/security/base.hpp diff --git a/src/third_party/websocketpp/websocketpp/transport/asio/security/none.hpp b/src/third_party/websocketpp.old/websocketpp/transport/asio/security/none.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/transport/asio/security/none.hpp rename to src/third_party/websocketpp.old/websocketpp/transport/asio/security/none.hpp diff --git a/src/third_party/websocketpp/websocketpp/transport/asio/security/tls.hpp b/src/third_party/websocketpp.old/websocketpp/transport/asio/security/tls.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/transport/asio/security/tls.hpp rename to src/third_party/websocketpp.old/websocketpp/transport/asio/security/tls.hpp diff --git a/src/third_party/websocketpp/websocketpp/transport/base/connection.hpp b/src/third_party/websocketpp.old/websocketpp/transport/base/connection.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/transport/base/connection.hpp rename to src/third_party/websocketpp.old/websocketpp/transport/base/connection.hpp diff --git a/src/third_party/websocketpp/websocketpp/transport/base/endpoint.hpp b/src/third_party/websocketpp.old/websocketpp/transport/base/endpoint.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/transport/base/endpoint.hpp rename to src/third_party/websocketpp.old/websocketpp/transport/base/endpoint.hpp diff --git a/src/third_party/websocketpp/websocketpp/transport/debug/base.hpp b/src/third_party/websocketpp.old/websocketpp/transport/debug/base.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/transport/debug/base.hpp rename to src/third_party/websocketpp.old/websocketpp/transport/debug/base.hpp diff --git a/src/third_party/websocketpp/websocketpp/transport/debug/connection.hpp b/src/third_party/websocketpp.old/websocketpp/transport/debug/connection.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/transport/debug/connection.hpp rename to src/third_party/websocketpp.old/websocketpp/transport/debug/connection.hpp diff --git a/src/third_party/websocketpp/websocketpp/transport/debug/endpoint.hpp b/src/third_party/websocketpp.old/websocketpp/transport/debug/endpoint.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/transport/debug/endpoint.hpp rename to src/third_party/websocketpp.old/websocketpp/transport/debug/endpoint.hpp diff --git a/src/third_party/websocketpp/websocketpp/transport/iostream/base.hpp b/src/third_party/websocketpp.old/websocketpp/transport/iostream/base.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/transport/iostream/base.hpp rename to src/third_party/websocketpp.old/websocketpp/transport/iostream/base.hpp diff --git a/src/third_party/websocketpp/websocketpp/transport/iostream/connection.hpp b/src/third_party/websocketpp.old/websocketpp/transport/iostream/connection.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/transport/iostream/connection.hpp rename to src/third_party/websocketpp.old/websocketpp/transport/iostream/connection.hpp diff --git a/src/third_party/websocketpp/websocketpp/transport/iostream/endpoint.hpp b/src/third_party/websocketpp.old/websocketpp/transport/iostream/endpoint.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/transport/iostream/endpoint.hpp rename to src/third_party/websocketpp.old/websocketpp/transport/iostream/endpoint.hpp diff --git a/src/third_party/websocketpp/websocketpp/transport/stub/base.hpp b/src/third_party/websocketpp.old/websocketpp/transport/stub/base.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/transport/stub/base.hpp rename to src/third_party/websocketpp.old/websocketpp/transport/stub/base.hpp diff --git a/src/third_party/websocketpp/websocketpp/transport/stub/connection.hpp b/src/third_party/websocketpp.old/websocketpp/transport/stub/connection.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/transport/stub/connection.hpp rename to src/third_party/websocketpp.old/websocketpp/transport/stub/connection.hpp diff --git a/src/third_party/websocketpp/websocketpp/transport/stub/endpoint.hpp b/src/third_party/websocketpp.old/websocketpp/transport/stub/endpoint.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/transport/stub/endpoint.hpp rename to src/third_party/websocketpp.old/websocketpp/transport/stub/endpoint.hpp diff --git a/src/third_party/websocketpp/websocketpp/uri.hpp b/src/third_party/websocketpp.old/websocketpp/uri.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/uri.hpp rename to src/third_party/websocketpp.old/websocketpp/uri.hpp diff --git a/src/third_party/websocketpp/websocketpp/utf8_validator.hpp b/src/third_party/websocketpp.old/websocketpp/utf8_validator.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/utf8_validator.hpp rename to src/third_party/websocketpp.old/websocketpp/utf8_validator.hpp diff --git a/src/third_party/websocketpp/websocketpp/utilities.hpp b/src/third_party/websocketpp.old/websocketpp/utilities.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/utilities.hpp rename to src/third_party/websocketpp.old/websocketpp/utilities.hpp diff --git a/src/third_party/websocketpp/websocketpp/version.hpp b/src/third_party/websocketpp.old/websocketpp/version.hpp similarity index 100% rename from src/third_party/websocketpp/websocketpp/version.hpp rename to src/third_party/websocketpp.old/websocketpp/version.hpp diff --git a/src/third_party/websocketpp/websocketpp-config.cmake b/src/third_party/websocketpp/websocketpp-config.cmake new file mode 100644 index 00000000..12729907 --- /dev/null +++ b/src/third_party/websocketpp/websocketpp-config.cmake @@ -0,0 +1,28 @@ +# - Config file for the websocketpp package +# It defines the following variables +# WEBSOCKETPP_FOUND - indicates that the module was found +# WEBSOCKETPP_INCLUDE_DIR - include directories + + +####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() ####### +####### Any changes to this file will be overwritten by the next CMake run #### +####### The input file was websocketpp-config.cmake.in ######## + +get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE) + +macro(set_and_check _var _file) + set(${_var} "${_file}") + if(NOT EXISTS "${_file}") + message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !") + endif() +endmacro() + +#################################################################################### +set_and_check(WEBSOCKETPP_INCLUDE_DIR "${PACKAGE_PREFIX_DIR}/include") +set(WEBSOCKETPP_FOUND TRUE) + +#This is a bit of a hack, but it works well. It also allows continued support of CMake 2.8 +if(${CMAKE_VERSION} VERSION_GREATER 3.0.0 OR ${CMAKE_VERSION} VERSION_EQUAL 3.0.0) + add_library(websocketpp::websocketpp INTERFACE IMPORTED) + set_target_properties(websocketpp::websocketpp PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${WEBSOCKETPP_INCLUDE_DIR}") +endif() diff --git a/src/third_party/websocketpp/websocketpp-configVersion.cmake b/src/third_party/websocketpp/websocketpp-configVersion.cmake new file mode 100644 index 00000000..ab001376 --- /dev/null +++ b/src/third_party/websocketpp/websocketpp-configVersion.cmake @@ -0,0 +1,52 @@ +# This is a basic version file for the Config-mode of find_package(). +# It is used by write_basic_package_version_file() as input file for configure_file() +# to create a version-file which can be installed along a config.cmake file. +# +# The created file sets PACKAGE_VERSION_EXACT if the current version string and +# the requested version string are exactly the same and it sets +# PACKAGE_VERSION_COMPATIBLE if the current version is equal to the requested version. +# The tweak version component is ignored. +# The variable CVF_VERSION must be set before calling configure_file(). + + +set(PACKAGE_VERSION "0.8.1") + +if("0.8.1" MATCHES "^([0-9]+\\.[0-9]+\\.[0-9]+)\\.") # strip the tweak version + set(CVF_VERSION_NO_TWEAK "${CMAKE_MATCH_1}") +else() + set(CVF_VERSION_NO_TWEAK "0.8.1") +endif() + +if(PACKAGE_FIND_VERSION MATCHES "^([0-9]+\\.[0-9]+\\.[0-9]+)\\.") # strip the tweak version + set(REQUESTED_VERSION_NO_TWEAK "${CMAKE_MATCH_1}") +else() + set(REQUESTED_VERSION_NO_TWEAK "${PACKAGE_FIND_VERSION}") +endif() + +if(REQUESTED_VERSION_NO_TWEAK STREQUAL CVF_VERSION_NO_TWEAK) + set(PACKAGE_VERSION_COMPATIBLE TRUE) +else() + set(PACKAGE_VERSION_COMPATIBLE FALSE) +endif() + +if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION) + set(PACKAGE_VERSION_EXACT TRUE) +endif() + + +# if the installed project requested no architecture check, don't perform the check +if("FALSE") + return() +endif() + +# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it: +if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "") + return() +endif() + +# check that the installed version has the same 32/64bit-ness as the one which is currently searching: +if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8") + math(EXPR installedBits "8 * 8") + set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)") + set(PACKAGE_VERSION_UNSUITABLE TRUE) +endif() diff --git a/tests/src/de/pokerth/protocol/ProtoBuf.java b/tests/src/de/pokerth/protocol/ProtoBuf.java index 91e40a82..4d630440 100644 --- a/tests/src/de/pokerth/protocol/ProtoBuf.java +++ b/tests/src/de/pokerth/protocol/ProtoBuf.java @@ -16,15 +16,15 @@ public final class ProtoBuf { /** * netGameCreated = 1; */ - netGameCreated(0, 1), + netGameCreated(1), /** * netGameStarted = 2; */ - netGameStarted(1, 2), + netGameStarted(2), /** * netGameClosed = 3; */ - netGameClosed(2, 3), + netGameClosed(3), ; /** @@ -41,9 +41,20 @@ public final class ProtoBuf { public static final int netGameClosed_VALUE = 3; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -56,17 +67,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + NetGameMode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public NetGameMode findValueByNumber(int number) { - return NetGameMode.valueOf(number); + return NetGameMode.forNumber(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 index, int value) { + private NetGameMode(int value) { this.value = value; } @@ -81,27 +107,27 @@ public final class ProtoBuf { /** * netStatePreflop = 0; */ - netStatePreflop(0, 0), + netStatePreflop(0), /** * netStateFlop = 1; */ - netStateFlop(1, 1), + netStateFlop(1), /** * netStateTurn = 2; */ - netStateTurn(2, 2), + netStateTurn(2), /** * netStateRiver = 3; */ - netStateRiver(3, 3), + netStateRiver(3), /** * netStatePreflopSmallBlind = 4; */ - netStatePreflopSmallBlind(4, 4), + netStatePreflopSmallBlind(4), /** * netStatePreflopBigBlind = 5; */ - netStatePreflopBigBlind(5, 5), + netStatePreflopBigBlind(5), ; /** @@ -130,9 +156,20 @@ public final class ProtoBuf { public static final int netStatePreflopBigBlind_VALUE = 5; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -148,17 +185,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + NetGameState> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public NetGameState findValueByNumber(int number) { - return NetGameState.valueOf(number); + return NetGameState.forNumber(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 index, int value) { + private NetGameState(int value) { this.value = value; } @@ -173,31 +225,31 @@ public final class ProtoBuf { /** * netActionNone = 0; */ - netActionNone(0, 0), + netActionNone(0), /** * netActionFold = 1; */ - netActionFold(1, 1), + netActionFold(1), /** * netActionCheck = 2; */ - netActionCheck(2, 2), + netActionCheck(2), /** * netActionCall = 3; */ - netActionCall(3, 3), + netActionCall(3), /** * netActionBet = 4; */ - netActionBet(4, 4), + netActionBet(4), /** * netActionRaise = 5; */ - netActionRaise(5, 5), + netActionRaise(5), /** * netActionAllIn = 6; */ - netActionAllIn(6, 6), + netActionAllIn(6), ; /** @@ -230,9 +282,20 @@ public final class ProtoBuf { public static final int netActionAllIn_VALUE = 6; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -249,17 +312,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + NetPlayerAction> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public NetPlayerAction findValueByNumber(int number) { - return NetPlayerAction.valueOf(number); + return NetPlayerAction.forNumber(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 index, int value) { + private NetPlayerAction(int value) { this.value = value; } @@ -274,15 +352,15 @@ public final class ProtoBuf { /** * netPlayerStateNormal = 0; */ - netPlayerStateNormal(0, 0), + netPlayerStateNormal(0), /** * netPlayerStateSessionInactive = 1; */ - netPlayerStateSessionInactive(1, 1), + netPlayerStateSessionInactive(1), /** * netPlayerStateNoMoney = 2; */ - netPlayerStateNoMoney(2, 2), + netPlayerStateNoMoney(2), ; /** @@ -299,9 +377,20 @@ public final class ProtoBuf { public static final int netPlayerStateNoMoney_VALUE = 2; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -314,17 +403,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + NetPlayerState> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public NetPlayerState findValueByNumber(int number) { - return NetPlayerState.valueOf(number); + return NetPlayerState.forNumber(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 index, int value) { + private NetPlayerState(int value) { this.value = value; } @@ -339,15 +443,15 @@ public final class ProtoBuf { /** * netPlayerRightsGuest = 1; */ - netPlayerRightsGuest(0, 1), + netPlayerRightsGuest(1), /** * netPlayerRightsNormal = 2; */ - netPlayerRightsNormal(1, 2), + netPlayerRightsNormal(2), /** * netPlayerRightsAdmin = 3; */ - netPlayerRightsAdmin(2, 3), + netPlayerRightsAdmin(3), ; /** @@ -364,9 +468,20 @@ public final class ProtoBuf { public static final int netPlayerRightsAdmin_VALUE = 3; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -379,17 +494,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + NetPlayerInfoRights> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public NetPlayerInfoRights findValueByNumber(int number) { - return NetPlayerInfoRights.valueOf(number); + return NetPlayerInfoRights.forNumber(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 index, int value) { + private NetPlayerInfoRights(int value) { this.value = value; } @@ -404,15 +534,15 @@ public final class ProtoBuf { /** * netAvatarImagePng = 1; */ - netAvatarImagePng(0, 1), + netAvatarImagePng(1), /** * netAvatarImageJpg = 2; */ - netAvatarImageJpg(1, 2), + netAvatarImageJpg(2), /** * netAvatarImageGif = 3; */ - netAvatarImageGif(2, 3), + netAvatarImageGif(3), ; /** @@ -429,9 +559,20 @@ public final class ProtoBuf { public static final int netAvatarImageGif_VALUE = 3; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -444,17 +585,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + NetAvatarType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public NetAvatarType findValueByNumber(int number) { - return NetAvatarType.valueOf(number); + return NetAvatarType.forNumber(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 index, int value) { + private NetAvatarType(int value) { this.value = value; } @@ -552,36 +708,36 @@ public final class ProtoBuf { int getProposedGuiSpeed(); /** - * required uint32 delayBetweenHands = 10; - * *
      * These are seconds
      * 
+ * + * required uint32 delayBetweenHands = 10; */ boolean hasDelayBetweenHands(); /** - * required uint32 delayBetweenHands = 10; - * *
      * These are seconds
      * 
+ * + * required uint32 delayBetweenHands = 10; */ int getDelayBetweenHands(); /** - * required uint32 playerActionTimeout = 11; - * *
      * These are seconds
      * 
+ * + * required uint32 playerActionTimeout = 11; */ boolean hasPlayerActionTimeout(); /** - * required uint32 playerActionTimeout = 11; - * *
      * These are seconds
      * 
+ * + * required uint32 playerActionTimeout = 11; */ int getPlayerActionTimeout(); @@ -628,202 +784,19 @@ public final class ProtoBuf { /** * Protobuf type {@code NetGameInfo} */ - public static final class NetGameInfo extends - com.google.protobuf.GeneratedMessageLite implements + public static final class NetGameInfo extends + com.google.protobuf.GeneratedMessageLite< + NetGameInfo, NetGameInfo.Builder> implements // @@protoc_insertion_point(message_implements:NetGameInfo) NetGameInfoOrBuilder { - // Use NetGameInfo.newBuilder() to construct. - private NetGameInfo(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private NetGameInfo() { + gameName_ = ""; + netGameType_ = 1; + raiseIntervalMode_ = 1; + endRaiseMode_ = 1; + manualBlinds_ = emptyIntList(); + allowSpectators_ = true; } - private NetGameInfo(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final NetGameInfo defaultInstance; - public static NetGameInfo getDefaultInstance() { - return defaultInstance; - } - - public NetGameInfo getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private NetGameInfo( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - gameName_ = bs; - 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) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - 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) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - 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) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - 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: { - if (!((mutable_bitField0_ & 0x00002000) == 0x00002000)) { - manualBlinds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00002000; - } - manualBlinds_.add(input.readUInt32()); - break; - } - case 114: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00002000) == 0x00002000) && input.getBytesUntilLimit() > 0) { - manualBlinds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00002000; - } - while (input.getBytesUntilLimit() > 0) { - manualBlinds_.add(input.readUInt32()); - } - input.popLimit(limit); - break; - } - case 120: { - bitField0_ |= 0x00002000; - allowSpectators_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00002000) == 0x00002000)) { - manualBlinds_ = java.util.Collections.unmodifiableList(manualBlinds_); - } - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public NetGameInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NetGameInfo(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - /** * Protobuf enum {@code NetGameInfo.NetGameType} */ @@ -832,19 +805,19 @@ public final class ProtoBuf { /** * normalGame = 1; */ - normalGame(0, 1), + normalGame(1), /** * registeredOnlyGame = 2; */ - registeredOnlyGame(1, 2), + registeredOnlyGame(2), /** * inviteOnlyGame = 3; */ - inviteOnlyGame(2, 3), + inviteOnlyGame(3), /** * rankingGame = 4; */ - rankingGame(3, 4), + rankingGame(4), ; /** @@ -865,9 +838,20 @@ public final class ProtoBuf { public static final int rankingGame_VALUE = 4; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -881,17 +865,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + NetGameType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public NetGameType findValueByNumber(int number) { - return NetGameType.valueOf(number); + return NetGameType.forNumber(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 index, int value) { + private NetGameType(int value) { this.value = value; } @@ -906,11 +905,11 @@ public final class ProtoBuf { /** * raiseOnHandNum = 1; */ - raiseOnHandNum(0, 1), + raiseOnHandNum(1), /** * raiseOnMinutes = 2; */ - raiseOnMinutes(1, 2), + raiseOnMinutes(2), ; /** @@ -923,9 +922,20 @@ public final class ProtoBuf { public static final int raiseOnMinutes_VALUE = 2; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -937,17 +947,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + RaiseIntervalMode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public RaiseIntervalMode findValueByNumber(int number) { - return RaiseIntervalMode.valueOf(number); + return RaiseIntervalMode.forNumber(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 index, int value) { + private RaiseIntervalMode(int value) { this.value = value; } @@ -962,15 +987,15 @@ public final class ProtoBuf { /** * doubleBlinds = 1; */ - doubleBlinds(0, 1), + doubleBlinds(1), /** * raiseByEndValue = 2; */ - raiseByEndValue(1, 2), + raiseByEndValue(2), /** * keepLastBlind = 3; */ - keepLastBlind(2, 3), + keepLastBlind(3), ; /** @@ -987,9 +1012,20 @@ public final class ProtoBuf { public static final int keepLastBlind_VALUE = 3; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -1002,17 +1038,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + EndRaiseMode> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public EndRaiseMode findValueByNumber(int number) { - return EndRaiseMode.valueOf(number); + return EndRaiseMode.forNumber(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 index, int value) { + private EndRaiseMode(int value) { this.value = value; } @@ -1021,60 +1072,92 @@ public final class ProtoBuf { private int bitField0_; public static final int GAMENAME_FIELD_NUMBER = 1; - private java.lang.Object gameName_; + private java.lang.String gameName_; /** * required string gameName = 1; */ + @java.lang.Override public boolean hasGameName() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string gameName = 1; */ + @java.lang.Override public java.lang.String getGameName() { - java.lang.Object ref = gameName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - gameName_ = s; - } - return s; - } + return gameName_; } /** * required string gameName = 1; */ + @java.lang.Override public com.google.protobuf.ByteString getGameNameBytes() { - java.lang.Object ref = gameName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gameName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + 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 de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType netGameType_; + private int netGameType_; /** * required .NetGameInfo.NetGameType netGameType = 2; */ + @java.lang.Override public boolean hasNetGameType() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .NetGameInfo.NetGameType netGameType = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType getNetGameType() { - return netGameType_; + 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(); + } + bitField0_ |= 0x00000002; + netGameType_ = value.getNumber(); + } + /** + * required .NetGameInfo.NetGameType netGameType = 2; + */ + private void clearNetGameType() { + bitField0_ = (bitField0_ & ~0x00000002); + netGameType_ = 1; } public static final int MAXNUMPLAYERS_FIELD_NUMBER = 3; @@ -1082,29 +1165,65 @@ public final class ProtoBuf { /** * required uint32 maxNumPlayers = 3; */ + @java.lang.Override public boolean hasMaxNumPlayers() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * 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; + } public static final int RAISEINTERVALMODE_FIELD_NUMBER = 4; - private de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode raiseIntervalMode_; + private int raiseIntervalMode_; /** * required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; */ + @java.lang.Override public boolean hasRaiseIntervalMode() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode getRaiseIntervalMode() { - return raiseIntervalMode_; + 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; + } + /** + * 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; } public static final int RAISEEVERYHANDS_FIELD_NUMBER = 5; @@ -1112,44 +1231,96 @@ public final class ProtoBuf { /** * optional uint32 raiseEveryHands = 5; */ + @java.lang.Override public boolean hasRaiseEveryHands() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * 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; + } public static final int RAISEEVERYMINUTES_FIELD_NUMBER = 6; private int raiseEveryMinutes_; /** * optional uint32 raiseEveryMinutes = 6; */ + @java.lang.Override public boolean hasRaiseEveryMinutes() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * 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; + } public static final int ENDRAISEMODE_FIELD_NUMBER = 7; - private de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode endRaiseMode_; + private int endRaiseMode_; /** * required .NetGameInfo.EndRaiseMode endRaiseMode = 7; */ + @java.lang.Override public boolean hasEndRaiseMode() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * required .NetGameInfo.EndRaiseMode endRaiseMode = 7; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode getEndRaiseMode() { - return endRaiseMode_; + 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; + } + /** + * 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; } public static final int ENDRAISESMALLBLINDVALUE_FIELD_NUMBER = 8; @@ -1157,112 +1328,225 @@ public final class ProtoBuf { /** * optional uint32 endRaiseSmallBlindValue = 8; */ + @java.lang.Override public boolean hasEndRaiseSmallBlindValue() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * 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; + } public static final int PROPOSEDGUISPEED_FIELD_NUMBER = 9; private int proposedGuiSpeed_; /** * required uint32 proposedGuiSpeed = 9; */ + @java.lang.Override public boolean hasProposedGuiSpeed() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * 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; + } public static final int DELAYBETWEENHANDS_FIELD_NUMBER = 10; private int delayBetweenHands_; /** - * required uint32 delayBetweenHands = 10; - * *
      * These are seconds
      * 
+ * + * required uint32 delayBetweenHands = 10; */ + @java.lang.Override public boolean hasDelayBetweenHands() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** - * required uint32 delayBetweenHands = 10; - * *
      * 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; + } public static final int PLAYERACTIONTIMEOUT_FIELD_NUMBER = 11; private int playerActionTimeout_; /** - * required uint32 playerActionTimeout = 11; - * *
      * These are seconds
      * 
+ * + * required uint32 playerActionTimeout = 11; */ + @java.lang.Override public boolean hasPlayerActionTimeout() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** - * required uint32 playerActionTimeout = 11; - * *
      * 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; + } public static final int FIRSTSMALLBLIND_FIELD_NUMBER = 12; private int firstSmallBlind_; /** * required uint32 firstSmallBlind = 12; */ + @java.lang.Override public boolean hasFirstSmallBlind() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * 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; + } public static final int STARTMONEY_FIELD_NUMBER = 13; private int startMoney_; /** * required uint32 startMoney = 13; */ + @java.lang.Override public boolean hasStartMoney() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * 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; + } public static final int MANUALBLINDS_FIELD_NUMBER = 14; - private java.util.List manualBlinds_; + private com.google.protobuf.Internal.IntList manualBlinds_; /** * repeated uint32 manualBlinds = 14 [packed = true]; */ + @java.lang.Override public java.util.List getManualBlindsList() { return manualBlinds_; @@ -1270,209 +1554,197 @@ public final class ProtoBuf { /** * 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_.get(index); + return manualBlinds_.getInt(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(); + } 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) == 0x00002000); + return ((bitField0_ & 0x00002000) != 0); } /** * optional bool allowSpectators = 15 [default = true]; */ + @java.lang.Override public boolean getAllowSpectators() { return allowSpectators_; } - - 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(); + /** + * 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); allowSpectators_ = true; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - 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; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getGameNameBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeString(1, getGameName()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, netGameType_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, netGameType_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt32(3, maxNumPlayers_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeEnum(4, raiseIntervalMode_.getNumber()); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeEnum(4, raiseIntervalMode_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeUInt32(5, raiseEveryHands_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeUInt32(6, raiseEveryMinutes_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeEnum(7, endRaiseMode_.getNumber()); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeEnum(7, endRaiseMode_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeUInt32(8, endRaiseSmallBlindValue_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000100) != 0)) { output.writeUInt32(9, proposedGuiSpeed_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00000200) != 0)) { output.writeUInt32(10, delayBetweenHands_); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { + if (((bitField0_ & 0x00000400) != 0)) { output.writeUInt32(11, playerActionTimeout_); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { + if (((bitField0_ & 0x00000800) != 0)) { output.writeUInt32(12, firstSmallBlind_); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { + if (((bitField0_ & 0x00001000) != 0)) { output.writeUInt32(13, startMoney_); } if (getManualBlindsList().size() > 0) { - output.writeRawVarint32(114); - output.writeRawVarint32(manualBlindsMemoizedSerializedSize); + output.writeUInt32NoTag(114); + output.writeUInt32NoTag(manualBlindsMemoizedSerializedSize); } for (int i = 0; i < manualBlinds_.size(); i++) { - output.writeUInt32NoTag(manualBlinds_.get(i)); + output.writeUInt32NoTag(manualBlinds_.getInt(i)); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { + if (((bitField0_ & 0x00002000) != 0)) { output.writeBool(15, allowSpectators_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getGameNameBytes()); + .computeStringSize(1, getGameName()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, netGameType_.getNumber()); + .computeEnumSize(2, netGameType_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, maxNumPlayers_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, raiseIntervalMode_.getNumber()); + .computeEnumSize(4, raiseIntervalMode_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, raiseEveryHands_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, raiseEveryMinutes_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, endRaiseMode_.getNumber()); + .computeEnumSize(7, endRaiseMode_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(8, endRaiseSmallBlindValue_); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(9, proposedGuiSpeed_); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(10, delayBetweenHands_); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(11, playerActionTimeout_); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(12, firstSmallBlind_); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(13, startMoney_); } @@ -1480,7 +1752,7 @@ public final class ProtoBuf { int dataSize = 0; for (int i = 0; i < manualBlinds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(manualBlinds_.get(i)); + .computeUInt32SizeNoTag(manualBlinds_.getInt(i)); } size += dataSize; if (!getManualBlindsList().isEmpty()) { @@ -1490,406 +1762,147 @@ public final class ProtoBuf { } manualBlindsMemoizedSerializedSize = dataSize; } - if (((bitField0_ & 0x00002000) == 0x00002000)) { + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(15, allowSpectators_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.NetGameInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.NetGameInfo prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code NetGameInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.NetGameInfo, Builder> - implements + de.pokerth.protocol.ProtoBuf.NetGameInfo, Builder> implements // @@protoc_insertion_point(builder_implements:NetGameInfo) de.pokerth.protocol.ProtoBuf.NetGameInfoOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.NetGameInfo.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()) { - bitField0_ |= 0x00000001; - gameName_ = other.gameName_; - - } - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.NetGameInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.NetGameInfo) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object gameName_ = ""; /** * required string gameName = 1; */ + @java.lang.Override public boolean hasGameName() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameName(); } /** * required string gameName = 1; */ + @java.lang.Override public java.lang.String getGameName() { - java.lang.Object ref = gameName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - gameName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } + return instance.getGameName(); } /** * required string gameName = 1; */ + @java.lang.Override public com.google.protobuf.ByteString getGameNameBytes() { - java.lang.Object ref = gameName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gameName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + return instance.getGameNameBytes(); } /** * required string gameName = 1; */ public Builder setGameName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - gameName_ = value; - + copyOnWrite(); + instance.setGameName(value); return this; } /** * required string gameName = 1; */ public Builder clearGameName() { - bitField0_ = (bitField0_ & ~0x00000001); - gameName_ = getDefaultInstance().getGameName(); - + copyOnWrite(); + instance.clearGameName(); return this; } /** @@ -1897,483 +1910,453 @@ public final class ProtoBuf { */ public Builder setGameNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - gameName_ = value; - + copyOnWrite(); + instance.setGameNameBytes(value); return this; } - private de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType netGameType_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType.normalGame; /** * required .NetGameInfo.NetGameType netGameType = 2; */ + @java.lang.Override public boolean hasNetGameType() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasNetGameType(); } /** * required .NetGameInfo.NetGameType netGameType = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType getNetGameType() { - return netGameType_; + return instance.getNetGameType(); } /** * required .NetGameInfo.NetGameType netGameType = 2; */ public Builder setNetGameType(de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - netGameType_ = value; - + copyOnWrite(); + instance.setNetGameType(value); return this; } /** * required .NetGameInfo.NetGameType netGameType = 2; */ public Builder clearNetGameType() { - bitField0_ = (bitField0_ & ~0x00000002); - netGameType_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.NetGameType.normalGame; - + copyOnWrite(); + instance.clearNetGameType(); return this; } - private int maxNumPlayers_ ; /** * required uint32 maxNumPlayers = 3; */ + @java.lang.Override public boolean hasMaxNumPlayers() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasMaxNumPlayers(); } /** * required uint32 maxNumPlayers = 3; */ + @java.lang.Override public int getMaxNumPlayers() { - return maxNumPlayers_; + return instance.getMaxNumPlayers(); } /** * required uint32 maxNumPlayers = 3; */ public Builder setMaxNumPlayers(int value) { - bitField0_ |= 0x00000004; - maxNumPlayers_ = value; - + copyOnWrite(); + instance.setMaxNumPlayers(value); return this; } /** * required uint32 maxNumPlayers = 3; */ public Builder clearMaxNumPlayers() { - bitField0_ = (bitField0_ & ~0x00000004); - maxNumPlayers_ = 0; - + copyOnWrite(); + instance.clearMaxNumPlayers(); return this; } - private de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode raiseIntervalMode_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode.raiseOnHandNum; /** * required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; */ + @java.lang.Override public boolean hasRaiseIntervalMode() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return instance.hasRaiseIntervalMode(); } /** * required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode getRaiseIntervalMode() { - return raiseIntervalMode_; + return instance.getRaiseIntervalMode(); } /** * required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; */ public Builder setRaiseIntervalMode(de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - raiseIntervalMode_ = value; - + copyOnWrite(); + instance.setRaiseIntervalMode(value); return this; } /** * required .NetGameInfo.RaiseIntervalMode raiseIntervalMode = 4; */ public Builder clearRaiseIntervalMode() { - bitField0_ = (bitField0_ & ~0x00000008); - raiseIntervalMode_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.RaiseIntervalMode.raiseOnHandNum; - + copyOnWrite(); + instance.clearRaiseIntervalMode(); return this; } - private int raiseEveryHands_ ; /** * optional uint32 raiseEveryHands = 5; */ + @java.lang.Override public boolean hasRaiseEveryHands() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return instance.hasRaiseEveryHands(); } /** * optional uint32 raiseEveryHands = 5; */ + @java.lang.Override public int getRaiseEveryHands() { - return raiseEveryHands_; + return instance.getRaiseEveryHands(); } /** * optional uint32 raiseEveryHands = 5; */ public Builder setRaiseEveryHands(int value) { - bitField0_ |= 0x00000010; - raiseEveryHands_ = value; - + copyOnWrite(); + instance.setRaiseEveryHands(value); return this; } /** * optional uint32 raiseEveryHands = 5; */ public Builder clearRaiseEveryHands() { - bitField0_ = (bitField0_ & ~0x00000010); - raiseEveryHands_ = 0; - + copyOnWrite(); + instance.clearRaiseEveryHands(); return this; } - private int raiseEveryMinutes_ ; /** * optional uint32 raiseEveryMinutes = 6; */ + @java.lang.Override public boolean hasRaiseEveryMinutes() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return instance.hasRaiseEveryMinutes(); } /** * optional uint32 raiseEveryMinutes = 6; */ + @java.lang.Override public int getRaiseEveryMinutes() { - return raiseEveryMinutes_; + return instance.getRaiseEveryMinutes(); } /** * optional uint32 raiseEveryMinutes = 6; */ public Builder setRaiseEveryMinutes(int value) { - bitField0_ |= 0x00000020; - raiseEveryMinutes_ = value; - + copyOnWrite(); + instance.setRaiseEveryMinutes(value); return this; } /** * optional uint32 raiseEveryMinutes = 6; */ public Builder clearRaiseEveryMinutes() { - bitField0_ = (bitField0_ & ~0x00000020); - raiseEveryMinutes_ = 0; - + copyOnWrite(); + instance.clearRaiseEveryMinutes(); return this; } - private de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode endRaiseMode_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode.doubleBlinds; /** * required .NetGameInfo.EndRaiseMode endRaiseMode = 7; */ + @java.lang.Override public boolean hasEndRaiseMode() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return instance.hasEndRaiseMode(); } /** * required .NetGameInfo.EndRaiseMode endRaiseMode = 7; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode getEndRaiseMode() { - return endRaiseMode_; + return instance.getEndRaiseMode(); } /** * required .NetGameInfo.EndRaiseMode endRaiseMode = 7; */ public Builder setEndRaiseMode(de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - endRaiseMode_ = value; - + copyOnWrite(); + instance.setEndRaiseMode(value); return this; } /** * required .NetGameInfo.EndRaiseMode endRaiseMode = 7; */ public Builder clearEndRaiseMode() { - bitField0_ = (bitField0_ & ~0x00000040); - endRaiseMode_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.EndRaiseMode.doubleBlinds; - + copyOnWrite(); + instance.clearEndRaiseMode(); return this; } - private int endRaiseSmallBlindValue_ ; /** * optional uint32 endRaiseSmallBlindValue = 8; */ + @java.lang.Override public boolean hasEndRaiseSmallBlindValue() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return instance.hasEndRaiseSmallBlindValue(); } /** * optional uint32 endRaiseSmallBlindValue = 8; */ + @java.lang.Override public int getEndRaiseSmallBlindValue() { - return endRaiseSmallBlindValue_; + return instance.getEndRaiseSmallBlindValue(); } /** * optional uint32 endRaiseSmallBlindValue = 8; */ public Builder setEndRaiseSmallBlindValue(int value) { - bitField0_ |= 0x00000080; - endRaiseSmallBlindValue_ = value; - + copyOnWrite(); + instance.setEndRaiseSmallBlindValue(value); return this; } /** * optional uint32 endRaiseSmallBlindValue = 8; */ public Builder clearEndRaiseSmallBlindValue() { - bitField0_ = (bitField0_ & ~0x00000080); - endRaiseSmallBlindValue_ = 0; - + copyOnWrite(); + instance.clearEndRaiseSmallBlindValue(); return this; } - private int proposedGuiSpeed_ ; /** * required uint32 proposedGuiSpeed = 9; */ + @java.lang.Override public boolean hasProposedGuiSpeed() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return instance.hasProposedGuiSpeed(); } /** * required uint32 proposedGuiSpeed = 9; */ + @java.lang.Override public int getProposedGuiSpeed() { - return proposedGuiSpeed_; + return instance.getProposedGuiSpeed(); } /** * required uint32 proposedGuiSpeed = 9; */ public Builder setProposedGuiSpeed(int value) { - bitField0_ |= 0x00000100; - proposedGuiSpeed_ = value; - + copyOnWrite(); + instance.setProposedGuiSpeed(value); return this; } /** * required uint32 proposedGuiSpeed = 9; */ public Builder clearProposedGuiSpeed() { - bitField0_ = (bitField0_ & ~0x00000100); - proposedGuiSpeed_ = 0; - + copyOnWrite(); + instance.clearProposedGuiSpeed(); return this; } - private int delayBetweenHands_ ; /** - * required uint32 delayBetweenHands = 10; - * *
        * These are seconds
        * 
+ * + * required uint32 delayBetweenHands = 10; */ + @java.lang.Override public boolean hasDelayBetweenHands() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return instance.hasDelayBetweenHands(); } /** - * required uint32 delayBetweenHands = 10; - * *
        * These are seconds
        * 
+ * + * required uint32 delayBetweenHands = 10; */ + @java.lang.Override public int getDelayBetweenHands() { - return delayBetweenHands_; + return instance.getDelayBetweenHands(); } /** - * required uint32 delayBetweenHands = 10; - * *
        * These are seconds
        * 
+ * + * required uint32 delayBetweenHands = 10; */ public Builder setDelayBetweenHands(int value) { - bitField0_ |= 0x00000200; - delayBetweenHands_ = value; - + copyOnWrite(); + instance.setDelayBetweenHands(value); return this; } /** - * required uint32 delayBetweenHands = 10; - * *
        * These are seconds
        * 
+ * + * required uint32 delayBetweenHands = 10; */ public Builder clearDelayBetweenHands() { - bitField0_ = (bitField0_ & ~0x00000200); - delayBetweenHands_ = 0; - + copyOnWrite(); + instance.clearDelayBetweenHands(); return this; } - private int playerActionTimeout_ ; /** - * required uint32 playerActionTimeout = 11; - * *
        * These are seconds
        * 
+ * + * required uint32 playerActionTimeout = 11; */ + @java.lang.Override public boolean hasPlayerActionTimeout() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return instance.hasPlayerActionTimeout(); } /** - * required uint32 playerActionTimeout = 11; - * *
        * These are seconds
        * 
+ * + * required uint32 playerActionTimeout = 11; */ + @java.lang.Override public int getPlayerActionTimeout() { - return playerActionTimeout_; + return instance.getPlayerActionTimeout(); } /** - * required uint32 playerActionTimeout = 11; - * *
        * These are seconds
        * 
+ * + * required uint32 playerActionTimeout = 11; */ public Builder setPlayerActionTimeout(int value) { - bitField0_ |= 0x00000400; - playerActionTimeout_ = value; - + copyOnWrite(); + instance.setPlayerActionTimeout(value); return this; } /** - * required uint32 playerActionTimeout = 11; - * *
        * These are seconds
        * 
+ * + * required uint32 playerActionTimeout = 11; */ public Builder clearPlayerActionTimeout() { - bitField0_ = (bitField0_ & ~0x00000400); - playerActionTimeout_ = 0; - + copyOnWrite(); + instance.clearPlayerActionTimeout(); return this; } - private int firstSmallBlind_ ; /** * required uint32 firstSmallBlind = 12; */ + @java.lang.Override public boolean hasFirstSmallBlind() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return instance.hasFirstSmallBlind(); } /** * required uint32 firstSmallBlind = 12; */ + @java.lang.Override public int getFirstSmallBlind() { - return firstSmallBlind_; + return instance.getFirstSmallBlind(); } /** * required uint32 firstSmallBlind = 12; */ public Builder setFirstSmallBlind(int value) { - bitField0_ |= 0x00000800; - firstSmallBlind_ = value; - + copyOnWrite(); + instance.setFirstSmallBlind(value); return this; } /** * required uint32 firstSmallBlind = 12; */ public Builder clearFirstSmallBlind() { - bitField0_ = (bitField0_ & ~0x00000800); - firstSmallBlind_ = 0; - + copyOnWrite(); + instance.clearFirstSmallBlind(); return this; } - private int startMoney_ ; /** * required uint32 startMoney = 13; */ + @java.lang.Override public boolean hasStartMoney() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return instance.hasStartMoney(); } /** * required uint32 startMoney = 13; */ + @java.lang.Override public int getStartMoney() { - return startMoney_; + return instance.getStartMoney(); } /** * required uint32 startMoney = 13; */ public Builder setStartMoney(int value) { - bitField0_ |= 0x00001000; - startMoney_ = value; - + copyOnWrite(); + instance.setStartMoney(value); return this; } /** * required uint32 startMoney = 13; */ public Builder clearStartMoney() { - bitField0_ = (bitField0_ & ~0x00001000); - startMoney_ = 0; - + copyOnWrite(); + instance.clearStartMoney(); return this; } - private java.util.List manualBlinds_ = java.util.Collections.emptyList(); - private void ensureManualBlindsIsMutable() { - if (!((bitField0_ & 0x00002000) == 0x00002000)) { - manualBlinds_ = new java.util.ArrayList(manualBlinds_); - bitField0_ |= 0x00002000; - } - } /** * repeated uint32 manualBlinds = 14 [packed = true]; */ + @java.lang.Override public java.util.List getManualBlindsList() { - return java.util.Collections.unmodifiableList(manualBlinds_); + return java.util.Collections.unmodifiableList( + instance.getManualBlindsList()); } /** * repeated uint32 manualBlinds = 14 [packed = true]; */ + @java.lang.Override public int getManualBlindsCount() { - return manualBlinds_.size(); + return instance.getManualBlindsCount(); } /** * repeated uint32 manualBlinds = 14 [packed = true]; */ + @java.lang.Override public int getManualBlinds(int index) { - return manualBlinds_.get(index); + return instance.getManualBlinds(index); } /** * repeated uint32 manualBlinds = 14 [packed = true]; */ public Builder setManualBlinds( int index, int value) { - ensureManualBlindsIsMutable(); - manualBlinds_.set(index, value); - + copyOnWrite(); + instance.setManualBlinds(index, value); return this; } /** * repeated uint32 manualBlinds = 14 [packed = true]; */ public Builder addManualBlinds(int value) { - ensureManualBlindsIsMutable(); - manualBlinds_.add(value); - + copyOnWrite(); + instance.addManualBlinds(value); return this; } /** @@ -2381,63 +2364,346 @@ public final class ProtoBuf { */ public Builder addAllManualBlinds( java.lang.Iterable values) { - ensureManualBlindsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, manualBlinds_); - + copyOnWrite(); + instance.addAllManualBlinds(values); return this; } /** * repeated uint32 manualBlinds = 14 [packed = true]; */ public Builder clearManualBlinds() { - manualBlinds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); - + copyOnWrite(); + instance.clearManualBlinds(); return this; } - private boolean allowSpectators_ = true; /** * optional bool allowSpectators = 15 [default = true]; */ + @java.lang.Override public boolean hasAllowSpectators() { - return ((bitField0_ & 0x00004000) == 0x00004000); + return instance.hasAllowSpectators(); } /** * optional bool allowSpectators = 15 [default = true]; */ + @java.lang.Override public boolean getAllowSpectators() { - return allowSpectators_; + return instance.getAllowSpectators(); } /** * optional bool allowSpectators = 15 [default = true]; */ public Builder setAllowSpectators(boolean value) { - bitField0_ |= 0x00004000; - allowSpectators_ = value; - + copyOnWrite(); + instance.setAllowSpectators(value); return this; } /** * optional bool allowSpectators = 15 [default = true]; */ public Builder clearAllowSpectators() { - bitField0_ = (bitField0_ & ~0x00004000); - allowSpectators_ = true; - + copyOnWrite(); + instance.clearAllowSpectators(); 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; - static { - defaultInstance = new NetGameInfo(true); - defaultInstance.initFields(); + 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(); + } } public interface PlayerResultOrBuilder extends @@ -2514,191 +2780,114 @@ public final class ProtoBuf { /** * Protobuf type {@code PlayerResult} */ - public static final class PlayerResult extends - com.google.protobuf.GeneratedMessageLite implements + public static final class PlayerResult extends + com.google.protobuf.GeneratedMessageLite< + PlayerResult, PlayerResult.Builder> implements // @@protoc_insertion_point(message_implements:PlayerResult) PlayerResultOrBuilder { - // Use PlayerResult.newBuilder() to construct. - private PlayerResult(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private PlayerResult() { + bestHandPosition_ = emptyIntList(); } - private PlayerResult(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final PlayerResult defaultInstance; - public static PlayerResult getDefaultInstance() { - return defaultInstance; - } - - public PlayerResult getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private PlayerResult( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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 (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - bestHandPosition_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - bestHandPosition_.add(input.readUInt32()); - break; - } - case 34: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { - bestHandPosition_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - while (input.getBytesUntilLimit() > 0) { - bestHandPosition_.add(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; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - bestHandPosition_ = java.util.Collections.unmodifiableList(bestHandPosition_); - } - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public PlayerResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerResult(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int PLAYERID_FIELD_NUMBER = 1; private int playerId_; /** * required uint32 playerId = 1; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int RESULTCARD1_FIELD_NUMBER = 2; private int resultCard1_; /** * required uint32 resultCard1 = 2; */ + @java.lang.Override public boolean hasResultCard1() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } public static final int RESULTCARD2_FIELD_NUMBER = 3; private int resultCard2_; /** * required uint32 resultCard2 = 3; */ + @java.lang.Override public boolean hasResultCard2() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * 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; + } public static final int BESTHANDPOSITION_FIELD_NUMBER = 4; - private java.util.List bestHandPosition_; + private com.google.protobuf.Internal.IntList bestHandPosition_; /** * repeated uint32 bestHandPosition = 4 [packed = true]; */ + @java.lang.Override public java.util.List getBestHandPositionList() { return bestHandPosition_; @@ -2706,147 +2895,195 @@ public final class ProtoBuf { /** * 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_.get(index); + return bestHandPosition_.getInt(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(); + } public static final int MONEYWON_FIELD_NUMBER = 5; private int moneyWon_; /** * required uint32 moneyWon = 5; */ + @java.lang.Override public boolean hasMoneyWon() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * 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; + } public static final int PLAYERMONEY_FIELD_NUMBER = 6; private int playerMoney_; /** * required uint32 playerMoney = 6; */ + @java.lang.Override public boolean hasPlayerMoney() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * 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; + } public static final int CARDSVALUE_FIELD_NUMBER = 7; private int cardsValue_; /** * optional uint32 cardsValue = 7; */ + @java.lang.Override public boolean hasCardsValue() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional uint32 cardsValue = 7; */ + @java.lang.Override public int getCardsValue() { return cardsValue_; } - - private void initFields() { - playerId_ = 0; - resultCard1_ = 0; - resultCard2_ = 0; - bestHandPosition_ = java.util.Collections.emptyList(); - moneyWon_ = 0; - playerMoney_ = 0; + /** + * optional uint32 cardsValue = 7; + */ + private void setCardsValue(int value) { + bitField0_ |= 0x00000020; + cardsValue_ = value; + } + /** + * optional uint32 cardsValue = 7; + */ + private void clearCardsValue() { + bitField0_ = (bitField0_ & ~0x00000020); cardsValue_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - 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; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, playerId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, resultCard1_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt32(3, resultCard2_); } if (getBestHandPositionList().size() > 0) { - output.writeRawVarint32(34); - output.writeRawVarint32(bestHandPositionMemoizedSerializedSize); + output.writeUInt32NoTag(34); + output.writeUInt32NoTag(bestHandPositionMemoizedSerializedSize); } for (int i = 0; i < bestHandPosition_.size(); i++) { - output.writeUInt32NoTag(bestHandPosition_.get(i)); + output.writeUInt32NoTag(bestHandPosition_.getInt(i)); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt32(5, moneyWon_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeUInt32(6, playerMoney_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeUInt32(7, cardsValue_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, playerId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, resultCard1_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, resultCard2_); } @@ -2854,7 +3091,7 @@ public final class ProtoBuf { int dataSize = 0; for (int i = 0; i < bestHandPosition_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(bestHandPosition_.get(i)); + .computeUInt32SizeNoTag(bestHandPosition_.getInt(i)); } size += dataSize; if (!getBestHandPositionList().isEmpty()) { @@ -2864,399 +3101,249 @@ public final class ProtoBuf { } bestHandPositionMemoizedSerializedSize = dataSize; } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, moneyWon_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, playerMoney_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, cardsValue_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayerResult parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayerResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayerResult prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code PlayerResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.PlayerResult, Builder> - implements + de.pokerth.protocol.ProtoBuf.PlayerResult, Builder> implements // @@protoc_insertion_point(builder_implements:PlayerResult) de.pokerth.protocol.ProtoBuf.PlayerResultOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.PlayerResult.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.PlayerResult parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.PlayerResult) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int playerId_ ; /** * required uint32 playerId = 1; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasPlayerId(); } /** * required uint32 playerId = 1; */ + @java.lang.Override public int getPlayerId() { - return playerId_; + return instance.getPlayerId(); } /** * required uint32 playerId = 1; */ public Builder setPlayerId(int value) { - bitField0_ |= 0x00000001; - playerId_ = value; - + copyOnWrite(); + instance.setPlayerId(value); return this; } /** * required uint32 playerId = 1; */ public Builder clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000001); - playerId_ = 0; - + copyOnWrite(); + instance.clearPlayerId(); return this; } - private int resultCard1_ ; /** * required uint32 resultCard1 = 2; */ + @java.lang.Override public boolean hasResultCard1() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasResultCard1(); } /** * required uint32 resultCard1 = 2; */ + @java.lang.Override public int getResultCard1() { - return resultCard1_; + return instance.getResultCard1(); } /** * required uint32 resultCard1 = 2; */ public Builder setResultCard1(int value) { - bitField0_ |= 0x00000002; - resultCard1_ = value; - + copyOnWrite(); + instance.setResultCard1(value); return this; } /** * required uint32 resultCard1 = 2; */ public Builder clearResultCard1() { - bitField0_ = (bitField0_ & ~0x00000002); - resultCard1_ = 0; - + copyOnWrite(); + instance.clearResultCard1(); return this; } - private int resultCard2_ ; /** * required uint32 resultCard2 = 3; */ + @java.lang.Override public boolean hasResultCard2() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasResultCard2(); } /** * required uint32 resultCard2 = 3; */ + @java.lang.Override public int getResultCard2() { - return resultCard2_; + return instance.getResultCard2(); } /** * required uint32 resultCard2 = 3; */ public Builder setResultCard2(int value) { - bitField0_ |= 0x00000004; - resultCard2_ = value; - + copyOnWrite(); + instance.setResultCard2(value); return this; } /** * required uint32 resultCard2 = 3; */ public Builder clearResultCard2() { - bitField0_ = (bitField0_ & ~0x00000004); - resultCard2_ = 0; - + copyOnWrite(); + instance.clearResultCard2(); return this; } - private java.util.List bestHandPosition_ = java.util.Collections.emptyList(); - private void ensureBestHandPositionIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - bestHandPosition_ = new java.util.ArrayList(bestHandPosition_); - bitField0_ |= 0x00000008; - } - } /** * repeated uint32 bestHandPosition = 4 [packed = true]; */ + @java.lang.Override public java.util.List getBestHandPositionList() { - return java.util.Collections.unmodifiableList(bestHandPosition_); + return java.util.Collections.unmodifiableList( + instance.getBestHandPositionList()); } /** * repeated uint32 bestHandPosition = 4 [packed = true]; */ + @java.lang.Override public int getBestHandPositionCount() { - return bestHandPosition_.size(); + return instance.getBestHandPositionCount(); } /** * repeated uint32 bestHandPosition = 4 [packed = true]; */ + @java.lang.Override public int getBestHandPosition(int index) { - return bestHandPosition_.get(index); + return instance.getBestHandPosition(index); } /** * repeated uint32 bestHandPosition = 4 [packed = true]; */ public Builder setBestHandPosition( int index, int value) { - ensureBestHandPositionIsMutable(); - bestHandPosition_.set(index, value); - + copyOnWrite(); + instance.setBestHandPosition(index, value); return this; } /** * repeated uint32 bestHandPosition = 4 [packed = true]; */ public Builder addBestHandPosition(int value) { - ensureBestHandPositionIsMutable(); - bestHandPosition_.add(value); - + copyOnWrite(); + instance.addBestHandPosition(value); return this; } /** @@ -3264,127 +3351,313 @@ public final class ProtoBuf { */ public Builder addAllBestHandPosition( java.lang.Iterable values) { - ensureBestHandPositionIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, bestHandPosition_); - + copyOnWrite(); + instance.addAllBestHandPosition(values); return this; } /** * repeated uint32 bestHandPosition = 4 [packed = true]; */ public Builder clearBestHandPosition() { - bestHandPosition_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - + copyOnWrite(); + instance.clearBestHandPosition(); return this; } - private int moneyWon_ ; /** * required uint32 moneyWon = 5; */ + @java.lang.Override public boolean hasMoneyWon() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return instance.hasMoneyWon(); } /** * required uint32 moneyWon = 5; */ + @java.lang.Override public int getMoneyWon() { - return moneyWon_; + return instance.getMoneyWon(); } /** * required uint32 moneyWon = 5; */ public Builder setMoneyWon(int value) { - bitField0_ |= 0x00000010; - moneyWon_ = value; - + copyOnWrite(); + instance.setMoneyWon(value); return this; } /** * required uint32 moneyWon = 5; */ public Builder clearMoneyWon() { - bitField0_ = (bitField0_ & ~0x00000010); - moneyWon_ = 0; - + copyOnWrite(); + instance.clearMoneyWon(); return this; } - private int playerMoney_ ; /** * required uint32 playerMoney = 6; */ + @java.lang.Override public boolean hasPlayerMoney() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return instance.hasPlayerMoney(); } /** * required uint32 playerMoney = 6; */ + @java.lang.Override public int getPlayerMoney() { - return playerMoney_; + return instance.getPlayerMoney(); } /** * required uint32 playerMoney = 6; */ public Builder setPlayerMoney(int value) { - bitField0_ |= 0x00000020; - playerMoney_ = value; - + copyOnWrite(); + instance.setPlayerMoney(value); return this; } /** * required uint32 playerMoney = 6; */ public Builder clearPlayerMoney() { - bitField0_ = (bitField0_ & ~0x00000020); - playerMoney_ = 0; - + copyOnWrite(); + instance.clearPlayerMoney(); return this; } - private int cardsValue_ ; /** * optional uint32 cardsValue = 7; */ + @java.lang.Override public boolean hasCardsValue() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return instance.hasCardsValue(); } /** * optional uint32 cardsValue = 7; */ + @java.lang.Override public int getCardsValue() { - return cardsValue_; + return instance.getCardsValue(); } /** * optional uint32 cardsValue = 7; */ public Builder setCardsValue(int value) { - bitField0_ |= 0x00000040; - cardsValue_ = value; - + copyOnWrite(); + instance.setCardsValue(value); return this; } /** * optional uint32 cardsValue = 7; */ public Builder clearCardsValue() { - bitField0_ = (bitField0_ & ~0x00000040); - cardsValue_ = 0; - + copyOnWrite(); + instance.clearCardsValue(); 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; - static { - defaultInstance = new PlayerResult(true); - defaultInstance.initFields(); + 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(); + } } public interface AnnounceMessageOrBuilder extends @@ -3439,134 +3712,13 @@ public final class ProtoBuf { /** * Protobuf type {@code AnnounceMessage} */ - public static final class AnnounceMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class AnnounceMessage extends + com.google.protobuf.GeneratedMessageLite< + AnnounceMessage, AnnounceMessage.Builder> implements // @@protoc_insertion_point(message_implements:AnnounceMessage) AnnounceMessageOrBuilder { - // Use AnnounceMessage.newBuilder() to construct. - private AnnounceMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private AnnounceMessage() { } - private AnnounceMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final AnnounceMessage defaultInstance; - public static AnnounceMessage getDefaultInstance() { - return defaultInstance; - } - - public AnnounceMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private AnnounceMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - 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) == 0x00000002)) { - 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.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000008; - serverType_ = value; - } - break; - } - case 40: { - bitField0_ |= 0x00000010; - numPlayersOnServer_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AnnounceMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnounceMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - /** * Protobuf enum {@code AnnounceMessage.ServerType} */ @@ -3575,15 +3727,15 @@ public final class ProtoBuf { /** * serverTypeLAN = 0; */ - serverTypeLAN(0, 0), + serverTypeLAN(0), /** * serverTypeInternetNoAuth = 1; */ - serverTypeInternetNoAuth(1, 1), + serverTypeInternetNoAuth(1), /** * serverTypeInternetAuth = 2; */ - serverTypeInternetAuth(2, 2), + serverTypeInternetAuth(2), ; /** @@ -3600,9 +3752,20 @@ public final class ProtoBuf { public static final int serverTypeInternetAuth_VALUE = 2; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -3615,17 +3778,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + ServerType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public ServerType findValueByNumber(int number) { - return ServerType.valueOf(number); + return ServerType.forNumber(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 index, int value) { + private ServerType(int value) { this.value = value; } @@ -3657,425 +3835,401 @@ public final class ProtoBuf { /** * Protobuf type {@code AnnounceMessage.Version} */ - public static final class Version extends - com.google.protobuf.GeneratedMessageLite implements + public static final class Version extends + com.google.protobuf.GeneratedMessageLite< + Version, Version.Builder> implements // @@protoc_insertion_point(message_implements:AnnounceMessage.Version) VersionOrBuilder { - // Use Version.newBuilder() to construct. - private Version(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private Version() { } - private Version(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final Version defaultInstance; - public static Version getDefaultInstance() { - return defaultInstance; - } - - public Version getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private Version( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - majorVersion_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - minorVersion_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public Version parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Version(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int MAJORVERSION_FIELD_NUMBER = 1; private int majorVersion_; /** * required uint32 majorVersion = 1; */ + @java.lang.Override public boolean hasMajorVersion() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int MINORVERSION_FIELD_NUMBER = 2; private int minorVersion_; /** * required uint32 minorVersion = 2; */ + @java.lang.Override public boolean hasMinorVersion() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required uint32 minorVersion = 2; */ + @java.lang.Override public int getMinorVersion() { return minorVersion_; } - - private void initFields() { - majorVersion_ = 0; + /** + * required uint32 minorVersion = 2; + */ + private void setMinorVersion(int value) { + bitField0_ |= 0x00000002; + minorVersion_ = value; + } + /** + * required uint32 minorVersion = 2; + */ + private void clearMinorVersion() { + bitField0_ = (bitField0_ & ~0x00000002); minorVersion_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasMajorVersion()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasMinorVersion()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, majorVersion_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, minorVersion_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, majorVersion_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, minorVersion_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } 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 PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code AnnounceMessage.Version} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version, Builder> - implements + de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version, Builder> implements // @@protoc_insertion_point(builder_implements:AnnounceMessage.Version) de.pokerth.protocol.ProtoBuf.AnnounceMessage.VersionOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int majorVersion_ ; /** * required uint32 majorVersion = 1; */ + @java.lang.Override public boolean hasMajorVersion() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasMajorVersion(); } /** * required uint32 majorVersion = 1; */ + @java.lang.Override public int getMajorVersion() { - return majorVersion_; + return instance.getMajorVersion(); } /** * required uint32 majorVersion = 1; */ public Builder setMajorVersion(int value) { - bitField0_ |= 0x00000001; - majorVersion_ = value; - + copyOnWrite(); + instance.setMajorVersion(value); return this; } /** * required uint32 majorVersion = 1; */ public Builder clearMajorVersion() { - bitField0_ = (bitField0_ & ~0x00000001); - majorVersion_ = 0; - + copyOnWrite(); + instance.clearMajorVersion(); return this; } - private int minorVersion_ ; /** * required uint32 minorVersion = 2; */ + @java.lang.Override public boolean hasMinorVersion() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasMinorVersion(); } /** * required uint32 minorVersion = 2; */ + @java.lang.Override public int getMinorVersion() { - return minorVersion_; + return instance.getMinorVersion(); } /** * required uint32 minorVersion = 2; */ public Builder setMinorVersion(int value) { - bitField0_ |= 0x00000002; - minorVersion_ = value; - + copyOnWrite(); + instance.setMinorVersion(value); return this; } /** * required uint32 minorVersion = 2; */ public Builder clearMinorVersion() { - bitField0_ = (bitField0_ & ~0x00000002); - minorVersion_ = 0; - + copyOnWrite(); + instance.clearMinorVersion(); 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; - static { - defaultInstance = new Version(true); - defaultInstance.initFields(); + 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(); + } } private int bitField0_; @@ -4084,14 +4238,57 @@ public final class ProtoBuf { /** * required .AnnounceMessage.Version protocolVersion = 1; */ + @java.lang.Override public boolean hasProtocolVersion() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .AnnounceMessage.Version protocolVersion = 1; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getProtocolVersion() { - return protocolVersion_; + return protocolVersion_ == null ? de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance() : 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); } public static final int LATESTGAMEVERSION_FIELD_NUMBER = 2; @@ -4099,14 +4296,57 @@ public final class ProtoBuf { /** * required .AnnounceMessage.Version latestGameVersion = 2; */ + @java.lang.Override public boolean hasLatestGameVersion() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .AnnounceMessage.Version latestGameVersion = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getLatestGameVersion() { - return latestGameVersion_; + return latestGameVersion_ == null ? de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance() : 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); } public static final int LATESTBETAREVISION_FIELD_NUMBER = 3; @@ -4114,29 +4354,65 @@ public final class ProtoBuf { /** * required uint32 latestBetaRevision = 3; */ + @java.lang.Override public boolean hasLatestBetaRevision() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * 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; + } public static final int SERVERTYPE_FIELD_NUMBER = 4; - private de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType serverType_; + private int serverType_; /** * required .AnnounceMessage.ServerType serverType = 4; */ + @java.lang.Override public boolean hasServerType() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required .AnnounceMessage.ServerType serverType = 4; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType getServerType() { - return serverType_; + 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; + } + /** + * 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; } public static final int NUMPLAYERSONSERVER_FIELD_NUMBER = 5; @@ -4144,560 +4420,559 @@ public final class ProtoBuf { /** * required uint32 numPlayersOnServer = 5; */ + @java.lang.Override public boolean hasNumPlayersOnServer() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required uint32 numPlayersOnServer = 5; */ + @java.lang.Override public int getNumPlayersOnServer() { return numPlayersOnServer_; } - - 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; + /** + * required uint32 numPlayersOnServer = 5; + */ + private void setNumPlayersOnServer(int value) { + bitField0_ |= 0x00000010; + numPlayersOnServer_ = value; + } + /** + * required uint32 numPlayersOnServer = 5; + */ + private void clearNumPlayersOnServer() { + bitField0_ = (bitField0_ & ~0x00000010); numPlayersOnServer_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - 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; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, protocolVersion_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getProtocolVersion()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, latestGameVersion_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getLatestGameVersion()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt32(3, latestBetaRevision_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeEnum(4, serverType_.getNumber()); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeEnum(4, serverType_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeUInt32(5, numPlayersOnServer_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, protocolVersion_); + .computeMessageSize(1, getProtocolVersion()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, latestGameVersion_); + .computeMessageSize(2, getLatestGameVersion()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, latestBetaRevision_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, serverType_.getNumber()); + .computeEnumSize(4, serverType_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, numPlayersOnServer_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AnnounceMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AnnounceMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code AnnounceMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AnnounceMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.AnnounceMessage, Builder> implements // @@protoc_insertion_point(builder_implements:AnnounceMessage) de.pokerth.protocol.ProtoBuf.AnnounceMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AnnounceMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - private void maybeForceBuilderInitialization() { - } - private static Builder create() { - return new Builder(); - } - 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); - } - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.AnnounceMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.AnnounceMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version protocolVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); /** * required .AnnounceMessage.Version protocolVersion = 1; */ + @java.lang.Override public boolean hasProtocolVersion() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasProtocolVersion(); } /** * required .AnnounceMessage.Version protocolVersion = 1; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getProtocolVersion() { - return protocolVersion_; + return instance.getProtocolVersion(); } /** * required .AnnounceMessage.Version protocolVersion = 1; */ public Builder setProtocolVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version value) { - if (value == null) { - throw new NullPointerException(); - } - protocolVersion_ = value; - - bitField0_ |= 0x00000001; + copyOnWrite(); + instance.setProtocolVersion(value); return this; - } + } /** * required .AnnounceMessage.Version protocolVersion = 1; */ public Builder setProtocolVersion( de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder builderForValue) { - protocolVersion_ = builderForValue.build(); - - bitField0_ |= 0x00000001; + copyOnWrite(); + instance.setProtocolVersion(builderForValue); return this; } /** * required .AnnounceMessage.Version protocolVersion = 1; */ public Builder mergeProtocolVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version value) { - 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; - } - - bitField0_ |= 0x00000001; + copyOnWrite(); + instance.mergeProtocolVersion(value); return this; } /** * required .AnnounceMessage.Version protocolVersion = 1; */ - public Builder clearProtocolVersion() { - protocolVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearProtocolVersion() { copyOnWrite(); + instance.clearProtocolVersion(); return this; } - private de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version latestGameVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); /** * required .AnnounceMessage.Version latestGameVersion = 2; */ + @java.lang.Override public boolean hasLatestGameVersion() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasLatestGameVersion(); } /** * required .AnnounceMessage.Version latestGameVersion = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getLatestGameVersion() { - return latestGameVersion_; + return instance.getLatestGameVersion(); } /** * required .AnnounceMessage.Version latestGameVersion = 2; */ public Builder setLatestGameVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version value) { - if (value == null) { - throw new NullPointerException(); - } - latestGameVersion_ = value; - - bitField0_ |= 0x00000002; + copyOnWrite(); + instance.setLatestGameVersion(value); return this; - } + } /** * required .AnnounceMessage.Version latestGameVersion = 2; */ public Builder setLatestGameVersion( de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder builderForValue) { - latestGameVersion_ = builderForValue.build(); - - bitField0_ |= 0x00000002; + copyOnWrite(); + instance.setLatestGameVersion(builderForValue); return this; } /** * required .AnnounceMessage.Version latestGameVersion = 2; */ public Builder mergeLatestGameVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version 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; + copyOnWrite(); + instance.mergeLatestGameVersion(value); return this; } /** * required .AnnounceMessage.Version latestGameVersion = 2; */ - public Builder clearLatestGameVersion() { - latestGameVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00000002); + public Builder clearLatestGameVersion() { copyOnWrite(); + instance.clearLatestGameVersion(); return this; } - private int latestBetaRevision_ ; /** * required uint32 latestBetaRevision = 3; */ + @java.lang.Override public boolean hasLatestBetaRevision() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasLatestBetaRevision(); } /** * required uint32 latestBetaRevision = 3; */ + @java.lang.Override public int getLatestBetaRevision() { - return latestBetaRevision_; + return instance.getLatestBetaRevision(); } /** * required uint32 latestBetaRevision = 3; */ public Builder setLatestBetaRevision(int value) { - bitField0_ |= 0x00000004; - latestBetaRevision_ = value; - + copyOnWrite(); + instance.setLatestBetaRevision(value); return this; } /** * required uint32 latestBetaRevision = 3; */ public Builder clearLatestBetaRevision() { - bitField0_ = (bitField0_ & ~0x00000004); - latestBetaRevision_ = 0; - + copyOnWrite(); + instance.clearLatestBetaRevision(); return this; } - private de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType serverType_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType.serverTypeLAN; /** * required .AnnounceMessage.ServerType serverType = 4; */ + @java.lang.Override public boolean hasServerType() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return instance.hasServerType(); } /** * required .AnnounceMessage.ServerType serverType = 4; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType getServerType() { - return serverType_; + return instance.getServerType(); } /** * required .AnnounceMessage.ServerType serverType = 4; */ public Builder setServerType(de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - serverType_ = value; - + copyOnWrite(); + instance.setServerType(value); return this; } /** * required .AnnounceMessage.ServerType serverType = 4; */ public Builder clearServerType() { - bitField0_ = (bitField0_ & ~0x00000008); - serverType_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.ServerType.serverTypeLAN; - + copyOnWrite(); + instance.clearServerType(); return this; } - private int numPlayersOnServer_ ; /** * required uint32 numPlayersOnServer = 5; */ + @java.lang.Override public boolean hasNumPlayersOnServer() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return instance.hasNumPlayersOnServer(); } /** * required uint32 numPlayersOnServer = 5; */ + @java.lang.Override public int getNumPlayersOnServer() { - return numPlayersOnServer_; + return instance.getNumPlayersOnServer(); } /** * required uint32 numPlayersOnServer = 5; */ public Builder setNumPlayersOnServer(int value) { - bitField0_ |= 0x00000010; - numPlayersOnServer_ = value; - + copyOnWrite(); + instance.setNumPlayersOnServer(value); return this; } /** * required uint32 numPlayersOnServer = 5; */ public Builder clearNumPlayersOnServer() { - bitField0_ = (bitField0_ & ~0x00000010); - numPlayersOnServer_ = 0; - + copyOnWrite(); + instance.clearNumPlayersOnServer(); 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; - static { - defaultInstance = new AnnounceMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface InitMessageOrBuilder extends @@ -4755,209 +5030,84 @@ public final class ProtoBuf { de.pokerth.protocol.ProtoBuf.InitMessage.LoginType getLogin(); /** - * optional string nickName = 6; - * *
      * Only used for guest login or unauthenticated login.
      * 
+ * + * optional string nickName = 6; */ boolean hasNickName(); /** - * optional string nickName = 6; - * *
      * Only used for guest login or unauthenticated login.
      * 
+ * + * optional string nickName = 6; */ java.lang.String getNickName(); /** - * optional string nickName = 6; - * *
      * Only used for guest login or unauthenticated login.
      * 
+ * + * optional string nickName = 6; */ com.google.protobuf.ByteString getNickNameBytes(); /** - * optional bytes clientUserData = 7; - * *
      * Authenticated login data is according to SCRAM SHA-1
      * 
+ * + * optional bytes clientUserData = 7; */ boolean hasClientUserData(); /** - * optional bytes clientUserData = 7; - * *
      * Authenticated login data is according to SCRAM SHA-1
      * 
+ * + * optional bytes clientUserData = 7; */ com.google.protobuf.ByteString getClientUserData(); /** - * optional bytes avatarHash = 8; - * *
      * Ignored for guest login.
      * 
+ * + * optional bytes avatarHash = 8; */ boolean hasAvatarHash(); /** - * optional bytes avatarHash = 8; - * *
      * Ignored for guest login.
      * 
+ * + * optional bytes avatarHash = 8; */ com.google.protobuf.ByteString getAvatarHash(); } /** - * Protobuf type {@code InitMessage} - * *
    * 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 implements + public static final class InitMessage extends + com.google.protobuf.GeneratedMessageLite< + InitMessage, InitMessage.Builder> implements // @@protoc_insertion_point(message_implements:InitMessage) InitMessageOrBuilder { - // Use InitMessage.newBuilder() to construct. - private InitMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private InitMessage() { + myLastSessionId_ = com.google.protobuf.ByteString.EMPTY; + authServerPassword_ = ""; + nickName_ = ""; + clientUserData_ = com.google.protobuf.ByteString.EMPTY; + avatarHash_ = com.google.protobuf.ByteString.EMPTY; } - private InitMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final InitMessage defaultInstance; - public static InitMessage getDefaultInstance() { - return defaultInstance; - } - - public InitMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private InitMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - authServerPassword_ = bs; - 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) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000010; - login_ = value; - } - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - nickName_ = bs; - break; - } - case 58: { - bitField0_ |= 0x00000040; - clientUserData_ = input.readBytes(); - break; - } - case 66: { - bitField0_ |= 0x00000080; - avatarHash_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public InitMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InitMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - /** * Protobuf enum {@code InitMessage.LoginType} */ @@ -4966,15 +5116,15 @@ public final class ProtoBuf { /** * guestLogin = 0; */ - guestLogin(0, 0), + guestLogin(0), /** * authenticatedLogin = 1; */ - authenticatedLogin(1, 1), + authenticatedLogin(1), /** * unauthenticatedLogin = 2; */ - unauthenticatedLogin(2, 2), + unauthenticatedLogin(2), ; /** @@ -4991,9 +5141,20 @@ public final class ProtoBuf { public static final int unauthenticatedLogin_VALUE = 2; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -5006,17 +5167,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + LoginType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public LoginType findValueByNumber(int number) { - return LoginType.valueOf(number); + return LoginType.forNumber(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 index, int value) { + private LoginType(int value) { this.value = value; } @@ -5029,14 +5205,57 @@ public final class ProtoBuf { /** * required .AnnounceMessage.Version requestedVersion = 1; */ + @java.lang.Override public boolean hasRequestedVersion() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .AnnounceMessage.Version requestedVersion = 1; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getRequestedVersion() { - return requestedVersion_; + return requestedVersion_ == null ? de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance() : 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); } public static final int BUILDID_FIELD_NUMBER = 2; @@ -5044,726 +5263,651 @@ public final class ProtoBuf { /** * required uint32 buildId = 2; */ + @java.lang.Override public boolean hasBuildId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } 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) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * 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(); + } public static final int AUTHSERVERPASSWORD_FIELD_NUMBER = 4; - private java.lang.Object authServerPassword_; + private java.lang.String authServerPassword_; /** * optional string authServerPassword = 4; */ + @java.lang.Override public boolean hasAuthServerPassword() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string authServerPassword = 4; */ + @java.lang.Override public java.lang.String getAuthServerPassword() { - java.lang.Object ref = authServerPassword_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - authServerPassword_ = s; - } - return s; - } + return authServerPassword_; } /** * optional string authServerPassword = 4; */ + @java.lang.Override public com.google.protobuf.ByteString getAuthServerPasswordBytes() { - java.lang.Object ref = authServerPassword_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - authServerPassword_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + 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 de.pokerth.protocol.ProtoBuf.InitMessage.LoginType login_; + private int login_; /** * required .InitMessage.LoginType login = 5; */ + @java.lang.Override public boolean hasLogin() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required .InitMessage.LoginType login = 5; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.InitMessage.LoginType getLogin() { - return login_; + 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(); + } + bitField0_ |= 0x00000010; + login_ = value.getNumber(); + } + /** + * required .InitMessage.LoginType login = 5; + */ + private void clearLogin() { + bitField0_ = (bitField0_ & ~0x00000010); + login_ = 0; } public static final int NICKNAME_FIELD_NUMBER = 6; - private java.lang.Object nickName_; + private java.lang.String nickName_; /** - * optional string nickName = 6; - * *
      * Only used for guest login or unauthenticated login.
      * 
+ * + * optional string nickName = 6; */ + @java.lang.Override public boolean hasNickName() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** - * optional string nickName = 6; - * *
      * Only used for guest login or unauthenticated login.
      * 
+ * + * optional string nickName = 6; */ + @java.lang.Override public java.lang.String getNickName() { - java.lang.Object ref = nickName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - nickName_ = s; - } - return s; - } + return nickName_; } /** - * optional string nickName = 6; - * *
      * Only used for guest login or unauthenticated login.
      * 
+ * + * optional string nickName = 6; */ + @java.lang.Override public com.google.protobuf.ByteString getNickNameBytes() { - java.lang.Object ref = nickName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nickName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + return com.google.protobuf.ByteString.copyFromUtf8(nickName_); + } + /** + *
+     * 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(); } public static final int CLIENTUSERDATA_FIELD_NUMBER = 7; private com.google.protobuf.ByteString clientUserData_; /** - * optional bytes clientUserData = 7; - * *
      * Authenticated login data is according to SCRAM SHA-1
      * 
+ * + * optional bytes clientUserData = 7; */ + @java.lang.Override public boolean hasClientUserData() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** - * optional bytes clientUserData = 7; - * *
      * 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(); + } public static final int AVATARHASH_FIELD_NUMBER = 8; private com.google.protobuf.ByteString avatarHash_; /** - * optional bytes avatarHash = 8; - * *
      * Ignored for guest login.
      * 
+ * + * optional bytes avatarHash = 8; */ + @java.lang.Override public boolean hasAvatarHash() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** - * optional bytes avatarHash = 8; - * *
      * Ignored for guest login.
      * 
+ * + * optional bytes avatarHash = 8; */ + @java.lang.Override public com.google.protobuf.ByteString getAvatarHash() { return avatarHash_; } - - 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 setAvatarHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + avatarHash_ = value; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - 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; + /** + *
+     * Ignored for guest login.
+     * 
+ * + * optional bytes avatarHash = 8; + */ + private void clearAvatarHash() { + bitField0_ = (bitField0_ & ~0x00000080); + avatarHash_ = getDefaultInstance().getAvatarHash(); } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, requestedVersion_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getRequestedVersion()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, buildId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeBytes(3, myLastSessionId_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getAuthServerPasswordBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeString(4, getAuthServerPassword()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeEnum(5, login_.getNumber()); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(5, login_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeBytes(6, getNickNameBytes()); + if (((bitField0_ & 0x00000020) != 0)) { + output.writeString(6, getNickName()); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeBytes(7, clientUserData_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeBytes(8, avatarHash_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requestedVersion_); + .computeMessageSize(1, getRequestedVersion()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, buildId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, myLastSessionId_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getAuthServerPasswordBytes()); + .computeStringSize(4, getAuthServerPassword()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, login_.getNumber()); + .computeEnumSize(5, login_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(6, getNickNameBytes()); + .computeStringSize(6, getNickName()); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, clientUserData_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(8, avatarHash_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.InitMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.InitMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.InitMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.InitMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** - * Protobuf type {@code InitMessage} - * *
      * buildId contains a constant build id (specific for Windows/Linux/Mac builds)
      * 
+ * + * Protobuf type {@code InitMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.InitMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.InitMessage, Builder> implements // @@protoc_insertion_point(builder_implements:InitMessage) de.pokerth.protocol.ProtoBuf.InitMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.InitMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - private void maybeForceBuilderInitialization() { - } - private static Builder create() { - return new Builder(); - } - 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); - } - 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()) { - bitField0_ |= 0x00000008; - authServerPassword_ = other.authServerPassword_; - - } - if (other.hasLogin()) { - setLogin(other.getLogin()); - } - if (other.hasNickName()) { - bitField0_ |= 0x00000020; - nickName_ = other.nickName_; - - } - if (other.hasClientUserData()) { - setClientUserData(other.getClientUserData()); - } - if (other.hasAvatarHash()) { - setAvatarHash(other.getAvatarHash()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.InitMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.InitMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version requestedVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); /** * required .AnnounceMessage.Version requestedVersion = 1; */ + @java.lang.Override public boolean hasRequestedVersion() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasRequestedVersion(); } /** * required .AnnounceMessage.Version requestedVersion = 1; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version getRequestedVersion() { - return requestedVersion_; + return instance.getRequestedVersion(); } /** * required .AnnounceMessage.Version requestedVersion = 1; */ public Builder setRequestedVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version value) { - if (value == null) { - throw new NullPointerException(); - } - requestedVersion_ = value; - - bitField0_ |= 0x00000001; + copyOnWrite(); + instance.setRequestedVersion(value); return this; - } + } /** * required .AnnounceMessage.Version requestedVersion = 1; */ public Builder setRequestedVersion( de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.Builder builderForValue) { - requestedVersion_ = builderForValue.build(); - - bitField0_ |= 0x00000001; + copyOnWrite(); + instance.setRequestedVersion(builderForValue); return this; } /** * required .AnnounceMessage.Version requestedVersion = 1; */ public Builder mergeRequestedVersion(de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version 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; + copyOnWrite(); + instance.mergeRequestedVersion(value); return this; } /** * required .AnnounceMessage.Version requestedVersion = 1; */ - public Builder clearRequestedVersion() { - requestedVersion_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.Version.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearRequestedVersion() { copyOnWrite(); + instance.clearRequestedVersion(); return this; } - private int buildId_ ; /** * required uint32 buildId = 2; */ + @java.lang.Override public boolean hasBuildId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasBuildId(); } /** * required uint32 buildId = 2; */ + @java.lang.Override public int getBuildId() { - return buildId_; + return instance.getBuildId(); } /** * required uint32 buildId = 2; */ public Builder setBuildId(int value) { - bitField0_ |= 0x00000002; - buildId_ = value; - + copyOnWrite(); + instance.setBuildId(value); return this; } /** * required uint32 buildId = 2; */ public Builder clearBuildId() { - bitField0_ = (bitField0_ & ~0x00000002); - buildId_ = 0; - + copyOnWrite(); + instance.clearBuildId(); return this; } - private com.google.protobuf.ByteString myLastSessionId_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes myLastSessionId = 3; */ + @java.lang.Override public boolean hasMyLastSessionId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasMyLastSessionId(); } /** * optional bytes myLastSessionId = 3; */ + @java.lang.Override public com.google.protobuf.ByteString getMyLastSessionId() { - return myLastSessionId_; + return instance.getMyLastSessionId(); } /** * optional bytes myLastSessionId = 3; */ public Builder setMyLastSessionId(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - myLastSessionId_ = value; - + copyOnWrite(); + instance.setMyLastSessionId(value); return this; } /** * optional bytes myLastSessionId = 3; */ public Builder clearMyLastSessionId() { - bitField0_ = (bitField0_ & ~0x00000004); - myLastSessionId_ = getDefaultInstance().getMyLastSessionId(); - + copyOnWrite(); + instance.clearMyLastSessionId(); return this; } - private java.lang.Object authServerPassword_ = ""; /** * optional string authServerPassword = 4; */ + @java.lang.Override public boolean hasAuthServerPassword() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return instance.hasAuthServerPassword(); } /** * optional string authServerPassword = 4; */ + @java.lang.Override public java.lang.String getAuthServerPassword() { - java.lang.Object ref = authServerPassword_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - authServerPassword_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } + return instance.getAuthServerPassword(); } /** * optional string authServerPassword = 4; */ + @java.lang.Override public com.google.protobuf.ByteString getAuthServerPasswordBytes() { - java.lang.Object ref = authServerPassword_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - authServerPassword_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + return instance.getAuthServerPasswordBytes(); } /** * optional string authServerPassword = 4; */ public Builder setAuthServerPassword( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - authServerPassword_ = value; - + copyOnWrite(); + instance.setAuthServerPassword(value); return this; } /** * optional string authServerPassword = 4; */ public Builder clearAuthServerPassword() { - bitField0_ = (bitField0_ & ~0x00000008); - authServerPassword_ = getDefaultInstance().getAuthServerPassword(); - + copyOnWrite(); + instance.clearAuthServerPassword(); return this; } /** @@ -5771,261 +5915,413 @@ public final class ProtoBuf { */ public Builder setAuthServerPasswordBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - authServerPassword_ = value; - + copyOnWrite(); + instance.setAuthServerPasswordBytes(value); return this; } - private de.pokerth.protocol.ProtoBuf.InitMessage.LoginType login_ = de.pokerth.protocol.ProtoBuf.InitMessage.LoginType.guestLogin; /** * required .InitMessage.LoginType login = 5; */ + @java.lang.Override public boolean hasLogin() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return instance.hasLogin(); } /** * required .InitMessage.LoginType login = 5; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.InitMessage.LoginType getLogin() { - return login_; + return instance.getLogin(); } /** * required .InitMessage.LoginType login = 5; */ public Builder setLogin(de.pokerth.protocol.ProtoBuf.InitMessage.LoginType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - login_ = value; - + copyOnWrite(); + instance.setLogin(value); return this; } /** * required .InitMessage.LoginType login = 5; */ public Builder clearLogin() { - bitField0_ = (bitField0_ & ~0x00000010); - login_ = de.pokerth.protocol.ProtoBuf.InitMessage.LoginType.guestLogin; - + copyOnWrite(); + instance.clearLogin(); return this; } - private java.lang.Object nickName_ = ""; /** - * optional string nickName = 6; - * *
        * Only used for guest login or unauthenticated login.
        * 
+ * + * optional string nickName = 6; */ + @java.lang.Override public boolean hasNickName() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return instance.hasNickName(); } /** - * optional string nickName = 6; - * *
        * Only used for guest login or unauthenticated login.
        * 
+ * + * optional string nickName = 6; */ + @java.lang.Override public java.lang.String getNickName() { - java.lang.Object ref = nickName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - nickName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } + return instance.getNickName(); } /** - * optional string nickName = 6; - * *
        * Only used for guest login or unauthenticated login.
        * 
+ * + * optional string nickName = 6; */ + @java.lang.Override public com.google.protobuf.ByteString getNickNameBytes() { - java.lang.Object ref = nickName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nickName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + return instance.getNickNameBytes(); } /** - * optional string nickName = 6; - * *
        * Only used for guest login or unauthenticated login.
        * 
+ * + * optional string nickName = 6; */ public Builder setNickName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - nickName_ = value; - + copyOnWrite(); + instance.setNickName(value); return this; } /** - * optional string nickName = 6; - * *
        * Only used for guest login or unauthenticated login.
        * 
+ * + * optional string nickName = 6; */ public Builder clearNickName() { - bitField0_ = (bitField0_ & ~0x00000020); - nickName_ = getDefaultInstance().getNickName(); - + copyOnWrite(); + instance.clearNickName(); return this; } /** - * optional string nickName = 6; - * *
        * Only used for guest login or unauthenticated login.
        * 
+ * + * optional string nickName = 6; */ public Builder setNickNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - nickName_ = value; - + copyOnWrite(); + instance.setNickNameBytes(value); return this; } - private com.google.protobuf.ByteString clientUserData_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes clientUserData = 7; - * *
        * Authenticated login data is according to SCRAM SHA-1
        * 
+ * + * optional bytes clientUserData = 7; */ + @java.lang.Override public boolean hasClientUserData() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return instance.hasClientUserData(); } /** - * optional bytes clientUserData = 7; - * *
        * Authenticated login data is according to SCRAM SHA-1
        * 
+ * + * optional bytes clientUserData = 7; */ + @java.lang.Override public com.google.protobuf.ByteString getClientUserData() { - return clientUserData_; + return instance.getClientUserData(); } /** - * optional bytes clientUserData = 7; - * *
        * Authenticated login data is according to SCRAM SHA-1
        * 
+ * + * optional bytes clientUserData = 7; */ public Builder setClientUserData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - clientUserData_ = value; - + copyOnWrite(); + instance.setClientUserData(value); return this; } /** - * optional bytes clientUserData = 7; - * *
        * Authenticated login data is according to SCRAM SHA-1
        * 
+ * + * optional bytes clientUserData = 7; */ public Builder clearClientUserData() { - bitField0_ = (bitField0_ & ~0x00000040); - clientUserData_ = getDefaultInstance().getClientUserData(); - + copyOnWrite(); + instance.clearClientUserData(); return this; } - private com.google.protobuf.ByteString avatarHash_ = com.google.protobuf.ByteString.EMPTY; /** - * optional bytes avatarHash = 8; - * *
        * Ignored for guest login.
        * 
+ * + * optional bytes avatarHash = 8; */ + @java.lang.Override public boolean hasAvatarHash() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return instance.hasAvatarHash(); } /** - * optional bytes avatarHash = 8; - * *
        * Ignored for guest login.
        * 
+ * + * optional bytes avatarHash = 8; */ + @java.lang.Override public com.google.protobuf.ByteString getAvatarHash() { - return avatarHash_; + return instance.getAvatarHash(); } /** - * optional bytes avatarHash = 8; - * *
        * Ignored for guest login.
        * 
+ * + * optional bytes avatarHash = 8; */ public Builder setAvatarHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - avatarHash_ = value; - + copyOnWrite(); + instance.setAvatarHash(value); return this; } /** - * optional bytes avatarHash = 8; - * *
        * Ignored for guest login.
        * 
+ * + * optional bytes avatarHash = 8; */ public Builder clearAvatarHash() { - bitField0_ = (bitField0_ & ~0x00000080); - avatarHash_ = getDefaultInstance().getAvatarHash(); - + copyOnWrite(); + instance.clearAvatarHash(); 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; - static { - defaultInstance = new InitMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface AuthServerChallengeMessageOrBuilder extends @@ -6044,351 +6340,325 @@ public final class ProtoBuf { /** * Protobuf type {@code AuthServerChallengeMessage} */ - public static final class AuthServerChallengeMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class AuthServerChallengeMessage extends + com.google.protobuf.GeneratedMessageLite< + AuthServerChallengeMessage, AuthServerChallengeMessage.Builder> implements // @@protoc_insertion_point(message_implements:AuthServerChallengeMessage) AuthServerChallengeMessageOrBuilder { - // Use AuthServerChallengeMessage.newBuilder() to construct. - private AuthServerChallengeMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private AuthServerChallengeMessage() { + serverChallenge_ = com.google.protobuf.ByteString.EMPTY; } - private AuthServerChallengeMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final AuthServerChallengeMessage defaultInstance; - public static AuthServerChallengeMessage getDefaultInstance() { - return defaultInstance; - } - - public AuthServerChallengeMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private AuthServerChallengeMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - serverChallenge_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AuthServerChallengeMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuthServerChallengeMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; 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) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bytes serverChallenge = 1; */ + @java.lang.Override public com.google.protobuf.ByteString getServerChallenge() { return serverChallenge_; } - - private void initFields() { - serverChallenge_ = com.google.protobuf.ByteString.EMPTY; + /** + * required bytes serverChallenge = 1; + */ + private void setServerChallenge(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + serverChallenge_ = value; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasServerChallenge()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + /** + * required bytes serverChallenge = 1; + */ + private void clearServerChallenge() { + bitField0_ = (bitField0_ & ~0x00000001); + serverChallenge_ = getDefaultInstance().getServerChallenge(); } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBytes(1, serverChallenge_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, serverChallenge_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code AuthServerChallengeMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage, Builder> implements // @@protoc_insertion_point(builder_implements:AuthServerChallengeMessage) de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.ByteString serverChallenge_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes serverChallenge = 1; */ + @java.lang.Override public boolean hasServerChallenge() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasServerChallenge(); } /** * required bytes serverChallenge = 1; */ + @java.lang.Override public com.google.protobuf.ByteString getServerChallenge() { - return serverChallenge_; + return instance.getServerChallenge(); } /** * required bytes serverChallenge = 1; */ public Builder setServerChallenge(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - serverChallenge_ = value; - + copyOnWrite(); + instance.setServerChallenge(value); return this; } /** * required bytes serverChallenge = 1; */ public Builder clearServerChallenge() { - bitField0_ = (bitField0_ & ~0x00000001); - serverChallenge_ = getDefaultInstance().getServerChallenge(); - + 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; - static { - defaultInstance = new AuthServerChallengeMessage(true); - defaultInstance.initFields(); + 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 @@ -6407,351 +6677,325 @@ public final class ProtoBuf { /** * Protobuf type {@code AuthClientResponseMessage} */ - public static final class AuthClientResponseMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class AuthClientResponseMessage extends + com.google.protobuf.GeneratedMessageLite< + AuthClientResponseMessage, AuthClientResponseMessage.Builder> implements // @@protoc_insertion_point(message_implements:AuthClientResponseMessage) AuthClientResponseMessageOrBuilder { - // Use AuthClientResponseMessage.newBuilder() to construct. - private AuthClientResponseMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private AuthClientResponseMessage() { + clientResponse_ = com.google.protobuf.ByteString.EMPTY; } - private AuthClientResponseMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final AuthClientResponseMessage defaultInstance; - public static AuthClientResponseMessage getDefaultInstance() { - return defaultInstance; - } - - public AuthClientResponseMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private AuthClientResponseMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - clientResponse_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AuthClientResponseMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuthClientResponseMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - 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) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bytes clientResponse = 1; */ + @java.lang.Override public com.google.protobuf.ByteString getClientResponse() { return clientResponse_; } - - private void initFields() { - clientResponse_ = com.google.protobuf.ByteString.EMPTY; + /** + * required bytes clientResponse = 1; + */ + private void setClientResponse(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + clientResponse_ = value; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasClientResponse()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + /** + * required bytes clientResponse = 1; + */ + private void clearClientResponse() { + bitField0_ = (bitField0_ & ~0x00000001); + clientResponse_ = getDefaultInstance().getClientResponse(); } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBytes(1, clientResponse_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, clientResponse_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code AuthClientResponseMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage, Builder> implements // @@protoc_insertion_point(builder_implements:AuthClientResponseMessage) de.pokerth.protocol.ProtoBuf.AuthClientResponseMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.ByteString clientResponse_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes clientResponse = 1; */ + @java.lang.Override public boolean hasClientResponse() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasClientResponse(); } /** * required bytes clientResponse = 1; */ + @java.lang.Override public com.google.protobuf.ByteString getClientResponse() { - return clientResponse_; + return instance.getClientResponse(); } /** * required bytes clientResponse = 1; */ public Builder setClientResponse(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - clientResponse_ = value; - + copyOnWrite(); + instance.setClientResponse(value); return this; } /** * required bytes clientResponse = 1; */ public Builder clearClientResponse() { - bitField0_ = (bitField0_ & ~0x00000001); - clientResponse_ = getDefaultInstance().getClientResponse(); - + 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; - static { - defaultInstance = new AuthClientResponseMessage(true); - defaultInstance.initFields(); + 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 @@ -6770,351 +7014,325 @@ public final class ProtoBuf { /** * Protobuf type {@code AuthServerVerificationMessage} */ - public static final class AuthServerVerificationMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class AuthServerVerificationMessage extends + com.google.protobuf.GeneratedMessageLite< + AuthServerVerificationMessage, AuthServerVerificationMessage.Builder> implements // @@protoc_insertion_point(message_implements:AuthServerVerificationMessage) AuthServerVerificationMessageOrBuilder { - // Use AuthServerVerificationMessage.newBuilder() to construct. - private AuthServerVerificationMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private AuthServerVerificationMessage() { + serverVerification_ = com.google.protobuf.ByteString.EMPTY; } - private AuthServerVerificationMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final AuthServerVerificationMessage defaultInstance; - public static AuthServerVerificationMessage getDefaultInstance() { - return defaultInstance; - } - - public AuthServerVerificationMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private AuthServerVerificationMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - bitField0_ |= 0x00000001; - serverVerification_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AuthServerVerificationMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuthServerVerificationMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - 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) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required bytes serverVerification = 1; */ + @java.lang.Override public com.google.protobuf.ByteString getServerVerification() { return serverVerification_; } - - private void initFields() { - serverVerification_ = com.google.protobuf.ByteString.EMPTY; + /** + * required bytes serverVerification = 1; + */ + private void setServerVerification(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + serverVerification_ = value; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasServerVerification()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + /** + * required bytes serverVerification = 1; + */ + private void clearServerVerification() { + bitField0_ = (bitField0_ & ~0x00000001); + serverVerification_ = getDefaultInstance().getServerVerification(); } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBytes(1, serverVerification_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, serverVerification_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code AuthServerVerificationMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage, Builder> implements // @@protoc_insertion_point(builder_implements:AuthServerVerificationMessage) de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.ByteString serverVerification_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes serverVerification = 1; */ + @java.lang.Override public boolean hasServerVerification() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasServerVerification(); } /** * required bytes serverVerification = 1; */ + @java.lang.Override public com.google.protobuf.ByteString getServerVerification() { - return serverVerification_; + return instance.getServerVerification(); } /** * required bytes serverVerification = 1; */ public Builder setServerVerification(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - serverVerification_ = value; - + copyOnWrite(); + instance.setServerVerification(value); return this; } /** * required bytes serverVerification = 1; */ public Builder clearServerVerification() { - bitField0_ = (bitField0_ & ~0x00000001); - serverVerification_ = getDefaultInstance().getServerVerification(); - + 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; - static { - defaultInstance = new AuthServerVerificationMessage(true); - defaultInstance.initFields(); + 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 @@ -7160,569 +7378,563 @@ public final class ProtoBuf { /** * Protobuf type {@code InitAckMessage} */ - public static final class InitAckMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class InitAckMessage extends + com.google.protobuf.GeneratedMessageLite< + InitAckMessage, InitAckMessage.Builder> implements // @@protoc_insertion_point(message_implements:InitAckMessage) InitAckMessageOrBuilder { - // Use InitAckMessage.newBuilder() to construct. - private InitAckMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private InitAckMessage() { + yourSessionId_ = com.google.protobuf.ByteString.EMPTY; + yourAvatarHash_ = com.google.protobuf.ByteString.EMPTY; } - private InitAckMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final InitAckMessage defaultInstance; - public static InitAckMessage getDefaultInstance() { - return defaultInstance; - } - - public InitAckMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private InitAckMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public InitAckMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InitAckMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - 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) == 0x00000001); + 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) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + yourSessionId_ = value; + } + /** + * required bytes yourSessionId = 1; + */ + private void clearYourSessionId() { + bitField0_ = (bitField0_ & ~0x00000001); + yourSessionId_ = getDefaultInstance().getYourSessionId(); + } public static final int YOURPLAYERID_FIELD_NUMBER = 2; private int yourPlayerId_; /** * required uint32 yourPlayerId = 2; */ + @java.lang.Override public boolean hasYourPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } 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) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * 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(); + } public static final int REJOINGAMEID_FIELD_NUMBER = 4; private int rejoinGameId_; /** * optional uint32 rejoinGameId = 4; */ + @java.lang.Override public boolean hasRejoinGameId() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional uint32 rejoinGameId = 4; */ + @java.lang.Override public int getRejoinGameId() { return rejoinGameId_; } - - private void initFields() { - yourSessionId_ = com.google.protobuf.ByteString.EMPTY; - yourPlayerId_ = 0; - yourAvatarHash_ = com.google.protobuf.ByteString.EMPTY; + /** + * optional uint32 rejoinGameId = 4; + */ + private void setRejoinGameId(int value) { + bitField0_ |= 0x00000008; + rejoinGameId_ = value; + } + /** + * optional uint32 rejoinGameId = 4; + */ + private void clearRejoinGameId() { + bitField0_ = (bitField0_ & ~0x00000008); rejoinGameId_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasYourSessionId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasYourPlayerId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeBytes(1, yourSessionId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, yourPlayerId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeBytes(3, yourAvatarHash_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt32(4, rejoinGameId_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, yourSessionId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, yourPlayerId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, yourAvatarHash_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, rejoinGameId_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.InitAckMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.InitAckMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code InitAckMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.InitAckMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.InitAckMessage, Builder> implements // @@protoc_insertion_point(builder_implements:InitAckMessage) de.pokerth.protocol.ProtoBuf.InitAckMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.InitAckMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.InitAckMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.InitAckMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.ByteString yourSessionId_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes yourSessionId = 1; */ + @java.lang.Override public boolean hasYourSessionId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasYourSessionId(); } /** * required bytes yourSessionId = 1; */ + @java.lang.Override public com.google.protobuf.ByteString getYourSessionId() { - return yourSessionId_; + return instance.getYourSessionId(); } /** * required bytes yourSessionId = 1; */ public Builder setYourSessionId(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - yourSessionId_ = value; - + copyOnWrite(); + instance.setYourSessionId(value); return this; } /** * required bytes yourSessionId = 1; */ public Builder clearYourSessionId() { - bitField0_ = (bitField0_ & ~0x00000001); - yourSessionId_ = getDefaultInstance().getYourSessionId(); - + copyOnWrite(); + instance.clearYourSessionId(); return this; } - private int yourPlayerId_ ; /** * required uint32 yourPlayerId = 2; */ + @java.lang.Override public boolean hasYourPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasYourPlayerId(); } /** * required uint32 yourPlayerId = 2; */ + @java.lang.Override public int getYourPlayerId() { - return yourPlayerId_; + return instance.getYourPlayerId(); } /** * required uint32 yourPlayerId = 2; */ public Builder setYourPlayerId(int value) { - bitField0_ |= 0x00000002; - yourPlayerId_ = value; - + copyOnWrite(); + instance.setYourPlayerId(value); return this; } /** * required uint32 yourPlayerId = 2; */ public Builder clearYourPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - yourPlayerId_ = 0; - + copyOnWrite(); + instance.clearYourPlayerId(); return this; } - private com.google.protobuf.ByteString yourAvatarHash_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes yourAvatarHash = 3; */ + @java.lang.Override public boolean hasYourAvatarHash() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasYourAvatarHash(); } /** * optional bytes yourAvatarHash = 3; */ + @java.lang.Override public com.google.protobuf.ByteString getYourAvatarHash() { - return yourAvatarHash_; + return instance.getYourAvatarHash(); } /** * optional bytes yourAvatarHash = 3; */ public Builder setYourAvatarHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - yourAvatarHash_ = value; - + copyOnWrite(); + instance.setYourAvatarHash(value); return this; } /** * optional bytes yourAvatarHash = 3; */ public Builder clearYourAvatarHash() { - bitField0_ = (bitField0_ & ~0x00000004); - yourAvatarHash_ = getDefaultInstance().getYourAvatarHash(); - + copyOnWrite(); + instance.clearYourAvatarHash(); return this; } - private int rejoinGameId_ ; /** * optional uint32 rejoinGameId = 4; */ + @java.lang.Override public boolean hasRejoinGameId() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return instance.hasRejoinGameId(); } /** * optional uint32 rejoinGameId = 4; */ + @java.lang.Override public int getRejoinGameId() { - return rejoinGameId_; + return instance.getRejoinGameId(); } /** * optional uint32 rejoinGameId = 4; */ public Builder setRejoinGameId(int value) { - bitField0_ |= 0x00000008; - rejoinGameId_ = value; - + copyOnWrite(); + instance.setRejoinGameId(value); return this; } /** * optional uint32 rejoinGameId = 4; */ public Builder clearRejoinGameId() { - bitField0_ = (bitField0_ & ~0x00000008); - rejoinGameId_ = 0; - + copyOnWrite(); + instance.clearRejoinGameId(); 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; - static { - defaultInstance = new InitAckMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface AvatarRequestMessageOrBuilder extends @@ -7750,428 +7962,405 @@ public final class ProtoBuf { /** * Protobuf type {@code AvatarRequestMessage} */ - public static final class AvatarRequestMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class AvatarRequestMessage extends + com.google.protobuf.GeneratedMessageLite< + AvatarRequestMessage, AvatarRequestMessage.Builder> implements // @@protoc_insertion_point(message_implements:AvatarRequestMessage) AvatarRequestMessageOrBuilder { - // Use AvatarRequestMessage.newBuilder() to construct. - private AvatarRequestMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private AvatarRequestMessage() { + avatarHash_ = com.google.protobuf.ByteString.EMPTY; } - private AvatarRequestMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final AvatarRequestMessage defaultInstance; - public static AvatarRequestMessage getDefaultInstance() { - return defaultInstance; - } - - public AvatarRequestMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private AvatarRequestMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - requestId_ = input.readUInt32(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - avatarHash_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AvatarRequestMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarRequestMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int REQUESTID_FIELD_NUMBER = 1; private int requestId_; /** * required uint32 requestId = 1; */ + @java.lang.Override public boolean hasRequestId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } 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) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bytes avatarHash = 2; */ + @java.lang.Override public com.google.protobuf.ByteString getAvatarHash() { return avatarHash_; } - - private void initFields() { - requestId_ = 0; - avatarHash_ = com.google.protobuf.ByteString.EMPTY; + /** + * required bytes avatarHash = 2; + */ + private void setAvatarHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + avatarHash_ = value; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasRequestId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasAvatarHash()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + /** + * required bytes avatarHash = 2; + */ + private void clearAvatarHash() { + bitField0_ = (bitField0_ & ~0x00000002); + avatarHash_ = getDefaultInstance().getAvatarHash(); } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, requestId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(2, avatarHash_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, requestId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, avatarHash_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AvatarRequestMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code AvatarRequestMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AvatarRequestMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.AvatarRequestMessage, Builder> implements // @@protoc_insertion_point(builder_implements:AvatarRequestMessage) de.pokerth.protocol.ProtoBuf.AvatarRequestMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.AvatarRequestMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.AvatarRequestMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int requestId_ ; /** * required uint32 requestId = 1; */ + @java.lang.Override public boolean hasRequestId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasRequestId(); } /** * required uint32 requestId = 1; */ + @java.lang.Override public int getRequestId() { - return requestId_; + return instance.getRequestId(); } /** * required uint32 requestId = 1; */ public Builder setRequestId(int value) { - bitField0_ |= 0x00000001; - requestId_ = value; - + copyOnWrite(); + instance.setRequestId(value); return this; } /** * required uint32 requestId = 1; */ public Builder clearRequestId() { - bitField0_ = (bitField0_ & ~0x00000001); - requestId_ = 0; - + copyOnWrite(); + instance.clearRequestId(); return this; } - private com.google.protobuf.ByteString avatarHash_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes avatarHash = 2; */ + @java.lang.Override public boolean hasAvatarHash() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasAvatarHash(); } /** * required bytes avatarHash = 2; */ + @java.lang.Override public com.google.protobuf.ByteString getAvatarHash() { - return avatarHash_; + return instance.getAvatarHash(); } /** * required bytes avatarHash = 2; */ public Builder setAvatarHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - avatarHash_ = value; - + copyOnWrite(); + instance.setAvatarHash(value); return this; } /** * required bytes avatarHash = 2; */ public Builder clearAvatarHash() { - bitField0_ = (bitField0_ & ~0x00000002); - avatarHash_ = getDefaultInstance().getAvatarHash(); - + copyOnWrite(); + instance.clearAvatarHash(); 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; - static { - defaultInstance = new AvatarRequestMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface AvatarHeaderMessageOrBuilder extends @@ -8208,137 +8397,79 @@ public final class ProtoBuf { /** * Protobuf type {@code AvatarHeaderMessage} */ - public static final class AvatarHeaderMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class AvatarHeaderMessage extends + com.google.protobuf.GeneratedMessageLite< + AvatarHeaderMessage, AvatarHeaderMessage.Builder> implements // @@protoc_insertion_point(message_implements:AvatarHeaderMessage) AvatarHeaderMessageOrBuilder { - // Use AvatarHeaderMessage.newBuilder() to construct. - private AvatarHeaderMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private AvatarHeaderMessage() { + avatarType_ = 1; } - private AvatarHeaderMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final AvatarHeaderMessage defaultInstance; - public static AvatarHeaderMessage getDefaultInstance() { - return defaultInstance; - } - - public AvatarHeaderMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private AvatarHeaderMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000002; - avatarType_ = value; - } - break; - } - case 24: { - bitField0_ |= 0x00000004; - avatarSize_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AvatarHeaderMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarHeaderMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int REQUESTID_FIELD_NUMBER = 1; private int requestId_; /** * required uint32 requestId = 1; */ + @java.lang.Override public boolean hasRequestId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int AVATARTYPE_FIELD_NUMBER = 2; - private de.pokerth.protocol.ProtoBuf.NetAvatarType avatarType_; + private int avatarType_; /** * required .NetAvatarType avatarType = 2; */ + @java.lang.Override public boolean hasAvatarType() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .NetAvatarType avatarType = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetAvatarType getAvatarType() { - return avatarType_; + de.pokerth.protocol.ProtoBuf.NetAvatarType result = de.pokerth.protocol.ProtoBuf.NetAvatarType.forNumber(avatarType_); + return result == null ? de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng : result; + } + /** + * 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; } public static final int AVATARSIZE_FIELD_NUMBER = 3; @@ -8346,374 +8477,411 @@ public final class ProtoBuf { /** * required uint32 avatarSize = 3; */ + @java.lang.Override public boolean hasAvatarSize() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required uint32 avatarSize = 3; */ + @java.lang.Override public int getAvatarSize() { return avatarSize_; } - - private void initFields() { - requestId_ = 0; - avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng; + /** + * required uint32 avatarSize = 3; + */ + private void setAvatarSize(int value) { + bitField0_ |= 0x00000004; + avatarSize_ = value; + } + /** + * required uint32 avatarSize = 3; + */ + private void clearAvatarSize() { + bitField0_ = (bitField0_ & ~0x00000004); avatarSize_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasRequestId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasAvatarType()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasAvatarSize()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, requestId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, avatarType_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, avatarType_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt32(3, avatarSize_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, requestId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, avatarType_.getNumber()); + .computeEnumSize(2, avatarType_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, avatarSize_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code AvatarHeaderMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage, Builder> implements // @@protoc_insertion_point(builder_implements:AvatarHeaderMessage) de.pokerth.protocol.ProtoBuf.AvatarHeaderMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int requestId_ ; /** * required uint32 requestId = 1; */ + @java.lang.Override public boolean hasRequestId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasRequestId(); } /** * required uint32 requestId = 1; */ + @java.lang.Override public int getRequestId() { - return requestId_; + return instance.getRequestId(); } /** * required uint32 requestId = 1; */ public Builder setRequestId(int value) { - bitField0_ |= 0x00000001; - requestId_ = value; - + copyOnWrite(); + instance.setRequestId(value); return this; } /** * required uint32 requestId = 1; */ public Builder clearRequestId() { - bitField0_ = (bitField0_ & ~0x00000001); - requestId_ = 0; - + copyOnWrite(); + instance.clearRequestId(); return this; } - private de.pokerth.protocol.ProtoBuf.NetAvatarType avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng; /** * required .NetAvatarType avatarType = 2; */ + @java.lang.Override public boolean hasAvatarType() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasAvatarType(); } /** * required .NetAvatarType avatarType = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetAvatarType getAvatarType() { - return avatarType_; + return instance.getAvatarType(); } /** * required .NetAvatarType avatarType = 2; */ public Builder setAvatarType(de.pokerth.protocol.ProtoBuf.NetAvatarType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - avatarType_ = value; - + copyOnWrite(); + instance.setAvatarType(value); return this; } /** * required .NetAvatarType avatarType = 2; */ public Builder clearAvatarType() { - bitField0_ = (bitField0_ & ~0x00000002); - avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng; - + copyOnWrite(); + instance.clearAvatarType(); return this; } - private int avatarSize_ ; /** * required uint32 avatarSize = 3; */ + @java.lang.Override public boolean hasAvatarSize() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasAvatarSize(); } /** * required uint32 avatarSize = 3; */ + @java.lang.Override public int getAvatarSize() { - return avatarSize_; + return instance.getAvatarSize(); } /** * required uint32 avatarSize = 3; */ public Builder setAvatarSize(int value) { - bitField0_ |= 0x00000004; - avatarSize_ = value; - + copyOnWrite(); + instance.setAvatarSize(value); return this; } /** * required uint32 avatarSize = 3; */ public Builder clearAvatarSize() { - bitField0_ = (bitField0_ & ~0x00000004); - avatarSize_ = 0; - + copyOnWrite(); + instance.clearAvatarSize(); 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; - static { - defaultInstance = new AvatarHeaderMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface AvatarDataMessageOrBuilder extends @@ -8741,428 +8909,405 @@ public final class ProtoBuf { /** * Protobuf type {@code AvatarDataMessage} */ - public static final class AvatarDataMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class AvatarDataMessage extends + com.google.protobuf.GeneratedMessageLite< + AvatarDataMessage, AvatarDataMessage.Builder> implements // @@protoc_insertion_point(message_implements:AvatarDataMessage) AvatarDataMessageOrBuilder { - // Use AvatarDataMessage.newBuilder() to construct. - private AvatarDataMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private AvatarDataMessage() { + avatarBlock_ = com.google.protobuf.ByteString.EMPTY; } - private AvatarDataMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final AvatarDataMessage defaultInstance; - public static AvatarDataMessage getDefaultInstance() { - return defaultInstance; - } - - public AvatarDataMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private AvatarDataMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - requestId_ = input.readUInt32(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - avatarBlock_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AvatarDataMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarDataMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int REQUESTID_FIELD_NUMBER = 1; private int requestId_; /** * required uint32 requestId = 1; */ + @java.lang.Override public boolean hasRequestId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } 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) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bytes avatarBlock = 2; */ + @java.lang.Override public com.google.protobuf.ByteString getAvatarBlock() { return avatarBlock_; } - - private void initFields() { - requestId_ = 0; - avatarBlock_ = com.google.protobuf.ByteString.EMPTY; + /** + * required bytes avatarBlock = 2; + */ + private void setAvatarBlock(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + avatarBlock_ = value; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasRequestId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasAvatarBlock()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + /** + * required bytes avatarBlock = 2; + */ + private void clearAvatarBlock() { + bitField0_ = (bitField0_ & ~0x00000002); + avatarBlock_ = getDefaultInstance().getAvatarBlock(); } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, requestId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(2, avatarBlock_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, requestId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, avatarBlock_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AvatarDataMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AvatarDataMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code AvatarDataMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AvatarDataMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.AvatarDataMessage, Builder> implements // @@protoc_insertion_point(builder_implements:AvatarDataMessage) de.pokerth.protocol.ProtoBuf.AvatarDataMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AvatarDataMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.AvatarDataMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.AvatarDataMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int requestId_ ; /** * required uint32 requestId = 1; */ + @java.lang.Override public boolean hasRequestId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasRequestId(); } /** * required uint32 requestId = 1; */ + @java.lang.Override public int getRequestId() { - return requestId_; + return instance.getRequestId(); } /** * required uint32 requestId = 1; */ public Builder setRequestId(int value) { - bitField0_ |= 0x00000001; - requestId_ = value; - + copyOnWrite(); + instance.setRequestId(value); return this; } /** * required uint32 requestId = 1; */ public Builder clearRequestId() { - bitField0_ = (bitField0_ & ~0x00000001); - requestId_ = 0; - + copyOnWrite(); + instance.clearRequestId(); return this; } - private com.google.protobuf.ByteString avatarBlock_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes avatarBlock = 2; */ + @java.lang.Override public boolean hasAvatarBlock() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasAvatarBlock(); } /** * required bytes avatarBlock = 2; */ + @java.lang.Override public com.google.protobuf.ByteString getAvatarBlock() { - return avatarBlock_; + return instance.getAvatarBlock(); } /** * required bytes avatarBlock = 2; */ public Builder setAvatarBlock(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - avatarBlock_ = value; - + copyOnWrite(); + instance.setAvatarBlock(value); return this; } /** * required bytes avatarBlock = 2; */ public Builder clearAvatarBlock() { - bitField0_ = (bitField0_ & ~0x00000002); - avatarBlock_ = getDefaultInstance().getAvatarBlock(); - + copyOnWrite(); + instance.clearAvatarBlock(); 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; - static { - defaultInstance = new AvatarDataMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface AvatarEndMessageOrBuilder extends @@ -9181,348 +9326,321 @@ public final class ProtoBuf { /** * Protobuf type {@code AvatarEndMessage} */ - public static final class AvatarEndMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class AvatarEndMessage extends + com.google.protobuf.GeneratedMessageLite< + AvatarEndMessage, AvatarEndMessage.Builder> implements // @@protoc_insertion_point(message_implements:AvatarEndMessage) AvatarEndMessageOrBuilder { - // Use AvatarEndMessage.newBuilder() to construct. - private AvatarEndMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private AvatarEndMessage() { } - private AvatarEndMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final AvatarEndMessage defaultInstance; - public static AvatarEndMessage getDefaultInstance() { - return defaultInstance; - } - - public AvatarEndMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private AvatarEndMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - requestId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AvatarEndMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarEndMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int REQUESTID_FIELD_NUMBER = 1; private int requestId_; /** * required uint32 requestId = 1; */ + @java.lang.Override public boolean hasRequestId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required uint32 requestId = 1; */ + @java.lang.Override public int getRequestId() { return requestId_; } - - private void initFields() { + /** + * 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; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasRequestId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, requestId_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, requestId_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AvatarEndMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AvatarEndMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code AvatarEndMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AvatarEndMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.AvatarEndMessage, Builder> implements // @@protoc_insertion_point(builder_implements:AvatarEndMessage) de.pokerth.protocol.ProtoBuf.AvatarEndMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AvatarEndMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.AvatarEndMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.AvatarEndMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int requestId_ ; /** * required uint32 requestId = 1; */ + @java.lang.Override public boolean hasRequestId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasRequestId(); } /** * required uint32 requestId = 1; */ + @java.lang.Override public int getRequestId() { - return requestId_; + return instance.getRequestId(); } /** * required uint32 requestId = 1; */ public Builder setRequestId(int value) { - bitField0_ |= 0x00000001; - requestId_ = value; - + copyOnWrite(); + instance.setRequestId(value); return this; } /** * required uint32 requestId = 1; */ public Builder clearRequestId() { - bitField0_ = (bitField0_ & ~0x00000001); - requestId_ = 0; - + copyOnWrite(); + instance.clearRequestId(); 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; - static { - defaultInstance = new AvatarEndMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface UnknownAvatarMessageOrBuilder extends @@ -9541,348 +9659,321 @@ public final class ProtoBuf { /** * Protobuf type {@code UnknownAvatarMessage} */ - public static final class UnknownAvatarMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class UnknownAvatarMessage extends + com.google.protobuf.GeneratedMessageLite< + UnknownAvatarMessage, UnknownAvatarMessage.Builder> implements // @@protoc_insertion_point(message_implements:UnknownAvatarMessage) UnknownAvatarMessageOrBuilder { - // Use UnknownAvatarMessage.newBuilder() to construct. - private UnknownAvatarMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private UnknownAvatarMessage() { } - private UnknownAvatarMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final UnknownAvatarMessage defaultInstance; - public static UnknownAvatarMessage getDefaultInstance() { - return defaultInstance; - } - - public UnknownAvatarMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private UnknownAvatarMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - requestId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public UnknownAvatarMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnknownAvatarMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int REQUESTID_FIELD_NUMBER = 1; private int requestId_; /** * required uint32 requestId = 1; */ + @java.lang.Override public boolean hasRequestId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required uint32 requestId = 1; */ + @java.lang.Override public int getRequestId() { return requestId_; } - - private void initFields() { + /** + * 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; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasRequestId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, requestId_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, requestId_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code UnknownAvatarMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage, Builder> implements // @@protoc_insertion_point(builder_implements:UnknownAvatarMessage) de.pokerth.protocol.ProtoBuf.UnknownAvatarMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int requestId_ ; /** * required uint32 requestId = 1; */ + @java.lang.Override public boolean hasRequestId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasRequestId(); } /** * required uint32 requestId = 1; */ + @java.lang.Override public int getRequestId() { - return requestId_; + return instance.getRequestId(); } /** * required uint32 requestId = 1; */ public Builder setRequestId(int value) { - bitField0_ |= 0x00000001; - requestId_ = value; - + copyOnWrite(); + instance.setRequestId(value); return this; } /** * required uint32 requestId = 1; */ public Builder clearRequestId() { - bitField0_ = (bitField0_ & ~0x00000001); - requestId_ = 0; - + copyOnWrite(); + instance.clearRequestId(); 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; - static { - defaultInstance = new UnknownAvatarMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface PlayerListMessageOrBuilder extends @@ -9910,103 +10001,13 @@ public final class ProtoBuf { /** * Protobuf type {@code PlayerListMessage} */ - public static final class PlayerListMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class PlayerListMessage extends + com.google.protobuf.GeneratedMessageLite< + PlayerListMessage, PlayerListMessage.Builder> implements // @@protoc_insertion_point(message_implements:PlayerListMessage) PlayerListMessageOrBuilder { - // Use PlayerListMessage.newBuilder() to construct. - private PlayerListMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private PlayerListMessage() { } - private PlayerListMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final PlayerListMessage defaultInstance; - public static PlayerListMessage getDefaultInstance() { - return defaultInstance; - } - - public PlayerListMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private PlayerListMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000002; - playerListNotification_ = value; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public PlayerListMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerListMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - /** * Protobuf enum {@code PlayerListMessage.PlayerListNotification} */ @@ -10015,11 +10016,11 @@ public final class ProtoBuf { /** * playerListNew = 0; */ - playerListNew(0, 0), + playerListNew(0), /** * playerListLeft = 1; */ - playerListLeft(1, 1), + playerListLeft(1), ; /** @@ -10032,9 +10033,20 @@ public final class ProtoBuf { public static final int playerListLeft_VALUE = 1; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -10046,17 +10058,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + PlayerListNotification> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public PlayerListNotification findValueByNumber(int number) { - return PlayerListNotification.valueOf(number); + return PlayerListNotification.forNumber(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 index, int value) { + private PlayerListNotification(int value) { this.value = value; } @@ -10069,332 +10096,397 @@ public final class ProtoBuf { /** * required uint32 playerId = 1; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PLAYERLISTNOTIFICATION_FIELD_NUMBER = 2; - private de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification playerListNotification_; + private int playerListNotification_; /** * required .PlayerListMessage.PlayerListNotification playerListNotification = 2; */ + @java.lang.Override public boolean hasPlayerListNotification() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .PlayerListMessage.PlayerListNotification playerListNotification = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification getPlayerListNotification() { - return playerListNotification_; + 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; } - - 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 true; - if (isInitialized == 0) return false; - - if (!hasPlayerId()) { - memoizedIsInitialized = 0; - return false; + /** + * required .PlayerListMessage.PlayerListNotification playerListNotification = 2; + */ + private void setPlayerListNotification(de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification value) { + if (value == null) { + throw new NullPointerException(); } - if (!hasPlayerListNotification()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + bitField0_ |= 0x00000002; + playerListNotification_ = value.getNumber(); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, playerId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, playerListNotification_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, playerListNotification_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, playerId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, playerListNotification_.getNumber()); + .computeEnumSize(2, playerListNotification_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayerListMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayerListMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code PlayerListMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.PlayerListMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.PlayerListMessage, Builder> implements // @@protoc_insertion_point(builder_implements:PlayerListMessage) de.pokerth.protocol.ProtoBuf.PlayerListMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.PlayerListMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.PlayerListMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.PlayerListMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int playerId_ ; /** * required uint32 playerId = 1; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasPlayerId(); } /** * required uint32 playerId = 1; */ + @java.lang.Override public int getPlayerId() { - return playerId_; + return instance.getPlayerId(); } /** * required uint32 playerId = 1; */ public Builder setPlayerId(int value) { - bitField0_ |= 0x00000001; - playerId_ = value; - + copyOnWrite(); + instance.setPlayerId(value); return this; } /** * required uint32 playerId = 1; */ public Builder clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000001); - playerId_ = 0; - + copyOnWrite(); + instance.clearPlayerId(); return this; } - private de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification playerListNotification_ = de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification.playerListNew; /** * required .PlayerListMessage.PlayerListNotification playerListNotification = 2; */ + @java.lang.Override public boolean hasPlayerListNotification() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPlayerListNotification(); } /** * required .PlayerListMessage.PlayerListNotification playerListNotification = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification getPlayerListNotification() { - return playerListNotification_; + return instance.getPlayerListNotification(); } /** * required .PlayerListMessage.PlayerListNotification playerListNotification = 2; */ public Builder setPlayerListNotification(de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - playerListNotification_ = value; - + copyOnWrite(); + instance.setPlayerListNotification(value); return this; } /** * required .PlayerListMessage.PlayerListNotification playerListNotification = 2; */ public Builder clearPlayerListNotification() { - bitField0_ = (bitField0_ & ~0x00000002); - playerListNotification_ = de.pokerth.protocol.ProtoBuf.PlayerListMessage.PlayerListNotification.playerListNew; - + copyOnWrite(); + instance.clearPlayerListNotification(); 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; - static { - defaultInstance = new PlayerListMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface GameListNewMessageOrBuilder extends @@ -10475,203 +10567,81 @@ public final class ProtoBuf { /** * Protobuf type {@code GameListNewMessage} */ - public static final class GameListNewMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class GameListNewMessage extends + com.google.protobuf.GeneratedMessageLite< + GameListNewMessage, GameListNewMessage.Builder> implements // @@protoc_insertion_point(message_implements:GameListNewMessage) GameListNewMessageOrBuilder { - // Use GameListNewMessage.newBuilder() to construct. - private GameListNewMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private GameListNewMessage() { + gameMode_ = 1; + playerIds_ = emptyIntList(); + spectatorIds_ = emptyIntList(); } - private GameListNewMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final GameListNewMessage defaultInstance; - public static GameListNewMessage getDefaultInstance() { - return defaultInstance; - } - - public GameListNewMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private GameListNewMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000002; - gameMode_ = value; - } - break; - } - case 24: { - bitField0_ |= 0x00000004; - isPrivate_ = input.readBool(); - break; - } - case 32: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - playerIds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - playerIds_.add(input.readUInt32()); - break; - } - case 34: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) { - playerIds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - while (input.getBytesUntilLimit() > 0) { - playerIds_.add(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) == 0x00000010)) { - 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 (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - spectatorIds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - spectatorIds_.add(input.readUInt32()); - break; - } - case 58: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000040) == 0x00000040) && input.getBytesUntilLimit() > 0) { - spectatorIds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - while (input.getBytesUntilLimit() > 0) { - spectatorIds_.add(input.readUInt32()); - } - input.popLimit(limit); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - playerIds_ = java.util.Collections.unmodifiableList(playerIds_); - } - if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { - spectatorIds_ = java.util.Collections.unmodifiableList(spectatorIds_); - } - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GameListNewMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GameListNewMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int GAMEMODE_FIELD_NUMBER = 2; - private de.pokerth.protocol.ProtoBuf.NetGameMode gameMode_; + private int gameMode_; /** * required .NetGameMode gameMode = 2; */ + @java.lang.Override public boolean hasGameMode() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .NetGameMode gameMode = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameMode getGameMode() { - return gameMode_; + de.pokerth.protocol.ProtoBuf.NetGameMode result = de.pokerth.protocol.ProtoBuf.NetGameMode.forNumber(gameMode_); + return result == null ? de.pokerth.protocol.ProtoBuf.NetGameMode.netGameCreated : result; + } + /** + * 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; } public static final int ISPRIVATE_FIELD_NUMBER = 3; @@ -10679,21 +10649,38 @@ public final class ProtoBuf { /** * required bool isPrivate = 3; */ + @java.lang.Override public boolean hasIsPrivate() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * 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; + } public static final int PLAYERIDS_FIELD_NUMBER = 4; - private java.util.List playerIds_; + private com.google.protobuf.Internal.IntList playerIds_; /** * repeated uint32 playerIds = 4 [packed = true]; */ + @java.lang.Override public java.util.List getPlayerIdsList() { return playerIds_; @@ -10701,52 +10688,150 @@ public final class ProtoBuf { /** * 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_.get(index); + return playerIds_.getInt(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(); + } public static final int ADMINPLAYERID_FIELD_NUMBER = 5; private int adminPlayerId_; /** * required uint32 adminPlayerId = 5; */ + @java.lang.Override public boolean hasAdminPlayerId() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * 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; + } 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) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required .NetGameInfo gameInfo = 6; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo() { - return gameInfo_; + return gameInfo_ == null ? de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance() : 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); } public static final int SPECTATORIDS_FIELD_NUMBER = 7; - private java.util.List spectatorIds_; + private com.google.protobuf.Internal.IntList spectatorIds_; /** * repeated uint32 spectatorIds = 7 [packed = true]; */ + @java.lang.Override public java.util.List getSpectatorIdsList() { return spectatorIds_; @@ -10754,110 +10839,106 @@ public final class ProtoBuf { /** * 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_.get(index); + return spectatorIds_.getInt(index); } private int spectatorIdsMemoizedSerializedSize = -1; - - 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(); + private void ensureSpectatorIdsIsMutable() { + if (!spectatorIds_.isModifiable()) { + spectatorIds_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(spectatorIds_); + } } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - 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 setSpectatorIds( + int index, int value) { + ensureSpectatorIdsIsMutable(); + spectatorIds_.setInt(index, value); + } + /** + * 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) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, gameMode_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, gameMode_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(3, isPrivate_); } if (getPlayerIdsList().size() > 0) { - output.writeRawVarint32(34); - output.writeRawVarint32(playerIdsMemoizedSerializedSize); + output.writeUInt32NoTag(34); + output.writeUInt32NoTag(playerIdsMemoizedSerializedSize); } for (int i = 0; i < playerIds_.size(); i++) { - output.writeUInt32NoTag(playerIds_.get(i)); + output.writeUInt32NoTag(playerIds_.getInt(i)); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt32(5, adminPlayerId_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(6, gameInfo_); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(6, getGameInfo()); } if (getSpectatorIdsList().size() > 0) { - output.writeRawVarint32(58); - output.writeRawVarint32(spectatorIdsMemoizedSerializedSize); + output.writeUInt32NoTag(58); + output.writeUInt32NoTag(spectatorIdsMemoizedSerializedSize); } for (int i = 0; i < spectatorIds_.size(); i++) { - output.writeUInt32NoTag(spectatorIds_.get(i)); + output.writeUInt32NoTag(spectatorIds_.getInt(i)); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, gameMode_.getNumber()); + .computeEnumSize(2, gameMode_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isPrivate_); } @@ -10865,7 +10946,7 @@ public final class ProtoBuf { int dataSize = 0; for (int i = 0; i < playerIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(playerIds_.get(i)); + .computeUInt32SizeNoTag(playerIds_.getInt(i)); } size += dataSize; if (!getPlayerIdsList().isEmpty()) { @@ -10875,19 +10956,19 @@ public final class ProtoBuf { } playerIdsMemoizedSerializedSize = dataSize; } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, adminPlayerId_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, gameInfo_); + .computeMessageSize(6, getGameInfo()); } { int dataSize = 0; for (int i = 0; i < spectatorIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(spectatorIds_.get(i)); + .computeUInt32SizeNoTag(spectatorIds_.getInt(i)); } size += dataSize; if (!getSpectatorIdsList().isEmpty()) { @@ -10897,402 +10978,237 @@ public final class ProtoBuf { } spectatorIdsMemoizedSerializedSize = dataSize; } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameListNewMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameListNewMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code GameListNewMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameListNewMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.GameListNewMessage, Builder> implements // @@protoc_insertion_point(builder_implements:GameListNewMessage) de.pokerth.protocol.ProtoBuf.GameListNewMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameListNewMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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_); - } - - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.GameListNewMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.GameListNewMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private de.pokerth.protocol.ProtoBuf.NetGameMode gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.netGameCreated; /** * required .NetGameMode gameMode = 2; */ + @java.lang.Override public boolean hasGameMode() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasGameMode(); } /** * required .NetGameMode gameMode = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameMode getGameMode() { - return gameMode_; + return instance.getGameMode(); } /** * required .NetGameMode gameMode = 2; */ public Builder setGameMode(de.pokerth.protocol.ProtoBuf.NetGameMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - gameMode_ = value; - + copyOnWrite(); + instance.setGameMode(value); return this; } /** * required .NetGameMode gameMode = 2; */ public Builder clearGameMode() { - bitField0_ = (bitField0_ & ~0x00000002); - gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.netGameCreated; - + copyOnWrite(); + instance.clearGameMode(); return this; } - private boolean isPrivate_ ; /** * required bool isPrivate = 3; */ + @java.lang.Override public boolean hasIsPrivate() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasIsPrivate(); } /** * required bool isPrivate = 3; */ + @java.lang.Override public boolean getIsPrivate() { - return isPrivate_; + return instance.getIsPrivate(); } /** * required bool isPrivate = 3; */ public Builder setIsPrivate(boolean value) { - bitField0_ |= 0x00000004; - isPrivate_ = value; - + copyOnWrite(); + instance.setIsPrivate(value); return this; } /** * required bool isPrivate = 3; */ public Builder clearIsPrivate() { - bitField0_ = (bitField0_ & ~0x00000004); - isPrivate_ = false; - + copyOnWrite(); + instance.clearIsPrivate(); return this; } - private java.util.List playerIds_ = java.util.Collections.emptyList(); - private void ensurePlayerIdsIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - playerIds_ = new java.util.ArrayList(playerIds_); - bitField0_ |= 0x00000008; - } - } /** * repeated uint32 playerIds = 4 [packed = true]; */ + @java.lang.Override public java.util.List getPlayerIdsList() { - return java.util.Collections.unmodifiableList(playerIds_); + return java.util.Collections.unmodifiableList( + instance.getPlayerIdsList()); } /** * repeated uint32 playerIds = 4 [packed = true]; */ + @java.lang.Override public int getPlayerIdsCount() { - return playerIds_.size(); + return instance.getPlayerIdsCount(); } /** * repeated uint32 playerIds = 4 [packed = true]; */ + @java.lang.Override public int getPlayerIds(int index) { - return playerIds_.get(index); + return instance.getPlayerIds(index); } /** * repeated uint32 playerIds = 4 [packed = true]; */ public Builder setPlayerIds( int index, int value) { - ensurePlayerIdsIsMutable(); - playerIds_.set(index, value); - + copyOnWrite(); + instance.setPlayerIds(index, value); return this; } /** * repeated uint32 playerIds = 4 [packed = true]; */ public Builder addPlayerIds(int value) { - ensurePlayerIdsIsMutable(); - playerIds_.add(value); - + copyOnWrite(); + instance.addPlayerIds(value); return this; } /** @@ -11300,157 +11216,135 @@ public final class ProtoBuf { */ public Builder addAllPlayerIds( java.lang.Iterable values) { - ensurePlayerIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, playerIds_); - + copyOnWrite(); + instance.addAllPlayerIds(values); return this; } /** * repeated uint32 playerIds = 4 [packed = true]; */ public Builder clearPlayerIds() { - playerIds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - + copyOnWrite(); + instance.clearPlayerIds(); return this; } - private int adminPlayerId_ ; /** * required uint32 adminPlayerId = 5; */ + @java.lang.Override public boolean hasAdminPlayerId() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return instance.hasAdminPlayerId(); } /** * required uint32 adminPlayerId = 5; */ + @java.lang.Override public int getAdminPlayerId() { - return adminPlayerId_; + return instance.getAdminPlayerId(); } /** * required uint32 adminPlayerId = 5; */ public Builder setAdminPlayerId(int value) { - bitField0_ |= 0x00000010; - adminPlayerId_ = value; - + copyOnWrite(); + instance.setAdminPlayerId(value); return this; } /** * required uint32 adminPlayerId = 5; */ public Builder clearAdminPlayerId() { - bitField0_ = (bitField0_ & ~0x00000010); - adminPlayerId_ = 0; - + copyOnWrite(); + instance.clearAdminPlayerId(); return this; } - private de.pokerth.protocol.ProtoBuf.NetGameInfo gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); /** * required .NetGameInfo gameInfo = 6; */ + @java.lang.Override public boolean hasGameInfo() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return instance.hasGameInfo(); } /** * required .NetGameInfo gameInfo = 6; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo() { - return gameInfo_; + return instance.getGameInfo(); } /** * required .NetGameInfo gameInfo = 6; */ public Builder setGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo value) { - if (value == null) { - throw new NullPointerException(); - } - gameInfo_ = value; - - bitField0_ |= 0x00000020; + copyOnWrite(); + instance.setGameInfo(value); return this; - } + } /** * required .NetGameInfo gameInfo = 6; */ public Builder setGameInfo( de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder builderForValue) { - gameInfo_ = builderForValue.build(); - - bitField0_ |= 0x00000020; + copyOnWrite(); + instance.setGameInfo(builderForValue); return this; } /** * required .NetGameInfo gameInfo = 6; */ public Builder mergeGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo 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; + copyOnWrite(); + instance.mergeGameInfo(value); return this; } /** * required .NetGameInfo gameInfo = 6; */ - public Builder clearGameInfo() { - gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00000020); + public Builder clearGameInfo() { copyOnWrite(); + instance.clearGameInfo(); return this; } - private java.util.List spectatorIds_ = java.util.Collections.emptyList(); - private void ensureSpectatorIdsIsMutable() { - if (!((bitField0_ & 0x00000040) == 0x00000040)) { - spectatorIds_ = new java.util.ArrayList(spectatorIds_); - bitField0_ |= 0x00000040; - } - } /** * repeated uint32 spectatorIds = 7 [packed = true]; */ + @java.lang.Override public java.util.List getSpectatorIdsList() { - return java.util.Collections.unmodifiableList(spectatorIds_); + return java.util.Collections.unmodifiableList( + instance.getSpectatorIdsList()); } /** * repeated uint32 spectatorIds = 7 [packed = true]; */ + @java.lang.Override public int getSpectatorIdsCount() { - return spectatorIds_.size(); + return instance.getSpectatorIdsCount(); } /** * repeated uint32 spectatorIds = 7 [packed = true]; */ + @java.lang.Override public int getSpectatorIds(int index) { - return spectatorIds_.get(index); + return instance.getSpectatorIds(index); } /** * repeated uint32 spectatorIds = 7 [packed = true]; */ public Builder setSpectatorIds( int index, int value) { - ensureSpectatorIdsIsMutable(); - spectatorIds_.set(index, value); - + copyOnWrite(); + instance.setSpectatorIds(index, value); return this; } /** * repeated uint32 spectatorIds = 7 [packed = true]; */ public Builder addSpectatorIds(int value) { - ensureSpectatorIdsIsMutable(); - spectatorIds_.add(value); - + copyOnWrite(); + instance.addSpectatorIds(value); return this; } /** @@ -11458,31 +11352,249 @@ public final class ProtoBuf { */ public Builder addAllSpectatorIds( java.lang.Iterable values) { - ensureSpectatorIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, spectatorIds_); - + copyOnWrite(); + instance.addAllSpectatorIds(values); return this; } /** * repeated uint32 spectatorIds = 7 [packed = true]; */ public Builder clearSpectatorIds() { - spectatorIds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - + copyOnWrite(); + instance.clearSpectatorIds(); 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; - static { - defaultInstance = new GameListNewMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface GameListUpdateMessageOrBuilder extends @@ -11510,435 +11622,411 @@ public final class ProtoBuf { /** * Protobuf type {@code GameListUpdateMessage} */ - public static final class GameListUpdateMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class GameListUpdateMessage extends + com.google.protobuf.GeneratedMessageLite< + GameListUpdateMessage, GameListUpdateMessage.Builder> implements // @@protoc_insertion_point(message_implements:GameListUpdateMessage) GameListUpdateMessageOrBuilder { - // Use GameListUpdateMessage.newBuilder() to construct. - private GameListUpdateMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private GameListUpdateMessage() { + gameMode_ = 1; } - private GameListUpdateMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final GameListUpdateMessage defaultInstance; - public static GameListUpdateMessage getDefaultInstance() { - return defaultInstance; - } - - public GameListUpdateMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private GameListUpdateMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000002; - gameMode_ = value; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GameListUpdateMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GameListUpdateMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int GAMEMODE_FIELD_NUMBER = 2; - private de.pokerth.protocol.ProtoBuf.NetGameMode gameMode_; + private int gameMode_; /** * required .NetGameMode gameMode = 2; */ + @java.lang.Override public boolean hasGameMode() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .NetGameMode gameMode = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameMode getGameMode() { - return gameMode_; + de.pokerth.protocol.ProtoBuf.NetGameMode result = de.pokerth.protocol.ProtoBuf.NetGameMode.forNumber(gameMode_); + return result == null ? de.pokerth.protocol.ProtoBuf.NetGameMode.netGameCreated : result; } - - 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 true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; + /** + * required .NetGameMode gameMode = 2; + */ + private void setGameMode(de.pokerth.protocol.ProtoBuf.NetGameMode value) { + if (value == null) { + throw new NullPointerException(); } - if (!hasGameMode()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + bitField0_ |= 0x00000002; + gameMode_ = value.getNumber(); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, gameMode_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, gameMode_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, gameMode_.getNumber()); + .computeEnumSize(2, gameMode_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameListUpdateMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code GameListUpdateMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameListUpdateMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.GameListUpdateMessage, Builder> implements // @@protoc_insertion_point(builder_implements:GameListUpdateMessage) de.pokerth.protocol.ProtoBuf.GameListUpdateMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.GameListUpdateMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.GameListUpdateMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private de.pokerth.protocol.ProtoBuf.NetGameMode gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.netGameCreated; /** * required .NetGameMode gameMode = 2; */ + @java.lang.Override public boolean hasGameMode() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasGameMode(); } /** * required .NetGameMode gameMode = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameMode getGameMode() { - return gameMode_; + return instance.getGameMode(); } /** * required .NetGameMode gameMode = 2; */ public Builder setGameMode(de.pokerth.protocol.ProtoBuf.NetGameMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - gameMode_ = value; - + copyOnWrite(); + instance.setGameMode(value); return this; } /** * required .NetGameMode gameMode = 2; */ public Builder clearGameMode() { - bitField0_ = (bitField0_ & ~0x00000002); - gameMode_ = de.pokerth.protocol.ProtoBuf.NetGameMode.netGameCreated; - + copyOnWrite(); + instance.clearGameMode(); 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; - static { - defaultInstance = new GameListUpdateMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface GameListPlayerJoinedMessageOrBuilder extends @@ -11966,425 +12054,401 @@ public final class ProtoBuf { /** * Protobuf type {@code GameListPlayerJoinedMessage} */ - public static final class GameListPlayerJoinedMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class GameListPlayerJoinedMessage extends + com.google.protobuf.GeneratedMessageLite< + GameListPlayerJoinedMessage, GameListPlayerJoinedMessage.Builder> implements // @@protoc_insertion_point(message_implements:GameListPlayerJoinedMessage) GameListPlayerJoinedMessageOrBuilder { - // Use GameListPlayerJoinedMessage.newBuilder() to construct. - private GameListPlayerJoinedMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private GameListPlayerJoinedMessage() { } - private GameListPlayerJoinedMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final GameListPlayerJoinedMessage defaultInstance; - public static GameListPlayerJoinedMessage getDefaultInstance() { - return defaultInstance; - } - - public GameListPlayerJoinedMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private GameListPlayerJoinedMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GameListPlayerJoinedMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GameListPlayerJoinedMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required uint32 playerId = 2; */ + @java.lang.Override public int getPlayerId() { return playerId_; } - - private void initFields() { - gameId_ = 0; + /** + * 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; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPlayerId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, playerId_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code GameListPlayerJoinedMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage, Builder> implements // @@protoc_insertion_point(builder_implements:GameListPlayerJoinedMessage) de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int playerId_ ; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPlayerId(); } /** * required uint32 playerId = 2; */ + @java.lang.Override public int getPlayerId() { - return playerId_; + return instance.getPlayerId(); } /** * required uint32 playerId = 2; */ public Builder setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - + copyOnWrite(); + instance.setPlayerId(value); return this; } /** * required uint32 playerId = 2; */ public Builder clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - + copyOnWrite(); + instance.clearPlayerId(); 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; - static { - defaultInstance = new GameListPlayerJoinedMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface GameListPlayerLeftMessageOrBuilder extends @@ -12412,425 +12476,401 @@ public final class ProtoBuf { /** * Protobuf type {@code GameListPlayerLeftMessage} */ - public static final class GameListPlayerLeftMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class GameListPlayerLeftMessage extends + com.google.protobuf.GeneratedMessageLite< + GameListPlayerLeftMessage, GameListPlayerLeftMessage.Builder> implements // @@protoc_insertion_point(message_implements:GameListPlayerLeftMessage) GameListPlayerLeftMessageOrBuilder { - // Use GameListPlayerLeftMessage.newBuilder() to construct. - private GameListPlayerLeftMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private GameListPlayerLeftMessage() { } - private GameListPlayerLeftMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final GameListPlayerLeftMessage defaultInstance; - public static GameListPlayerLeftMessage getDefaultInstance() { - return defaultInstance; - } - - public GameListPlayerLeftMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private GameListPlayerLeftMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GameListPlayerLeftMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GameListPlayerLeftMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required uint32 playerId = 2; */ + @java.lang.Override public int getPlayerId() { return playerId_; } - - private void initFields() { - gameId_ = 0; + /** + * 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; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPlayerId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, playerId_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code GameListPlayerLeftMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage, Builder> implements // @@protoc_insertion_point(builder_implements:GameListPlayerLeftMessage) de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int playerId_ ; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPlayerId(); } /** * required uint32 playerId = 2; */ + @java.lang.Override public int getPlayerId() { - return playerId_; + return instance.getPlayerId(); } /** * required uint32 playerId = 2; */ public Builder setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - + copyOnWrite(); + instance.setPlayerId(value); return this; } /** * required uint32 playerId = 2; */ public Builder clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - + copyOnWrite(); + instance.clearPlayerId(); 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; - static { - defaultInstance = new GameListPlayerLeftMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface GameListSpectatorJoinedMessageOrBuilder extends @@ -12858,425 +12898,401 @@ public final class ProtoBuf { /** * Protobuf type {@code GameListSpectatorJoinedMessage} */ - public static final class GameListSpectatorJoinedMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class GameListSpectatorJoinedMessage extends + com.google.protobuf.GeneratedMessageLite< + GameListSpectatorJoinedMessage, GameListSpectatorJoinedMessage.Builder> implements // @@protoc_insertion_point(message_implements:GameListSpectatorJoinedMessage) GameListSpectatorJoinedMessageOrBuilder { - // Use GameListSpectatorJoinedMessage.newBuilder() to construct. - private GameListSpectatorJoinedMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private GameListSpectatorJoinedMessage() { } - private GameListSpectatorJoinedMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final GameListSpectatorJoinedMessage defaultInstance; - public static GameListSpectatorJoinedMessage getDefaultInstance() { - return defaultInstance; - } - - public GameListSpectatorJoinedMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private GameListSpectatorJoinedMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GameListSpectatorJoinedMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GameListSpectatorJoinedMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required uint32 playerId = 2; */ + @java.lang.Override public int getPlayerId() { return playerId_; } - - private void initFields() { - gameId_ = 0; + /** + * 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; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPlayerId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, playerId_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code GameListSpectatorJoinedMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage, Builder> implements // @@protoc_insertion_point(builder_implements:GameListSpectatorJoinedMessage) de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int playerId_ ; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPlayerId(); } /** * required uint32 playerId = 2; */ + @java.lang.Override public int getPlayerId() { - return playerId_; + return instance.getPlayerId(); } /** * required uint32 playerId = 2; */ public Builder setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - + copyOnWrite(); + instance.setPlayerId(value); return this; } /** * required uint32 playerId = 2; */ public Builder clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - + copyOnWrite(); + instance.clearPlayerId(); 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; - static { - defaultInstance = new GameListSpectatorJoinedMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface GameListSpectatorLeftMessageOrBuilder extends @@ -13304,425 +13320,401 @@ public final class ProtoBuf { /** * Protobuf type {@code GameListSpectatorLeftMessage} */ - public static final class GameListSpectatorLeftMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class GameListSpectatorLeftMessage extends + com.google.protobuf.GeneratedMessageLite< + GameListSpectatorLeftMessage, GameListSpectatorLeftMessage.Builder> implements // @@protoc_insertion_point(message_implements:GameListSpectatorLeftMessage) GameListSpectatorLeftMessageOrBuilder { - // Use GameListSpectatorLeftMessage.newBuilder() to construct. - private GameListSpectatorLeftMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private GameListSpectatorLeftMessage() { } - private GameListSpectatorLeftMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final GameListSpectatorLeftMessage defaultInstance; - public static GameListSpectatorLeftMessage getDefaultInstance() { - return defaultInstance; - } - - public GameListSpectatorLeftMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private GameListSpectatorLeftMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GameListSpectatorLeftMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GameListSpectatorLeftMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required uint32 playerId = 2; */ + @java.lang.Override public int getPlayerId() { return playerId_; } - - private void initFields() { - gameId_ = 0; + /** + * 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; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPlayerId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, playerId_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code GameListSpectatorLeftMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage, Builder> implements // @@protoc_insertion_point(builder_implements:GameListSpectatorLeftMessage) de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int playerId_ ; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPlayerId(); } /** * required uint32 playerId = 2; */ + @java.lang.Override public int getPlayerId() { - return playerId_; + return instance.getPlayerId(); } /** * required uint32 playerId = 2; */ public Builder setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - + copyOnWrite(); + instance.setPlayerId(value); return this; } /** * required uint32 playerId = 2; */ public Builder clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - + copyOnWrite(); + instance.clearPlayerId(); 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; - static { - defaultInstance = new GameListSpectatorLeftMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface GameListAdminChangedMessageOrBuilder extends @@ -13750,425 +13742,401 @@ public final class ProtoBuf { /** * Protobuf type {@code GameListAdminChangedMessage} */ - public static final class GameListAdminChangedMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class GameListAdminChangedMessage extends + com.google.protobuf.GeneratedMessageLite< + GameListAdminChangedMessage, GameListAdminChangedMessage.Builder> implements // @@protoc_insertion_point(message_implements:GameListAdminChangedMessage) GameListAdminChangedMessageOrBuilder { - // Use GameListAdminChangedMessage.newBuilder() to construct. - private GameListAdminChangedMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private GameListAdminChangedMessage() { } - private GameListAdminChangedMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final GameListAdminChangedMessage defaultInstance; - public static GameListAdminChangedMessage getDefaultInstance() { - return defaultInstance; - } - - public GameListAdminChangedMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private GameListAdminChangedMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - newAdminPlayerId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GameListAdminChangedMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GameListAdminChangedMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int NEWADMINPLAYERID_FIELD_NUMBER = 2; private int newAdminPlayerId_; /** * required uint32 newAdminPlayerId = 2; */ + @java.lang.Override public boolean hasNewAdminPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required uint32 newAdminPlayerId = 2; */ + @java.lang.Override public int getNewAdminPlayerId() { return newAdminPlayerId_; } - - private void initFields() { - gameId_ = 0; + /** + * required uint32 newAdminPlayerId = 2; + */ + private void setNewAdminPlayerId(int value) { + bitField0_ |= 0x00000002; + newAdminPlayerId_ = value; + } + /** + * required uint32 newAdminPlayerId = 2; + */ + private void clearNewAdminPlayerId() { + bitField0_ = (bitField0_ & ~0x00000002); newAdminPlayerId_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasNewAdminPlayerId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, newAdminPlayerId_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, newAdminPlayerId_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code GameListAdminChangedMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage, Builder> implements // @@protoc_insertion_point(builder_implements:GameListAdminChangedMessage) de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int newAdminPlayerId_ ; /** * required uint32 newAdminPlayerId = 2; */ + @java.lang.Override public boolean hasNewAdminPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasNewAdminPlayerId(); } /** * required uint32 newAdminPlayerId = 2; */ + @java.lang.Override public int getNewAdminPlayerId() { - return newAdminPlayerId_; + return instance.getNewAdminPlayerId(); } /** * required uint32 newAdminPlayerId = 2; */ public Builder setNewAdminPlayerId(int value) { - bitField0_ |= 0x00000002; - newAdminPlayerId_ = value; - + copyOnWrite(); + instance.setNewAdminPlayerId(value); return this; } /** * required uint32 newAdminPlayerId = 2; */ public Builder clearNewAdminPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - newAdminPlayerId_ = 0; - + copyOnWrite(); + instance.clearNewAdminPlayerId(); 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; - static { - defaultInstance = new GameListAdminChangedMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface PlayerInfoRequestMessageOrBuilder extends @@ -14191,115 +14159,20 @@ public final class ProtoBuf { /** * Protobuf type {@code PlayerInfoRequestMessage} */ - public static final class PlayerInfoRequestMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class PlayerInfoRequestMessage extends + com.google.protobuf.GeneratedMessageLite< + PlayerInfoRequestMessage, PlayerInfoRequestMessage.Builder> implements // @@protoc_insertion_point(message_implements:PlayerInfoRequestMessage) PlayerInfoRequestMessageOrBuilder { - // Use PlayerInfoRequestMessage.newBuilder() to construct. - private PlayerInfoRequestMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private PlayerInfoRequestMessage() { + playerId_ = emptyIntList(); } - private PlayerInfoRequestMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final PlayerInfoRequestMessage defaultInstance; - public static PlayerInfoRequestMessage getDefaultInstance() { - return defaultInstance; - } - - public PlayerInfoRequestMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private PlayerInfoRequestMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - playerId_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - playerId_.add(input.readUInt32()); - break; - } - case 10: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) { - playerId_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - while (input.getBytesUntilLimit() > 0) { - playerId_.add(input.readUInt32()); - } - input.popLimit(limit); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - playerId_ = java.util.Collections.unmodifiableList(playerId_); - } - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public PlayerInfoRequestMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerInfoRequestMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public static final int PLAYERID_FIELD_NUMBER = 1; - private java.util.List playerId_; + private com.google.protobuf.Internal.IntList playerId_; /** * repeated uint32 playerId = 1 [packed = true]; */ + @java.lang.Override public java.util.List getPlayerIdList() { return playerId_; @@ -14307,44 +14180,70 @@ public final class ProtoBuf { /** * 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_.get(index); + return playerId_.getInt(index); } private int playerIdMemoizedSerializedSize = -1; - - private void initFields() { - playerId_ = java.util.Collections.emptyList(); + private void ensurePlayerIdIsMutable() { + if (!playerId_.isModifiable()) { + playerId_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(playerId_); + } } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + /** + * repeated uint32 playerId = 1 [packed = true]; + */ + private void setPlayerId( + int index, int value) { + ensurePlayerIdIsMutable(); + playerId_.setInt(index, value); + } + /** + * 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.writeRawVarint32(10); - output.writeRawVarint32(playerIdMemoizedSerializedSize); + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(playerIdMemoizedSerializedSize); } for (int i = 0; i < playerId_.size(); i++) { - output.writeUInt32NoTag(playerId_.get(i)); + output.writeUInt32NoTag(playerId_.getInt(i)); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; @@ -14354,7 +14253,7 @@ public final class ProtoBuf { int dataSize = 0; for (int i = 0; i < playerId_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(playerId_.get(i)); + .computeUInt32SizeNoTag(playerId_.getInt(i)); } size += dataSize; if (!getPlayerIdList().isEmpty()) { @@ -14364,215 +14263,144 @@ public final class ProtoBuf { } playerIdMemoizedSerializedSize = dataSize; } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code PlayerInfoRequestMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage, Builder> implements // @@protoc_insertion_point(builder_implements:PlayerInfoRequestMessage) de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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_); - } - - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - 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(playerId_); + return java.util.Collections.unmodifiableList( + instance.getPlayerIdList()); } /** * repeated uint32 playerId = 1 [packed = true]; */ + @java.lang.Override public int getPlayerIdCount() { - return playerId_.size(); + return instance.getPlayerIdCount(); } /** * repeated uint32 playerId = 1 [packed = true]; */ + @java.lang.Override public int getPlayerId(int index) { - return playerId_.get(index); + return instance.getPlayerId(index); } /** * repeated uint32 playerId = 1 [packed = true]; */ public Builder setPlayerId( int index, int value) { - ensurePlayerIdIsMutable(); - playerId_.set(index, value); - + copyOnWrite(); + instance.setPlayerId(index, value); return this; } /** * repeated uint32 playerId = 1 [packed = true]; */ public Builder addPlayerId(int value) { - ensurePlayerIdIsMutable(); - playerId_.add(value); - + copyOnWrite(); + instance.addPlayerId(value); return this; } /** @@ -14580,31 +14408,148 @@ public final class ProtoBuf { */ public Builder addAllPlayerId( java.lang.Iterable values) { - ensurePlayerIdIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, playerId_); - + copyOnWrite(); + instance.addAllPlayerId(values); return this; } /** * repeated uint32 playerId = 1 [packed = true]; */ public Builder clearPlayerId() { - playerId_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - + copyOnWrite(); + instance.clearPlayerId(); return this; } // @@protoc_insertion_point(builder_scope:PlayerInfoRequestMessage) } - - static { - defaultInstance = new PlayerInfoRequestMessage(true); - defaultInstance.initFields(); + @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(); + } } public interface PlayerInfoReplyMessageOrBuilder extends @@ -14632,104 +14577,13 @@ public final class ProtoBuf { /** * Protobuf type {@code PlayerInfoReplyMessage} */ - public static final class PlayerInfoReplyMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class PlayerInfoReplyMessage extends + com.google.protobuf.GeneratedMessageLite< + PlayerInfoReplyMessage, PlayerInfoReplyMessage.Builder> implements // @@protoc_insertion_point(message_implements:PlayerInfoReplyMessage) PlayerInfoReplyMessageOrBuilder { - // Use PlayerInfoReplyMessage.newBuilder() to construct. - private PlayerInfoReplyMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private PlayerInfoReplyMessage() { } - private PlayerInfoReplyMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final PlayerInfoReplyMessage defaultInstance; - public static PlayerInfoReplyMessage getDefaultInstance() { - return defaultInstance; - } - - public PlayerInfoReplyMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private PlayerInfoReplyMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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) == 0x00000002)) { - 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; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public PlayerInfoReplyMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerInfoReplyMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public interface PlayerInfoDataOrBuilder extends // @@protoc_insertion_point(interface_extends:PlayerInfoReplyMessage.PlayerInfoData) com.google.protobuf.MessageLiteOrBuilder { @@ -14792,128 +14646,16 @@ public final class ProtoBuf { /** * Protobuf type {@code PlayerInfoReplyMessage.PlayerInfoData} */ - public static final class PlayerInfoData extends - com.google.protobuf.GeneratedMessageLite implements + public static final class PlayerInfoData extends + com.google.protobuf.GeneratedMessageLite< + PlayerInfoData, PlayerInfoData.Builder> implements // @@protoc_insertion_point(message_implements:PlayerInfoReplyMessage.PlayerInfoData) PlayerInfoDataOrBuilder { - // Use PlayerInfoData.newBuilder() to construct. - private PlayerInfoData(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private PlayerInfoData() { + playerName_ = ""; + playerRights_ = 1; + countryCode_ = ""; } - private PlayerInfoData(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final PlayerInfoData defaultInstance; - public static PlayerInfoData getDefaultInstance() { - return defaultInstance; - } - - public PlayerInfoData getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private PlayerInfoData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - playerName_ = bs; - 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) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000004; - playerRights_ = value; - } - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - countryCode_ = bs; - break; - } - case 42: { - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.Builder subBuilder = null; - if (((bitField0_ & 0x00000010) == 0x00000010)) { - 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; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public PlayerInfoData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerInfoData(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public interface AvatarDataOrBuilder extends // @@protoc_insertion_point(interface_extends:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) com.google.protobuf.MessageLiteOrBuilder { @@ -14939,117 +14681,49 @@ public final class ProtoBuf { /** * Protobuf type {@code PlayerInfoReplyMessage.PlayerInfoData.AvatarData} */ - public static final class AvatarData extends - com.google.protobuf.GeneratedMessageLite implements + public static final class AvatarData extends + com.google.protobuf.GeneratedMessageLite< + AvatarData, AvatarData.Builder> implements // @@protoc_insertion_point(message_implements:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) AvatarDataOrBuilder { - // Use AvatarData.newBuilder() to construct. - private AvatarData(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private AvatarData() { + avatarType_ = 1; + avatarHash_ = com.google.protobuf.ByteString.EMPTY; } - private AvatarData(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final AvatarData defaultInstance; - public static AvatarData getDefaultInstance() { - return defaultInstance; - } - - public AvatarData getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private AvatarData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.NetAvatarType value = de.pokerth.protocol.ProtoBuf.NetAvatarType.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000001; - avatarType_ = value; - } - break; - } - case 18: { - bitField0_ |= 0x00000002; - avatarHash_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AvatarData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AvatarData(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int AVATARTYPE_FIELD_NUMBER = 1; - private de.pokerth.protocol.ProtoBuf.NetAvatarType avatarType_; + private int avatarType_; /** * required .NetAvatarType avatarType = 1; */ + @java.lang.Override public boolean hasAvatarType() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .NetAvatarType avatarType = 1; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetAvatarType getAvatarType() { - return avatarType_; + de.pokerth.protocol.ProtoBuf.NetAvatarType result = de.pokerth.protocol.ProtoBuf.NetAvatarType.forNumber(avatarType_); + return result == null ? de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng : result; + } + /** + * 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; } public static final int AVATARHASH_FIELD_NUMBER = 2; @@ -15057,363 +14731,420 @@ public final class ProtoBuf { /** * required bytes avatarHash = 2; */ + @java.lang.Override public boolean hasAvatarHash() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bytes avatarHash = 2; */ + @java.lang.Override public com.google.protobuf.ByteString getAvatarHash() { return avatarHash_; } - - private void initFields() { - avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng; - avatarHash_ = com.google.protobuf.ByteString.EMPTY; + /** + * required bytes avatarHash = 2; + */ + private void setAvatarHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + avatarHash_ = value; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasAvatarType()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasAvatarHash()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + /** + * required bytes avatarHash = 2; + */ + private void clearAvatarHash() { + bitField0_ = (bitField0_ & ~0x00000002); + avatarHash_ = getDefaultInstance().getAvatarHash(); } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, avatarType_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, avatarType_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(2, avatarHash_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, avatarType_.getNumber()); + .computeEnumSize(1, avatarType_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, avatarHash_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } 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 PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } 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 PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code PlayerInfoReplyMessage.PlayerInfoData.AvatarData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData, Builder> - implements + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData, Builder> implements // @@protoc_insertion_point(builder_implements:PlayerInfoReplyMessage.PlayerInfoData.AvatarData) de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarDataOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private de.pokerth.protocol.ProtoBuf.NetAvatarType avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng; /** * required .NetAvatarType avatarType = 1; */ + @java.lang.Override public boolean hasAvatarType() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasAvatarType(); } /** * required .NetAvatarType avatarType = 1; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetAvatarType getAvatarType() { - return avatarType_; + return instance.getAvatarType(); } /** * required .NetAvatarType avatarType = 1; */ public Builder setAvatarType(de.pokerth.protocol.ProtoBuf.NetAvatarType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - avatarType_ = value; - + copyOnWrite(); + instance.setAvatarType(value); return this; } /** * required .NetAvatarType avatarType = 1; */ public Builder clearAvatarType() { - bitField0_ = (bitField0_ & ~0x00000001); - avatarType_ = de.pokerth.protocol.ProtoBuf.NetAvatarType.netAvatarImagePng; - + copyOnWrite(); + instance.clearAvatarType(); return this; } - private com.google.protobuf.ByteString avatarHash_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes avatarHash = 2; */ + @java.lang.Override public boolean hasAvatarHash() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasAvatarHash(); } /** * required bytes avatarHash = 2; */ + @java.lang.Override public com.google.protobuf.ByteString getAvatarHash() { - return avatarHash_; + return instance.getAvatarHash(); } /** * required bytes avatarHash = 2; */ public Builder setAvatarHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - avatarHash_ = value; - + copyOnWrite(); + instance.setAvatarHash(value); return this; } /** * required bytes avatarHash = 2; */ public Builder clearAvatarHash() { - bitField0_ = (bitField0_ & ~0x00000002); - avatarHash_ = getDefaultInstance().getAvatarHash(); - + copyOnWrite(); + instance.clearAvatarHash(); 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; - static { - defaultInstance = new AvatarData(true); - defaultInstance.initFields(); + 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(); + } } private int bitField0_; public static final int PLAYERNAME_FIELD_NUMBER = 1; - private java.lang.Object playerName_; + private java.lang.String playerName_; /** * required string playerName = 1; */ + @java.lang.Override public boolean hasPlayerName() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required string playerName = 1; */ + @java.lang.Override public java.lang.String getPlayerName() { - java.lang.Object ref = playerName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - playerName_ = s; - } - return s; - } + return playerName_; } /** * required string playerName = 1; */ + @java.lang.Override public com.google.protobuf.ByteString getPlayerNameBytes() { - java.lang.Object ref = playerName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - playerName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + return com.google.protobuf.ByteString.copyFromUtf8(playerName_); + } + /** + * 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(); } public static final int ISHUMAN_FIELD_NUMBER = 2; @@ -15421,71 +15152,119 @@ public final class ProtoBuf { /** * required bool isHuman = 2; */ + @java.lang.Override public boolean hasIsHuman() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } public static final int PLAYERRIGHTS_FIELD_NUMBER = 3; - private de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights playerRights_; + private int playerRights_; /** * required .NetPlayerInfoRights playerRights = 3; */ + @java.lang.Override public boolean hasPlayerRights() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required .NetPlayerInfoRights playerRights = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights getPlayerRights() { - return playerRights_; + de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights result = de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights.forNumber(playerRights_); + return result == null ? de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights.netPlayerRightsGuest : result; + } + /** + * 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; } public static final int COUNTRYCODE_FIELD_NUMBER = 4; - private java.lang.Object countryCode_; + private java.lang.String countryCode_; /** * optional string countryCode = 4; */ + @java.lang.Override public boolean hasCountryCode() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional string countryCode = 4; */ + @java.lang.Override public java.lang.String getCountryCode() { - java.lang.Object ref = countryCode_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - countryCode_ = s; - } - return s; - } + return countryCode_; } /** * optional string countryCode = 4; */ + @java.lang.Override public com.google.protobuf.ByteString getCountryCodeBytes() { - java.lang.Object ref = countryCode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - countryCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + return com.google.protobuf.ByteString.copyFromUtf8(countryCode_); + } + /** + * 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(); } public static final int AVATARDATA_FIELD_NUMBER = 5; @@ -15493,376 +15272,243 @@ public final class ProtoBuf { /** * optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; */ + @java.lang.Override public boolean hasAvatarData() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData getAvatarData() { - return avatarData_; + return avatarData_ == null ? de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.getDefaultInstance() : avatarData_; } - - private void initFields() { - playerName_ = ""; - isHuman_ = false; - playerRights_ = de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights.netPlayerRightsGuest; - countryCode_ = ""; - avatarData_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasPlayerName()) { - memoizedIsInitialized = 0; - return false; + /** + * optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; + */ + private void setAvatarData(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData value) { + if (value == null) { + throw new NullPointerException(); } - if (!hasIsHuman()) { - memoizedIsInitialized = 0; - return false; + avatarData_ = value; + bitField0_ |= 0x00000010; } - if (!hasPlayerRights()) { - memoizedIsInitialized = 0; - return false; + /** + * optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; + */ + private void setAvatarData( + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.Builder builderForValue) { + avatarData_ = builderForValue.build(); + bitField0_ |= 0x00000010; + } + /** + * 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(); } - if (hasAvatarData()) { - if (!getAvatarData().isInitialized()) { - 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; } - memoizedIsInitialized = 1; - return true; + bitField0_ |= 0x00000010; + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getPlayerNameBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeString(1, getPlayerName()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, isHuman_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, playerRights_.getNumber()); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(3, playerRights_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getCountryCodeBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeString(4, getCountryCode()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, avatarData_); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getAvatarData()); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getPlayerNameBytes()); + .computeStringSize(1, getPlayerName()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, isHuman_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, playerRights_.getNumber()); + .computeEnumSize(3, playerRights_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getCountryCodeBytes()); + .computeStringSize(4, getCountryCode()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, avatarData_); + .computeMessageSize(5, getAvatarData()); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } 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 PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code PlayerInfoReplyMessage.PlayerInfoData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData, Builder> - implements + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData, Builder> implements // @@protoc_insertion_point(builder_implements:PlayerInfoReplyMessage.PlayerInfoData) de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoDataOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - private void maybeForceBuilderInitialization() { - } - private static Builder create() { - return new Builder(); - } - 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; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData getDefaultInstanceForType() { - return de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.getDefaultInstance(); - } - - public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData build() { - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - 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()) { - bitField0_ |= 0x00000001; - playerName_ = other.playerName_; - - } - if (other.hasIsHuman()) { - setIsHuman(other.getIsHuman()); - } - if (other.hasPlayerRights()) { - setPlayerRights(other.getPlayerRights()); - } - if (other.hasCountryCode()) { - bitField0_ |= 0x00000008; - countryCode_ = other.countryCode_; - - } - if (other.hasAvatarData()) { - mergeAvatarData(other.getAvatarData()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object playerName_ = ""; /** * required string playerName = 1; */ + @java.lang.Override public boolean hasPlayerName() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasPlayerName(); } /** * required string playerName = 1; */ + @java.lang.Override public java.lang.String getPlayerName() { - java.lang.Object ref = playerName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - playerName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } + return instance.getPlayerName(); } /** * required string playerName = 1; */ + @java.lang.Override public com.google.protobuf.ByteString getPlayerNameBytes() { - java.lang.Object ref = playerName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - playerName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + return instance.getPlayerNameBytes(); } /** * required string playerName = 1; */ public Builder setPlayerName( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - playerName_ = value; - + copyOnWrite(); + instance.setPlayerName(value); return this; } /** * required string playerName = 1; */ public Builder clearPlayerName() { - bitField0_ = (bitField0_ & ~0x00000001); - playerName_ = getDefaultInstance().getPlayerName(); - + copyOnWrite(); + instance.clearPlayerName(); return this; } /** @@ -15870,142 +15516,110 @@ public final class ProtoBuf { */ public Builder setPlayerNameBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - playerName_ = value; - + copyOnWrite(); + instance.setPlayerNameBytes(value); return this; } - private boolean isHuman_ ; /** * required bool isHuman = 2; */ + @java.lang.Override public boolean hasIsHuman() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasIsHuman(); } /** * required bool isHuman = 2; */ + @java.lang.Override public boolean getIsHuman() { - return isHuman_; + return instance.getIsHuman(); } /** * required bool isHuman = 2; */ public Builder setIsHuman(boolean value) { - bitField0_ |= 0x00000002; - isHuman_ = value; - + copyOnWrite(); + instance.setIsHuman(value); return this; } /** * required bool isHuman = 2; */ public Builder clearIsHuman() { - bitField0_ = (bitField0_ & ~0x00000002); - isHuman_ = false; - + copyOnWrite(); + instance.clearIsHuman(); return this; } - private de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights playerRights_ = de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights.netPlayerRightsGuest; /** * required .NetPlayerInfoRights playerRights = 3; */ + @java.lang.Override public boolean hasPlayerRights() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasPlayerRights(); } /** * required .NetPlayerInfoRights playerRights = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights getPlayerRights() { - return playerRights_; + return instance.getPlayerRights(); } /** * required .NetPlayerInfoRights playerRights = 3; */ public Builder setPlayerRights(de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - playerRights_ = value; - + copyOnWrite(); + instance.setPlayerRights(value); return this; } /** * required .NetPlayerInfoRights playerRights = 3; */ public Builder clearPlayerRights() { - bitField0_ = (bitField0_ & ~0x00000004); - playerRights_ = de.pokerth.protocol.ProtoBuf.NetPlayerInfoRights.netPlayerRightsGuest; - + copyOnWrite(); + instance.clearPlayerRights(); return this; } - private java.lang.Object countryCode_ = ""; /** * optional string countryCode = 4; */ + @java.lang.Override public boolean hasCountryCode() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return instance.hasCountryCode(); } /** * optional string countryCode = 4; */ + @java.lang.Override public java.lang.String getCountryCode() { - java.lang.Object ref = countryCode_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - countryCode_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } + return instance.getCountryCode(); } /** * optional string countryCode = 4; */ + @java.lang.Override public com.google.protobuf.ByteString getCountryCodeBytes() { - java.lang.Object ref = countryCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - countryCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + return instance.getCountryCodeBytes(); } /** * optional string countryCode = 4; */ public Builder setCountryCode( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - countryCode_ = value; - + copyOnWrite(); + instance.setCountryCode(value); return this; } /** * optional string countryCode = 4; */ public Builder clearCountryCode() { - bitField0_ = (bitField0_ & ~0x00000008); - countryCode_ = getDefaultInstance().getCountryCode(); - + copyOnWrite(); + instance.clearCountryCode(); return this; } /** @@ -16013,84 +15627,240 @@ public final class ProtoBuf { */ public Builder setCountryCodeBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - countryCode_ = value; - + copyOnWrite(); + instance.setCountryCodeBytes(value); return this; } - private de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.getDefaultInstance(); /** * optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; */ + @java.lang.Override public boolean hasAvatarData() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return instance.hasAvatarData(); } /** * optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData getAvatarData() { - return avatarData_; + return instance.getAvatarData(); } /** * optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; */ public Builder setAvatarData(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData value) { - if (value == null) { - throw new NullPointerException(); - } - avatarData_ = value; - - bitField0_ |= 0x00000010; + copyOnWrite(); + instance.setAvatarData(value); return this; - } + } /** * optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; */ public Builder setAvatarData( de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.Builder builderForValue) { - avatarData_ = builderForValue.build(); - - bitField0_ |= 0x00000010; + copyOnWrite(); + instance.setAvatarData(builderForValue); return this; } /** * optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; */ public Builder mergeAvatarData(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData 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; + copyOnWrite(); + instance.mergeAvatarData(value); return this; } /** * optional .PlayerInfoReplyMessage.PlayerInfoData.AvatarData avatarData = 5; */ - public Builder clearAvatarData() { - avatarData_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.AvatarData.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00000010); + public Builder clearAvatarData() { copyOnWrite(); + instance.clearAvatarData(); 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; - static { - defaultInstance = new PlayerInfoData(true); - defaultInstance.initFields(); + 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(); + } } private int bitField0_; @@ -16099,361 +15869,439 @@ public final class ProtoBuf { /** * required uint32 playerId = 1; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } 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) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData getPlayerInfoData() { - return playerInfoData_; + return playerInfoData_ == null ? de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.getDefaultInstance() : playerInfoData_; } - - private void initFields() { - playerId_ = 0; - playerInfoData_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasPlayerId()) { - memoizedIsInitialized = 0; - return false; + /** + * optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; + */ + private void setPlayerInfoData(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData value) { + if (value == null) { + throw new NullPointerException(); } - if (hasPlayerInfoData()) { - if (!getPlayerInfoData().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } + playerInfoData_ = value; + bitField0_ |= 0x00000002; } - memoizedIsInitialized = 1; - return true; + /** + * optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; + */ + private void setPlayerInfoData( + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.Builder builderForValue) { + playerInfoData_ = builderForValue.build(); + bitField0_ |= 0x00000002; + } + /** + * 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(); + } + 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; + } + bitField0_ |= 0x00000002; + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, playerId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, playerInfoData_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getPlayerInfoData()); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, playerId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, playerInfoData_); + .computeMessageSize(2, getPlayerInfoData()); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code PlayerInfoReplyMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage, Builder> implements // @@protoc_insertion_point(builder_implements:PlayerInfoReplyMessage) de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - private void maybeForceBuilderInitialization() { - } - private static Builder create() { - return new Builder(); - } - public Builder clear() { - super.clear(); - playerId_ = 0; - bitField0_ = (bitField0_ & ~0x00000001); - playerInfoData_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.getDefaultInstance(); - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage getDefaultInstanceForType() { - return de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.getDefaultInstance(); - } - - public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage build() { - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int playerId_ ; /** * required uint32 playerId = 1; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasPlayerId(); } /** * required uint32 playerId = 1; */ + @java.lang.Override public int getPlayerId() { - return playerId_; + return instance.getPlayerId(); } /** * required uint32 playerId = 1; */ public Builder setPlayerId(int value) { - bitField0_ |= 0x00000001; - playerId_ = value; - + copyOnWrite(); + instance.setPlayerId(value); return this; } /** * required uint32 playerId = 1; */ public Builder clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000001); - playerId_ = 0; - + copyOnWrite(); + instance.clearPlayerId(); return this; } - private de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData playerInfoData_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.getDefaultInstance(); /** * optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; */ + @java.lang.Override public boolean hasPlayerInfoData() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPlayerInfoData(); } /** * optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData getPlayerInfoData() { - return playerInfoData_; + return instance.getPlayerInfoData(); } /** * optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; */ public Builder setPlayerInfoData(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData value) { - if (value == null) { - throw new NullPointerException(); - } - playerInfoData_ = value; - - bitField0_ |= 0x00000002; + copyOnWrite(); + instance.setPlayerInfoData(value); return this; - } + } /** * optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; */ public Builder setPlayerInfoData( de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.Builder builderForValue) { - playerInfoData_ = builderForValue.build(); - - bitField0_ |= 0x00000002; + copyOnWrite(); + instance.setPlayerInfoData(builderForValue); return this; } /** * optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; */ public Builder mergePlayerInfoData(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData 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; + copyOnWrite(); + instance.mergePlayerInfoData(value); return this; } /** * optional .PlayerInfoReplyMessage.PlayerInfoData playerInfoData = 2; */ - public Builder clearPlayerInfoData() { - playerInfoData_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.PlayerInfoData.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00000002); + public Builder clearPlayerInfoData() { copyOnWrite(); + instance.clearPlayerInfoData(); 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; - static { - defaultInstance = new PlayerInfoReplyMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface SubscriptionRequestMessageOrBuilder extends @@ -16470,105 +16318,21 @@ public final class ProtoBuf { de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction getSubscriptionAction(); } /** - * Protobuf type {@code SubscriptionRequestMessage} - * *
    * 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 implements + public static final class SubscriptionRequestMessage extends + com.google.protobuf.GeneratedMessageLite< + SubscriptionRequestMessage, SubscriptionRequestMessage.Builder> implements // @@protoc_insertion_point(message_implements:SubscriptionRequestMessage) SubscriptionRequestMessageOrBuilder { - // Use SubscriptionRequestMessage.newBuilder() to construct. - private SubscriptionRequestMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private SubscriptionRequestMessage() { + subscriptionAction_ = 1; } - private SubscriptionRequestMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final SubscriptionRequestMessage defaultInstance; - public static SubscriptionRequestMessage getDefaultInstance() { - return defaultInstance; - } - - public SubscriptionRequestMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private SubscriptionRequestMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - 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) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000001; - subscriptionAction_ = value; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public SubscriptionRequestMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SubscriptionRequestMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - /** * Protobuf enum {@code SubscriptionRequestMessage.SubscriptionAction} */ @@ -16577,11 +16341,11 @@ public final class ProtoBuf { /** * unsubscribeGameList = 1; */ - unsubscribeGameList(0, 1), + unsubscribeGameList(1), /** * resubscribeGameList = 2; */ - resubscribeGameList(1, 2), + resubscribeGameList(2), ; /** @@ -16594,9 +16358,20 @@ public final class ProtoBuf { public static final int resubscribeGameList_VALUE = 2; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -16608,17 +16383,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + SubscriptionAction> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public SubscriptionAction findValueByNumber(int number) { - return SubscriptionAction.valueOf(number); + return SubscriptionAction.forNumber(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 index, int value) { + private SubscriptionAction(int value) { this.value = value; } @@ -16627,269 +16417,326 @@ public final class ProtoBuf { private int bitField0_; public static final int SUBSCRIPTIONACTION_FIELD_NUMBER = 1; - private de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction subscriptionAction_; + private int subscriptionAction_; /** * required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; */ + @java.lang.Override public boolean hasSubscriptionAction() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction getSubscriptionAction() { - return subscriptionAction_; + 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; } - - 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 true; - if (isInitialized == 0) return false; - - if (!hasSubscriptionAction()) { - memoizedIsInitialized = 0; - return false; + /** + * required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; + */ + private void setSubscriptionAction(de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction value) { + if (value == null) { + throw new NullPointerException(); } - memoizedIsInitialized = 1; - return true; + bitField0_ |= 0x00000001; + subscriptionAction_ = value.getNumber(); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, subscriptionAction_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, subscriptionAction_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, subscriptionAction_.getNumber()); + .computeEnumSize(1, subscriptionAction_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** - * Protobuf type {@code SubscriptionRequestMessage} - * *
      * 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 Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage, Builder> implements // @@protoc_insertion_point(builder_implements:SubscriptionRequestMessage) de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction subscriptionAction_ = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction.unsubscribeGameList; /** * required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; */ + @java.lang.Override public boolean hasSubscriptionAction() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasSubscriptionAction(); } /** * required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction getSubscriptionAction() { - return subscriptionAction_; + return instance.getSubscriptionAction(); } /** * required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; */ public Builder setSubscriptionAction(de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - subscriptionAction_ = value; - + copyOnWrite(); + instance.setSubscriptionAction(value); return this; } /** * required .SubscriptionRequestMessage.SubscriptionAction subscriptionAction = 1; */ public Builder clearSubscriptionAction() { - bitField0_ = (bitField0_ & ~0x00000001); - subscriptionAction_ = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.SubscriptionAction.unsubscribeGameList; - + copyOnWrite(); + instance.clearSubscriptionAction(); 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; - static { - defaultInstance = new SubscriptionRequestMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface JoinExistingGameMessageOrBuilder extends @@ -16940,163 +16787,98 @@ public final class ProtoBuf { /** * Protobuf type {@code JoinExistingGameMessage} */ - public static final class JoinExistingGameMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class JoinExistingGameMessage extends + com.google.protobuf.GeneratedMessageLite< + JoinExistingGameMessage, JoinExistingGameMessage.Builder> implements // @@protoc_insertion_point(message_implements:JoinExistingGameMessage) JoinExistingGameMessageOrBuilder { - // Use JoinExistingGameMessage.newBuilder() to construct. - private JoinExistingGameMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private JoinExistingGameMessage() { + password_ = ""; } - private JoinExistingGameMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final JoinExistingGameMessage defaultInstance; - public static JoinExistingGameMessage getDefaultInstance() { - return defaultInstance; - } - - public JoinExistingGameMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private JoinExistingGameMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - password_ = bs; - break; - } - case 24: { - bitField0_ |= 0x00000004; - autoLeave_ = input.readBool(); - break; - } - case 32: { - bitField0_ |= 0x00000008; - spectateOnly_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public JoinExistingGameMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new JoinExistingGameMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PASSWORD_FIELD_NUMBER = 2; - private java.lang.Object password_; + private java.lang.String password_; /** * optional string password = 2; */ + @java.lang.Override public boolean hasPassword() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string password = 2; */ + @java.lang.Override public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - password_ = s; - } - return s; - } + return password_; } /** * optional string password = 2; */ + @java.lang.Override public com.google.protobuf.ByteString getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + return com.google.protobuf.ByteString.copyFromUtf8(password_); + } + /** + * 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(); } public static final int AUTOLEAVE_FIELD_NUMBER = 3; @@ -17104,376 +16886,271 @@ public final class ProtoBuf { /** * optional bool autoLeave = 3 [default = false]; */ + @java.lang.Override public boolean hasAutoLeave() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * 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; + } 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) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional bool spectateOnly = 4 [default = false]; */ + @java.lang.Override public boolean getSpectateOnly() { return spectateOnly_; } - - private void initFields() { - gameId_ = 0; - password_ = ""; - autoLeave_ = false; + /** + * 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); spectateOnly_ = false; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getPasswordBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeString(2, getPassword()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(3, autoLeave_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(4, spectateOnly_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getPasswordBytes()); + .computeStringSize(2, getPassword()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, autoLeave_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, spectateOnly_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code JoinExistingGameMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage, Builder> implements // @@protoc_insertion_point(builder_implements:JoinExistingGameMessage) de.pokerth.protocol.ProtoBuf.JoinExistingGameMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()) { - bitField0_ |= 0x00000002; - password_ = other.password_; - - } - if (other.hasAutoLeave()) { - setAutoLeave(other.getAutoLeave()); - } - if (other.hasSpectateOnly()) { - setSpectateOnly(other.getSpectateOnly()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private java.lang.Object password_ = ""; /** * optional string password = 2; */ + @java.lang.Override public boolean hasPassword() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPassword(); } /** * optional string password = 2; */ + @java.lang.Override public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - password_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } + return instance.getPassword(); } /** * optional string password = 2; */ + @java.lang.Override public com.google.protobuf.ByteString getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + return instance.getPasswordBytes(); } /** * optional string password = 2; */ public Builder setPassword( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - password_ = value; - + copyOnWrite(); + instance.setPassword(value); return this; } /** * optional string password = 2; */ public Builder clearPassword() { - bitField0_ = (bitField0_ & ~0x00000002); - password_ = getDefaultInstance().getPassword(); - + copyOnWrite(); + instance.clearPassword(); return this; } /** @@ -17481,88 +17158,224 @@ public final class ProtoBuf { */ public Builder setPasswordBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - password_ = value; - + copyOnWrite(); + instance.setPasswordBytes(value); return this; } - private boolean autoLeave_ ; /** * optional bool autoLeave = 3 [default = false]; */ + @java.lang.Override public boolean hasAutoLeave() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasAutoLeave(); } /** * optional bool autoLeave = 3 [default = false]; */ + @java.lang.Override public boolean getAutoLeave() { - return autoLeave_; + return instance.getAutoLeave(); } /** * optional bool autoLeave = 3 [default = false]; */ public Builder setAutoLeave(boolean value) { - bitField0_ |= 0x00000004; - autoLeave_ = value; - + copyOnWrite(); + instance.setAutoLeave(value); return this; } /** * optional bool autoLeave = 3 [default = false]; */ public Builder clearAutoLeave() { - bitField0_ = (bitField0_ & ~0x00000004); - autoLeave_ = false; - + copyOnWrite(); + instance.clearAutoLeave(); return this; } - private boolean spectateOnly_ ; /** * optional bool spectateOnly = 4 [default = false]; */ + @java.lang.Override public boolean hasSpectateOnly() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return instance.hasSpectateOnly(); } /** * optional bool spectateOnly = 4 [default = false]; */ + @java.lang.Override public boolean getSpectateOnly() { - return spectateOnly_; + return instance.getSpectateOnly(); } /** * optional bool spectateOnly = 4 [default = false]; */ public Builder setSpectateOnly(boolean value) { - bitField0_ |= 0x00000008; - spectateOnly_ = value; - + copyOnWrite(); + instance.setSpectateOnly(value); return this; } /** * optional bool spectateOnly = 4 [default = false]; */ public Builder clearSpectateOnly() { - bitField0_ = (bitField0_ & ~0x00000008); - spectateOnly_ = false; - + copyOnWrite(); + instance.clearSpectateOnly(); 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; - static { - defaultInstance = new JoinExistingGameMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface JoinNewGameMessageOrBuilder extends @@ -17604,166 +17417,125 @@ public final class ProtoBuf { /** * Protobuf type {@code JoinNewGameMessage} */ - public static final class JoinNewGameMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class JoinNewGameMessage extends + com.google.protobuf.GeneratedMessageLite< + JoinNewGameMessage, JoinNewGameMessage.Builder> implements // @@protoc_insertion_point(message_implements:JoinNewGameMessage) JoinNewGameMessageOrBuilder { - // Use JoinNewGameMessage.newBuilder() to construct. - private JoinNewGameMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private JoinNewGameMessage() { + password_ = ""; } - private JoinNewGameMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final JoinNewGameMessage defaultInstance; - public static JoinNewGameMessage getDefaultInstance() { - return defaultInstance; - } - - public JoinNewGameMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private JoinNewGameMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - 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: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - password_ = bs; - break; - } - case 24: { - bitField0_ |= 0x00000004; - autoLeave_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public JoinNewGameMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new JoinNewGameMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; 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) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .NetGameInfo gameInfo = 1; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo() { - return gameInfo_; + return gameInfo_ == null ? de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance() : 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); } public static final int PASSWORD_FIELD_NUMBER = 2; - private java.lang.Object password_; + private java.lang.String password_; /** * optional string password = 2; */ + @java.lang.Override public boolean hasPassword() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional string password = 2; */ + @java.lang.Override public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - password_ = s; - } - return s; - } + return password_; } /** * optional string password = 2; */ + @java.lang.Override public com.google.protobuf.ByteString getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + return com.google.protobuf.ByteString.copyFromUtf8(password_); + } + /** + * 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(); } public static final int AUTOLEAVE_FIELD_NUMBER = 3; @@ -17771,380 +17543,249 @@ public final class ProtoBuf { /** * optional bool autoLeave = 3; */ + @java.lang.Override public boolean hasAutoLeave() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional bool autoLeave = 3; */ + @java.lang.Override public boolean getAutoLeave() { return autoLeave_; } - - private void initFields() { - gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); - password_ = ""; + /** + * optional bool autoLeave = 3; + */ + private void setAutoLeave(boolean value) { + bitField0_ |= 0x00000004; + autoLeave_ = value; + } + /** + * optional bool autoLeave = 3; + */ + private void clearAutoLeave() { + bitField0_ = (bitField0_ & ~0x00000004); autoLeave_ = false; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameInfo()) { - memoizedIsInitialized = 0; - return false; - } - if (!getGameInfo().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, gameInfo_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getGameInfo()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeBytes(2, getPasswordBytes()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeString(2, getPassword()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(3, autoLeave_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, gameInfo_); + .computeMessageSize(1, getGameInfo()); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, getPasswordBytes()); + .computeStringSize(2, getPassword()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, autoLeave_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.JoinNewGameMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code JoinNewGameMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.JoinNewGameMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.JoinNewGameMessage, Builder> implements // @@protoc_insertion_point(builder_implements:JoinNewGameMessage) de.pokerth.protocol.ProtoBuf.JoinNewGameMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - private void maybeForceBuilderInitialization() { - } - private static Builder create() { - return new Builder(); - } - 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); - } - 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()) { - bitField0_ |= 0x00000002; - password_ = other.password_; - - } - if (other.hasAutoLeave()) { - setAutoLeave(other.getAutoLeave()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.JoinNewGameMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.JoinNewGameMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private de.pokerth.protocol.ProtoBuf.NetGameInfo gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); /** * required .NetGameInfo gameInfo = 1; */ + @java.lang.Override public boolean hasGameInfo() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameInfo(); } /** * required .NetGameInfo gameInfo = 1; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo() { - return gameInfo_; + return instance.getGameInfo(); } /** * required .NetGameInfo gameInfo = 1; */ public Builder setGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo value) { - if (value == null) { - throw new NullPointerException(); - } - gameInfo_ = value; - - bitField0_ |= 0x00000001; + copyOnWrite(); + instance.setGameInfo(value); return this; - } + } /** * required .NetGameInfo gameInfo = 1; */ public Builder setGameInfo( de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder builderForValue) { - gameInfo_ = builderForValue.build(); - - bitField0_ |= 0x00000001; + copyOnWrite(); + instance.setGameInfo(builderForValue); return this; } /** * required .NetGameInfo gameInfo = 1; */ public Builder mergeGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo 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; + copyOnWrite(); + instance.mergeGameInfo(value); return this; } /** * required .NetGameInfo gameInfo = 1; */ - public Builder clearGameInfo() { - gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearGameInfo() { copyOnWrite(); + instance.clearGameInfo(); return this; } - private java.lang.Object password_ = ""; /** * optional string password = 2; */ + @java.lang.Override public boolean hasPassword() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPassword(); } /** * optional string password = 2; */ + @java.lang.Override public java.lang.String getPassword() { - java.lang.Object ref = password_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - password_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } + return instance.getPassword(); } /** * optional string password = 2; */ + @java.lang.Override public com.google.protobuf.ByteString getPasswordBytes() { - java.lang.Object ref = password_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - password_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + return instance.getPasswordBytes(); } /** * optional string password = 2; */ public Builder setPassword( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - password_ = value; - + copyOnWrite(); + instance.setPassword(value); return this; } /** * optional string password = 2; */ public Builder clearPassword() { - bitField0_ = (bitField0_ & ~0x00000002); - password_ = getDefaultInstance().getPassword(); - + copyOnWrite(); + instance.clearPassword(); return this; } /** @@ -18152,56 +17793,194 @@ public final class ProtoBuf { */ public Builder setPasswordBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - password_ = value; - + copyOnWrite(); + instance.setPasswordBytes(value); return this; } - private boolean autoLeave_ ; /** * optional bool autoLeave = 3; */ + @java.lang.Override public boolean hasAutoLeave() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasAutoLeave(); } /** * optional bool autoLeave = 3; */ + @java.lang.Override public boolean getAutoLeave() { - return autoLeave_; + return instance.getAutoLeave(); } /** * optional bool autoLeave = 3; */ public Builder setAutoLeave(boolean value) { - bitField0_ |= 0x00000004; - autoLeave_ = value; - + copyOnWrite(); + instance.setAutoLeave(value); return this; } /** * optional bool autoLeave = 3; */ public Builder clearAutoLeave() { - bitField0_ = (bitField0_ & ~0x00000004); - autoLeave_ = false; - + copyOnWrite(); + instance.clearAutoLeave(); 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; - static { - defaultInstance = new JoinNewGameMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface RejoinExistingGameMessageOrBuilder extends @@ -18229,417 +18008,398 @@ public final class ProtoBuf { /** * Protobuf type {@code RejoinExistingGameMessage} */ - public static final class RejoinExistingGameMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class RejoinExistingGameMessage extends + com.google.protobuf.GeneratedMessageLite< + RejoinExistingGameMessage, RejoinExistingGameMessage.Builder> implements // @@protoc_insertion_point(message_implements:RejoinExistingGameMessage) RejoinExistingGameMessageOrBuilder { - // Use RejoinExistingGameMessage.newBuilder() to construct. - private RejoinExistingGameMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private RejoinExistingGameMessage() { } - private RejoinExistingGameMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final RejoinExistingGameMessage defaultInstance; - public static RejoinExistingGameMessage getDefaultInstance() { - return defaultInstance; - } - - public RejoinExistingGameMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private RejoinExistingGameMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - autoLeave_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public RejoinExistingGameMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RejoinExistingGameMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int AUTOLEAVE_FIELD_NUMBER = 2; private boolean autoLeave_; /** * optional bool autoLeave = 2; */ + @java.lang.Override public boolean hasAutoLeave() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional bool autoLeave = 2; */ + @java.lang.Override public boolean getAutoLeave() { return autoLeave_; } - - private void initFields() { - gameId_ = 0; + /** + * optional bool autoLeave = 2; + */ + private void setAutoLeave(boolean value) { + bitField0_ |= 0x00000002; + autoLeave_ = value; + } + /** + * optional bool autoLeave = 2; + */ + private void clearAutoLeave() { + bitField0_ = (bitField0_ & ~0x00000002); autoLeave_ = false; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, autoLeave_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, autoLeave_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code RejoinExistingGameMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage, Builder> implements // @@protoc_insertion_point(builder_implements:RejoinExistingGameMessage) de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private boolean autoLeave_ ; /** * optional bool autoLeave = 2; */ + @java.lang.Override public boolean hasAutoLeave() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasAutoLeave(); } /** * optional bool autoLeave = 2; */ + @java.lang.Override public boolean getAutoLeave() { - return autoLeave_; + return instance.getAutoLeave(); } /** * optional bool autoLeave = 2; */ public Builder setAutoLeave(boolean value) { - bitField0_ |= 0x00000002; - autoLeave_ = value; - + copyOnWrite(); + instance.setAutoLeave(value); return this; } /** * optional bool autoLeave = 2; */ public Builder clearAutoLeave() { - bitField0_ = (bitField0_ & ~0x00000002); - autoLeave_ = false; - + copyOnWrite(); + instance.clearAutoLeave(); 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; - static { - defaultInstance = new RejoinExistingGameMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface JoinGameAckMessageOrBuilder extends @@ -18685,158 +18445,132 @@ public final class ProtoBuf { /** * Protobuf type {@code JoinGameAckMessage} */ - public static final class JoinGameAckMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class JoinGameAckMessage extends + com.google.protobuf.GeneratedMessageLite< + JoinGameAckMessage, JoinGameAckMessage.Builder> implements // @@protoc_insertion_point(message_implements:JoinGameAckMessage) JoinGameAckMessageOrBuilder { - // Use JoinGameAckMessage.newBuilder() to construct. - private JoinGameAckMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private JoinGameAckMessage() { } - private JoinGameAckMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final JoinGameAckMessage defaultInstance; - public static JoinGameAckMessage getDefaultInstance() { - return defaultInstance; - } - - public JoinGameAckMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private JoinGameAckMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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) == 0x00000004)) { - 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; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public JoinGameAckMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new JoinGameAckMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int AREYOUGAMEADMIN_FIELD_NUMBER = 2; private boolean areYouGameAdmin_; /** * required bool areYouGameAdmin = 2; */ + @java.lang.Override public boolean hasAreYouGameAdmin() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } 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) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required .NetGameInfo gameInfo = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo() { - return gameInfo_; + return gameInfo_ == null ? de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance() : 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); } public static final int SPECTATEONLY_FIELD_NUMBER = 4; @@ -18844,456 +18578,477 @@ public final class ProtoBuf { /** * optional bool spectateOnly = 4; */ + @java.lang.Override public boolean hasSpectateOnly() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional bool spectateOnly = 4; */ + @java.lang.Override public boolean getSpectateOnly() { return spectateOnly_; } - - private void initFields() { - gameId_ = 0; - areYouGameAdmin_ = false; - gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); + /** + * optional bool spectateOnly = 4; + */ + private void setSpectateOnly(boolean value) { + bitField0_ |= 0x00000008; + spectateOnly_ = value; + } + /** + * optional bool spectateOnly = 4; + */ + private void clearSpectateOnly() { + bitField0_ = (bitField0_ & ~0x00000008); spectateOnly_ = false; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - 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; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, areYouGameAdmin_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, gameInfo_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getGameInfo()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(4, spectateOnly_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, areYouGameAdmin_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, gameInfo_); + .computeMessageSize(3, getGameInfo()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, spectateOnly_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.JoinGameAckMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code JoinGameAckMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.JoinGameAckMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.JoinGameAckMessage, Builder> implements // @@protoc_insertion_point(builder_implements:JoinGameAckMessage) de.pokerth.protocol.ProtoBuf.JoinGameAckMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - private void maybeForceBuilderInitialization() { - } - private static Builder create() { - return new Builder(); - } - 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; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public de.pokerth.protocol.ProtoBuf.JoinGameAckMessage getDefaultInstanceForType() { - return de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.getDefaultInstance(); - } - - public de.pokerth.protocol.ProtoBuf.JoinGameAckMessage build() { - de.pokerth.protocol.ProtoBuf.JoinGameAckMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.JoinGameAckMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.JoinGameAckMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private boolean areYouGameAdmin_ ; /** * required bool areYouGameAdmin = 2; */ + @java.lang.Override public boolean hasAreYouGameAdmin() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasAreYouGameAdmin(); } /** * required bool areYouGameAdmin = 2; */ + @java.lang.Override public boolean getAreYouGameAdmin() { - return areYouGameAdmin_; + return instance.getAreYouGameAdmin(); } /** * required bool areYouGameAdmin = 2; */ public Builder setAreYouGameAdmin(boolean value) { - bitField0_ |= 0x00000002; - areYouGameAdmin_ = value; - + copyOnWrite(); + instance.setAreYouGameAdmin(value); return this; } /** * required bool areYouGameAdmin = 2; */ public Builder clearAreYouGameAdmin() { - bitField0_ = (bitField0_ & ~0x00000002); - areYouGameAdmin_ = false; - + copyOnWrite(); + instance.clearAreYouGameAdmin(); return this; } - private de.pokerth.protocol.ProtoBuf.NetGameInfo gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); /** * required .NetGameInfo gameInfo = 3; */ + @java.lang.Override public boolean hasGameInfo() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasGameInfo(); } /** * required .NetGameInfo gameInfo = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameInfo getGameInfo() { - return gameInfo_; + return instance.getGameInfo(); } /** * required .NetGameInfo gameInfo = 3; */ public Builder setGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo value) { - if (value == null) { - throw new NullPointerException(); - } - gameInfo_ = value; - - bitField0_ |= 0x00000004; + copyOnWrite(); + instance.setGameInfo(value); return this; - } + } /** * required .NetGameInfo gameInfo = 3; */ public Builder setGameInfo( de.pokerth.protocol.ProtoBuf.NetGameInfo.Builder builderForValue) { - gameInfo_ = builderForValue.build(); - - bitField0_ |= 0x00000004; + copyOnWrite(); + instance.setGameInfo(builderForValue); return this; } /** * required .NetGameInfo gameInfo = 3; */ public Builder mergeGameInfo(de.pokerth.protocol.ProtoBuf.NetGameInfo 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; + copyOnWrite(); + instance.mergeGameInfo(value); return this; } /** * required .NetGameInfo gameInfo = 3; */ - public Builder clearGameInfo() { - gameInfo_ = de.pokerth.protocol.ProtoBuf.NetGameInfo.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00000004); + public Builder clearGameInfo() { copyOnWrite(); + instance.clearGameInfo(); return this; } - private boolean spectateOnly_ ; /** * optional bool spectateOnly = 4; */ + @java.lang.Override public boolean hasSpectateOnly() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return instance.hasSpectateOnly(); } /** * optional bool spectateOnly = 4; */ + @java.lang.Override public boolean getSpectateOnly() { - return spectateOnly_; + return instance.getSpectateOnly(); } /** * optional bool spectateOnly = 4; */ public Builder setSpectateOnly(boolean value) { - bitField0_ |= 0x00000008; - spectateOnly_ = value; - + copyOnWrite(); + instance.setSpectateOnly(value); return this; } /** * optional bool spectateOnly = 4; */ public Builder clearSpectateOnly() { - bitField0_ = (bitField0_ & ~0x00000008); - spectateOnly_ = false; - + copyOnWrite(); + instance.clearSpectateOnly(); 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; - static { - defaultInstance = new JoinGameAckMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface JoinGameFailedMessageOrBuilder extends @@ -19321,103 +19076,14 @@ public final class ProtoBuf { /** * Protobuf type {@code JoinGameFailedMessage} */ - public static final class JoinGameFailedMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class JoinGameFailedMessage extends + com.google.protobuf.GeneratedMessageLite< + JoinGameFailedMessage, JoinGameFailedMessage.Builder> implements // @@protoc_insertion_point(message_implements:JoinGameFailedMessage) JoinGameFailedMessageOrBuilder { - // Use JoinGameFailedMessage.newBuilder() to construct. - private JoinGameFailedMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private JoinGameFailedMessage() { + joinGameFailureReason_ = 1; } - private JoinGameFailedMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final JoinGameFailedMessage defaultInstance; - public static JoinGameFailedMessage getDefaultInstance() { - return defaultInstance; - } - - public JoinGameFailedMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private JoinGameFailedMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000002; - joinGameFailureReason_ = value; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public JoinGameFailedMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new JoinGameFailedMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - /** * Protobuf enum {@code JoinGameFailedMessage.JoinGameFailureReason} */ @@ -19426,51 +19092,51 @@ public final class ProtoBuf { /** * invalidGame = 1; */ - invalidGame(0, 1), + invalidGame(1), /** * gameIsFull = 2; */ - gameIsFull(1, 2), + gameIsFull(2), /** * gameIsRunning = 3; */ - gameIsRunning(2, 3), + gameIsRunning(3), /** * invalidPassword = 4; */ - invalidPassword(3, 4), + invalidPassword(4), /** * notAllowedAsGuest = 5; */ - notAllowedAsGuest(4, 5), + notAllowedAsGuest(5), /** * notInvited = 6; */ - notInvited(5, 6), + notInvited(6), /** * gameNameInUse = 7; */ - gameNameInUse(6, 7), + gameNameInUse(7), /** * badGameName = 8; */ - badGameName(7, 8), + badGameName(8), /** * invalidSettings = 9; */ - invalidSettings(8, 9), + invalidSettings(9), /** * ipAddressBlocked = 10; */ - ipAddressBlocked(9, 10), + ipAddressBlocked(10), /** * rejoinFailed = 11; */ - rejoinFailed(10, 11), + rejoinFailed(11), /** * noSpectatorsAllowed = 12; */ - noSpectatorsAllowed(11, 12), + noSpectatorsAllowed(12), ; /** @@ -19523,9 +19189,20 @@ public final class ProtoBuf { public static final int noSpectatorsAllowed_VALUE = 12; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -19547,17 +19224,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + JoinGameFailureReason> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public JoinGameFailureReason findValueByNumber(int number) { - return JoinGameFailureReason.valueOf(number); + return JoinGameFailureReason.forNumber(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 index, int value) { + private JoinGameFailureReason(int value) { this.value = value; } @@ -19570,332 +19262,397 @@ public final class ProtoBuf { /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int JOINGAMEFAILUREREASON_FIELD_NUMBER = 2; - private de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason_; + private int joinGameFailureReason_; /** * required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; */ + @java.lang.Override public boolean hasJoinGameFailureReason() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason getJoinGameFailureReason() { - return joinGameFailureReason_; + 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; } - - 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 true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; + /** + * required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; + */ + private void setJoinGameFailureReason(de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason value) { + if (value == null) { + throw new NullPointerException(); } - if (!hasJoinGameFailureReason()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + bitField0_ |= 0x00000002; + joinGameFailureReason_ = value.getNumber(); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, joinGameFailureReason_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, joinGameFailureReason_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, joinGameFailureReason_.getNumber()); + .computeEnumSize(2, joinGameFailureReason_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code JoinGameFailedMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage, Builder> implements // @@protoc_insertion_point(builder_implements:JoinGameFailedMessage) de.pokerth.protocol.ProtoBuf.JoinGameFailedMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason_ = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason.invalidGame; /** * required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; */ + @java.lang.Override public boolean hasJoinGameFailureReason() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasJoinGameFailureReason(); } /** * required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason getJoinGameFailureReason() { - return joinGameFailureReason_; + return instance.getJoinGameFailureReason(); } /** * required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; */ public Builder setJoinGameFailureReason(de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - joinGameFailureReason_ = value; - + copyOnWrite(); + instance.setJoinGameFailureReason(value); return this; } /** * required .JoinGameFailedMessage.JoinGameFailureReason joinGameFailureReason = 2; */ public Builder clearJoinGameFailureReason() { - bitField0_ = (bitField0_ & ~0x00000002); - joinGameFailureReason_ = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.JoinGameFailureReason.invalidGame; - + copyOnWrite(); + instance.clearJoinGameFailureReason(); 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; - static { - defaultInstance = new JoinGameFailedMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface GamePlayerJoinedMessageOrBuilder extends @@ -19932,502 +19689,481 @@ public final class ProtoBuf { /** * Protobuf type {@code GamePlayerJoinedMessage} */ - public static final class GamePlayerJoinedMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class GamePlayerJoinedMessage extends + com.google.protobuf.GeneratedMessageLite< + GamePlayerJoinedMessage, GamePlayerJoinedMessage.Builder> implements // @@protoc_insertion_point(message_implements:GamePlayerJoinedMessage) GamePlayerJoinedMessageOrBuilder { - // Use GamePlayerJoinedMessage.newBuilder() to construct. - private GamePlayerJoinedMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private GamePlayerJoinedMessage() { } - private GamePlayerJoinedMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final GamePlayerJoinedMessage defaultInstance; - public static GamePlayerJoinedMessage getDefaultInstance() { - return defaultInstance; - } - - public GamePlayerJoinedMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private GamePlayerJoinedMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GamePlayerJoinedMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GamePlayerJoinedMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } public static final int ISGAMEADMIN_FIELD_NUMBER = 3; private boolean isGameAdmin_; /** * required bool isGameAdmin = 3; */ + @java.lang.Override public boolean hasIsGameAdmin() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required bool isGameAdmin = 3; */ + @java.lang.Override public boolean getIsGameAdmin() { return isGameAdmin_; } - - private void initFields() { - gameId_ = 0; - playerId_ = 0; + /** + * required bool isGameAdmin = 3; + */ + private void setIsGameAdmin(boolean value) { + bitField0_ |= 0x00000004; + isGameAdmin_ = value; + } + /** + * required bool isGameAdmin = 3; + */ + private void clearIsGameAdmin() { + bitField0_ = (bitField0_ & ~0x00000004); isGameAdmin_ = false; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPlayerId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasIsGameAdmin()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, playerId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(3, isGameAdmin_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, isGameAdmin_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code GamePlayerJoinedMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage, Builder> implements // @@protoc_insertion_point(builder_implements:GamePlayerJoinedMessage) de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int playerId_ ; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPlayerId(); } /** * required uint32 playerId = 2; */ + @java.lang.Override public int getPlayerId() { - return playerId_; + return instance.getPlayerId(); } /** * required uint32 playerId = 2; */ public Builder setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - + copyOnWrite(); + instance.setPlayerId(value); return this; } /** * required uint32 playerId = 2; */ public Builder clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - + copyOnWrite(); + instance.clearPlayerId(); return this; } - private boolean isGameAdmin_ ; /** * required bool isGameAdmin = 3; */ + @java.lang.Override public boolean hasIsGameAdmin() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasIsGameAdmin(); } /** * required bool isGameAdmin = 3; */ + @java.lang.Override public boolean getIsGameAdmin() { - return isGameAdmin_; + return instance.getIsGameAdmin(); } /** * required bool isGameAdmin = 3; */ public Builder setIsGameAdmin(boolean value) { - bitField0_ |= 0x00000004; - isGameAdmin_ = value; - + copyOnWrite(); + instance.setIsGameAdmin(value); return this; } /** * required bool isGameAdmin = 3; */ public Builder clearIsGameAdmin() { - bitField0_ = (bitField0_ & ~0x00000004); - isGameAdmin_ = false; - + copyOnWrite(); + instance.clearIsGameAdmin(); 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; - static { - defaultInstance = new GamePlayerJoinedMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface GamePlayerLeftMessageOrBuilder extends @@ -20464,108 +20200,13 @@ public final class ProtoBuf { /** * Protobuf type {@code GamePlayerLeftMessage} */ - public static final class GamePlayerLeftMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class GamePlayerLeftMessage extends + com.google.protobuf.GeneratedMessageLite< + GamePlayerLeftMessage, GamePlayerLeftMessage.Builder> implements // @@protoc_insertion_point(message_implements:GamePlayerLeftMessage) GamePlayerLeftMessageOrBuilder { - // Use GamePlayerLeftMessage.newBuilder() to construct. - private GamePlayerLeftMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private GamePlayerLeftMessage() { } - private GamePlayerLeftMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final GamePlayerLeftMessage defaultInstance; - public static GamePlayerLeftMessage getDefaultInstance() { - return defaultInstance; - } - - public GamePlayerLeftMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private GamePlayerLeftMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000004; - gamePlayerLeftReason_ = value; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GamePlayerLeftMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GamePlayerLeftMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - /** * Protobuf enum {@code GamePlayerLeftMessage.GamePlayerLeftReason} */ @@ -20574,15 +20215,15 @@ public final class ProtoBuf { /** * leftOnRequest = 0; */ - leftOnRequest(0, 0), + leftOnRequest(0), /** * leftKicked = 1; */ - leftKicked(1, 1), + leftKicked(1), /** * leftError = 2; */ - leftError(2, 2), + leftError(2), ; /** @@ -20599,9 +20240,20 @@ public final class ProtoBuf { public static final int leftError_VALUE = 2; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -20614,17 +20266,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + GamePlayerLeftReason> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public GamePlayerLeftReason findValueByNumber(int number) { - return GamePlayerLeftReason.valueOf(number); + return GamePlayerLeftReason.forNumber(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 index, int value) { + private GamePlayerLeftReason(int value) { this.value = value; } @@ -20637,404 +20304,477 @@ public final class ProtoBuf { /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } public static final int GAMEPLAYERLEFTREASON_FIELD_NUMBER = 3; - private de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason_; + private int gamePlayerLeftReason_; /** * required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; */ + @java.lang.Override public boolean hasGamePlayerLeftReason() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason getGamePlayerLeftReason() { - return gamePlayerLeftReason_; + 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; } - - 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 true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPlayerId()) { - memoizedIsInitialized = 0; - return false; + /** + * required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; + */ + private void setGamePlayerLeftReason(de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason value) { + if (value == null) { + throw new NullPointerException(); } - if (!hasGamePlayerLeftReason()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + bitField0_ |= 0x00000004; + gamePlayerLeftReason_ = value.getNumber(); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, playerId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, gamePlayerLeftReason_.getNumber()); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(3, gamePlayerLeftReason_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, gamePlayerLeftReason_.getNumber()); + .computeEnumSize(3, gamePlayerLeftReason_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code GamePlayerLeftMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage, Builder> implements // @@protoc_insertion_point(builder_implements:GamePlayerLeftMessage) de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int playerId_ ; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPlayerId(); } /** * required uint32 playerId = 2; */ + @java.lang.Override public int getPlayerId() { - return playerId_; + return instance.getPlayerId(); } /** * required uint32 playerId = 2; */ public Builder setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - + copyOnWrite(); + instance.setPlayerId(value); return this; } /** * required uint32 playerId = 2; */ public Builder clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - + copyOnWrite(); + instance.clearPlayerId(); return this; } - private de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason.leftOnRequest; /** * required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; */ + @java.lang.Override public boolean hasGamePlayerLeftReason() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasGamePlayerLeftReason(); } /** * required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason getGamePlayerLeftReason() { - return gamePlayerLeftReason_; + return instance.getGamePlayerLeftReason(); } /** * required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; */ public Builder setGamePlayerLeftReason(de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - gamePlayerLeftReason_ = value; - + copyOnWrite(); + instance.setGamePlayerLeftReason(value); return this; } /** * required .GamePlayerLeftMessage.GamePlayerLeftReason gamePlayerLeftReason = 3; */ public Builder clearGamePlayerLeftReason() { - bitField0_ = (bitField0_ & ~0x00000004); - gamePlayerLeftReason_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason.leftOnRequest; - + copyOnWrite(); + instance.clearGamePlayerLeftReason(); 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; - static { - defaultInstance = new GamePlayerLeftMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface GameSpectatorJoinedMessageOrBuilder extends @@ -21062,425 +20802,401 @@ public final class ProtoBuf { /** * Protobuf type {@code GameSpectatorJoinedMessage} */ - public static final class GameSpectatorJoinedMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class GameSpectatorJoinedMessage extends + com.google.protobuf.GeneratedMessageLite< + GameSpectatorJoinedMessage, GameSpectatorJoinedMessage.Builder> implements // @@protoc_insertion_point(message_implements:GameSpectatorJoinedMessage) GameSpectatorJoinedMessageOrBuilder { - // Use GameSpectatorJoinedMessage.newBuilder() to construct. - private GameSpectatorJoinedMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private GameSpectatorJoinedMessage() { } - private GameSpectatorJoinedMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final GameSpectatorJoinedMessage defaultInstance; - public static GameSpectatorJoinedMessage getDefaultInstance() { - return defaultInstance; - } - - public GameSpectatorJoinedMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private GameSpectatorJoinedMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GameSpectatorJoinedMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GameSpectatorJoinedMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required uint32 playerId = 2; */ + @java.lang.Override public int getPlayerId() { return playerId_; } - - private void initFields() { - gameId_ = 0; + /** + * 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; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPlayerId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, playerId_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code GameSpectatorJoinedMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage, Builder> implements // @@protoc_insertion_point(builder_implements:GameSpectatorJoinedMessage) de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int playerId_ ; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPlayerId(); } /** * required uint32 playerId = 2; */ + @java.lang.Override public int getPlayerId() { - return playerId_; + return instance.getPlayerId(); } /** * required uint32 playerId = 2; */ public Builder setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - + copyOnWrite(); + instance.setPlayerId(value); return this; } /** * required uint32 playerId = 2; */ public Builder clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - + copyOnWrite(); + instance.clearPlayerId(); 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; - static { - defaultInstance = new GameSpectatorJoinedMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface GameSpectatorLeftMessageOrBuilder extends @@ -21517,512 +21233,490 @@ public final class ProtoBuf { /** * Protobuf type {@code GameSpectatorLeftMessage} */ - public static final class GameSpectatorLeftMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class GameSpectatorLeftMessage extends + com.google.protobuf.GeneratedMessageLite< + GameSpectatorLeftMessage, GameSpectatorLeftMessage.Builder> implements // @@protoc_insertion_point(message_implements:GameSpectatorLeftMessage) GameSpectatorLeftMessageOrBuilder { - // Use GameSpectatorLeftMessage.newBuilder() to construct. - private GameSpectatorLeftMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private GameSpectatorLeftMessage() { } - private GameSpectatorLeftMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final GameSpectatorLeftMessage defaultInstance; - public static GameSpectatorLeftMessage getDefaultInstance() { - return defaultInstance; - } - - public GameSpectatorLeftMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private GameSpectatorLeftMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000004; - gameSpectatorLeftReason_ = value; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GameSpectatorLeftMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GameSpectatorLeftMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } public static final int GAMESPECTATORLEFTREASON_FIELD_NUMBER = 3; - private de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason_; + private int gameSpectatorLeftReason_; /** * required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; */ + @java.lang.Override public boolean hasGameSpectatorLeftReason() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason getGameSpectatorLeftReason() { - return gameSpectatorLeftReason_; + 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; } - - 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 true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPlayerId()) { - memoizedIsInitialized = 0; - return false; + /** + * required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; + */ + private void setGameSpectatorLeftReason(de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason value) { + if (value == null) { + throw new NullPointerException(); } - if (!hasGameSpectatorLeftReason()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + bitField0_ |= 0x00000004; + gameSpectatorLeftReason_ = value.getNumber(); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, playerId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, gameSpectatorLeftReason_.getNumber()); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(3, gameSpectatorLeftReason_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, gameSpectatorLeftReason_.getNumber()); + .computeEnumSize(3, gameSpectatorLeftReason_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code GameSpectatorLeftMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage, Builder> implements // @@protoc_insertion_point(builder_implements:GameSpectatorLeftMessage) de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int playerId_ ; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPlayerId(); } /** * required uint32 playerId = 2; */ + @java.lang.Override public int getPlayerId() { - return playerId_; + return instance.getPlayerId(); } /** * required uint32 playerId = 2; */ public Builder setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - + copyOnWrite(); + instance.setPlayerId(value); return this; } /** * required uint32 playerId = 2; */ public Builder clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - + copyOnWrite(); + instance.clearPlayerId(); return this; } - private de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason.leftOnRequest; /** * required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; */ + @java.lang.Override public boolean hasGameSpectatorLeftReason() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasGameSpectatorLeftReason(); } /** * required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason getGameSpectatorLeftReason() { - return gameSpectatorLeftReason_; + return instance.getGameSpectatorLeftReason(); } /** * required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; */ public Builder setGameSpectatorLeftReason(de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - gameSpectatorLeftReason_ = value; - + copyOnWrite(); + instance.setGameSpectatorLeftReason(value); return this; } /** * required .GamePlayerLeftMessage.GamePlayerLeftReason gameSpectatorLeftReason = 3; */ public Builder clearGameSpectatorLeftReason() { - bitField0_ = (bitField0_ & ~0x00000004); - gameSpectatorLeftReason_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.GamePlayerLeftReason.leftOnRequest; - + copyOnWrite(); + instance.clearGameSpectatorLeftReason(); 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; - static { - defaultInstance = new GameSpectatorLeftMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface GameAdminChangedMessageOrBuilder extends @@ -22050,425 +21744,401 @@ public final class ProtoBuf { /** * Protobuf type {@code GameAdminChangedMessage} */ - public static final class GameAdminChangedMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class GameAdminChangedMessage extends + com.google.protobuf.GeneratedMessageLite< + GameAdminChangedMessage, GameAdminChangedMessage.Builder> implements // @@protoc_insertion_point(message_implements:GameAdminChangedMessage) GameAdminChangedMessageOrBuilder { - // Use GameAdminChangedMessage.newBuilder() to construct. - private GameAdminChangedMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private GameAdminChangedMessage() { } - private GameAdminChangedMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final GameAdminChangedMessage defaultInstance; - public static GameAdminChangedMessage getDefaultInstance() { - return defaultInstance; - } - - public GameAdminChangedMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private GameAdminChangedMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - newAdminPlayerId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GameAdminChangedMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GameAdminChangedMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int NEWADMINPLAYERID_FIELD_NUMBER = 2; private int newAdminPlayerId_; /** * required uint32 newAdminPlayerId = 2; */ + @java.lang.Override public boolean hasNewAdminPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required uint32 newAdminPlayerId = 2; */ + @java.lang.Override public int getNewAdminPlayerId() { return newAdminPlayerId_; } - - private void initFields() { - gameId_ = 0; + /** + * required uint32 newAdminPlayerId = 2; + */ + private void setNewAdminPlayerId(int value) { + bitField0_ |= 0x00000002; + newAdminPlayerId_ = value; + } + /** + * required uint32 newAdminPlayerId = 2; + */ + private void clearNewAdminPlayerId() { + bitField0_ = (bitField0_ & ~0x00000002); newAdminPlayerId_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasNewAdminPlayerId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, newAdminPlayerId_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, newAdminPlayerId_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code GameAdminChangedMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage, Builder> implements // @@protoc_insertion_point(builder_implements:GameAdminChangedMessage) de.pokerth.protocol.ProtoBuf.GameAdminChangedMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int newAdminPlayerId_ ; /** * required uint32 newAdminPlayerId = 2; */ + @java.lang.Override public boolean hasNewAdminPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasNewAdminPlayerId(); } /** * required uint32 newAdminPlayerId = 2; */ + @java.lang.Override public int getNewAdminPlayerId() { - return newAdminPlayerId_; + return instance.getNewAdminPlayerId(); } /** * required uint32 newAdminPlayerId = 2; */ public Builder setNewAdminPlayerId(int value) { - bitField0_ |= 0x00000002; - newAdminPlayerId_ = value; - + copyOnWrite(); + instance.setNewAdminPlayerId(value); return this; } /** * required uint32 newAdminPlayerId = 2; */ public Builder clearNewAdminPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - newAdminPlayerId_ = 0; - + copyOnWrite(); + instance.clearNewAdminPlayerId(); 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; - static { - defaultInstance = new GameAdminChangedMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface RemovedFromGameMessageOrBuilder extends @@ -22496,148 +22166,58 @@ public final class ProtoBuf { /** * Protobuf type {@code RemovedFromGameMessage} */ - public static final class RemovedFromGameMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class RemovedFromGameMessage extends + com.google.protobuf.GeneratedMessageLite< + RemovedFromGameMessage, RemovedFromGameMessage.Builder> implements // @@protoc_insertion_point(message_implements:RemovedFromGameMessage) RemovedFromGameMessageOrBuilder { - // Use RemovedFromGameMessage.newBuilder() to construct. - private RemovedFromGameMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private RemovedFromGameMessage() { } - private RemovedFromGameMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final RemovedFromGameMessage defaultInstance; - public static RemovedFromGameMessage getDefaultInstance() { - return defaultInstance; - } - - public RemovedFromGameMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private RemovedFromGameMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000002; - removedFromGameReason_ = value; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public RemovedFromGameMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RemovedFromGameMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - /** * Protobuf enum {@code RemovedFromGameMessage.RemovedFromGameReason} */ public enum RemovedFromGameReason implements com.google.protobuf.Internal.EnumLite { /** - * removedOnRequest = 0; - * *
        * No error, client wished to leave.
        * 
+ * + * removedOnRequest = 0; */ - removedOnRequest(0, 0), + removedOnRequest(0), /** * kickedFromGame = 1; */ - kickedFromGame(1, 1), + kickedFromGame(1), /** * gameIsFull = 2; */ - gameIsFull(2, 2), + gameIsFull(2), /** * gameIsRunning = 3; */ - gameIsRunning(3, 3), + gameIsRunning(3), /** * gameTimeout = 4; */ - gameTimeout(4, 4), + gameTimeout(4), /** * removedStartFailed = 5; */ - removedStartFailed(5, 5), + removedStartFailed(5), /** * gameClosed = 6; */ - gameClosed(6, 6), + gameClosed(6), ; /** - * removedOnRequest = 0; - * *
        * No error, client wished to leave.
        * 
+ * + * removedOnRequest = 0; */ public static final int removedOnRequest_VALUE = 0; /** @@ -22666,9 +22246,20 @@ public final class ProtoBuf { public static final int gameClosed_VALUE = 6; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -22685,17 +22276,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + RemovedFromGameReason> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public RemovedFromGameReason findValueByNumber(int number) { - return RemovedFromGameReason.valueOf(number); + return RemovedFromGameReason.forNumber(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 index, int value) { + private RemovedFromGameReason(int value) { this.value = value; } @@ -22708,332 +22314,397 @@ public final class ProtoBuf { /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int REMOVEDFROMGAMEREASON_FIELD_NUMBER = 2; - private de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason_; + private int removedFromGameReason_; /** * required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; */ + @java.lang.Override public boolean hasRemovedFromGameReason() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason getRemovedFromGameReason() { - return removedFromGameReason_; + 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; } - - 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 true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; + /** + * required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; + */ + private void setRemovedFromGameReason(de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason value) { + if (value == null) { + throw new NullPointerException(); } - if (!hasRemovedFromGameReason()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + bitField0_ |= 0x00000002; + removedFromGameReason_ = value.getNumber(); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, removedFromGameReason_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, removedFromGameReason_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, removedFromGameReason_.getNumber()); + .computeEnumSize(2, removedFromGameReason_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code RemovedFromGameMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage, Builder> implements // @@protoc_insertion_point(builder_implements:RemovedFromGameMessage) de.pokerth.protocol.ProtoBuf.RemovedFromGameMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason_ = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason.removedOnRequest; /** * required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; */ + @java.lang.Override public boolean hasRemovedFromGameReason() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasRemovedFromGameReason(); } /** * required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason getRemovedFromGameReason() { - return removedFromGameReason_; + return instance.getRemovedFromGameReason(); } /** * required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; */ public Builder setRemovedFromGameReason(de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - removedFromGameReason_ = value; - + copyOnWrite(); + instance.setRemovedFromGameReason(value); return this; } /** * required .RemovedFromGameMessage.RemovedFromGameReason removedFromGameReason = 2; */ public Builder clearRemovedFromGameReason() { - bitField0_ = (bitField0_ & ~0x00000002); - removedFromGameReason_ = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.RemovedFromGameReason.removedOnRequest; - + copyOnWrite(); + instance.clearRemovedFromGameReason(); 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; - static { - defaultInstance = new RemovedFromGameMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface KickPlayerRequestMessageOrBuilder extends @@ -23061,425 +22732,401 @@ public final class ProtoBuf { /** * Protobuf type {@code KickPlayerRequestMessage} */ - public static final class KickPlayerRequestMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class KickPlayerRequestMessage extends + com.google.protobuf.GeneratedMessageLite< + KickPlayerRequestMessage, KickPlayerRequestMessage.Builder> implements // @@protoc_insertion_point(message_implements:KickPlayerRequestMessage) KickPlayerRequestMessageOrBuilder { - // Use KickPlayerRequestMessage.newBuilder() to construct. - private KickPlayerRequestMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private KickPlayerRequestMessage() { } - private KickPlayerRequestMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final KickPlayerRequestMessage defaultInstance; - public static KickPlayerRequestMessage getDefaultInstance() { - return defaultInstance; - } - - public KickPlayerRequestMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private KickPlayerRequestMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public KickPlayerRequestMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KickPlayerRequestMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required uint32 playerId = 2; */ + @java.lang.Override public int getPlayerId() { return playerId_; } - - private void initFields() { - gameId_ = 0; + /** + * 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; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPlayerId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, playerId_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code KickPlayerRequestMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage, Builder> implements // @@protoc_insertion_point(builder_implements:KickPlayerRequestMessage) de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int playerId_ ; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPlayerId(); } /** * required uint32 playerId = 2; */ + @java.lang.Override public int getPlayerId() { - return playerId_; + return instance.getPlayerId(); } /** * required uint32 playerId = 2; */ public Builder setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - + copyOnWrite(); + instance.setPlayerId(value); return this; } /** * required uint32 playerId = 2; */ public Builder clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - + copyOnWrite(); + instance.clearPlayerId(); 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; - static { - defaultInstance = new KickPlayerRequestMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface LeaveGameRequestMessageOrBuilder extends @@ -23498,348 +23145,321 @@ public final class ProtoBuf { /** * Protobuf type {@code LeaveGameRequestMessage} */ - public static final class LeaveGameRequestMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class LeaveGameRequestMessage extends + com.google.protobuf.GeneratedMessageLite< + LeaveGameRequestMessage, LeaveGameRequestMessage.Builder> implements // @@protoc_insertion_point(message_implements:LeaveGameRequestMessage) LeaveGameRequestMessageOrBuilder { - // Use LeaveGameRequestMessage.newBuilder() to construct. - private LeaveGameRequestMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private LeaveGameRequestMessage() { } - private LeaveGameRequestMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final LeaveGameRequestMessage defaultInstance; - public static LeaveGameRequestMessage getDefaultInstance() { - return defaultInstance; - } - - public LeaveGameRequestMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private LeaveGameRequestMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public LeaveGameRequestMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LeaveGameRequestMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { return gameId_; } - - private void initFields() { + /** + * 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; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code LeaveGameRequestMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage, Builder> implements // @@protoc_insertion_point(builder_implements:LeaveGameRequestMessage) de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); 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; - static { - defaultInstance = new LeaveGameRequestMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface InvitePlayerToGameMessageOrBuilder extends @@ -23867,425 +23487,401 @@ public final class ProtoBuf { /** * Protobuf type {@code InvitePlayerToGameMessage} */ - public static final class InvitePlayerToGameMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class InvitePlayerToGameMessage extends + com.google.protobuf.GeneratedMessageLite< + InvitePlayerToGameMessage, InvitePlayerToGameMessage.Builder> implements // @@protoc_insertion_point(message_implements:InvitePlayerToGameMessage) InvitePlayerToGameMessageOrBuilder { - // Use InvitePlayerToGameMessage.newBuilder() to construct. - private InvitePlayerToGameMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private InvitePlayerToGameMessage() { } - private InvitePlayerToGameMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final InvitePlayerToGameMessage defaultInstance; - public static InvitePlayerToGameMessage getDefaultInstance() { - return defaultInstance; - } - - public InvitePlayerToGameMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private InvitePlayerToGameMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public InvitePlayerToGameMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InvitePlayerToGameMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required uint32 playerId = 2; */ + @java.lang.Override public int getPlayerId() { return playerId_; } - - private void initFields() { - gameId_ = 0; + /** + * 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; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPlayerId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, playerId_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code InvitePlayerToGameMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage, Builder> implements // @@protoc_insertion_point(builder_implements:InvitePlayerToGameMessage) de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int playerId_ ; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPlayerId(); } /** * required uint32 playerId = 2; */ + @java.lang.Override public int getPlayerId() { - return playerId_; + return instance.getPlayerId(); } /** * required uint32 playerId = 2; */ public Builder setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - + copyOnWrite(); + instance.setPlayerId(value); return this; } /** * required uint32 playerId = 2; */ public Builder clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - + copyOnWrite(); + instance.clearPlayerId(); 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; - static { - defaultInstance = new InvitePlayerToGameMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface InviteNotifyMessageOrBuilder extends @@ -24322,502 +23918,481 @@ public final class ProtoBuf { /** * Protobuf type {@code InviteNotifyMessage} */ - public static final class InviteNotifyMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class InviteNotifyMessage extends + com.google.protobuf.GeneratedMessageLite< + InviteNotifyMessage, InviteNotifyMessage.Builder> implements // @@protoc_insertion_point(message_implements:InviteNotifyMessage) InviteNotifyMessageOrBuilder { - // Use InviteNotifyMessage.newBuilder() to construct. - private InviteNotifyMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private InviteNotifyMessage() { } - private InviteNotifyMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final InviteNotifyMessage defaultInstance; - public static InviteNotifyMessage getDefaultInstance() { - return defaultInstance; - } - - public InviteNotifyMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private InviteNotifyMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public InviteNotifyMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InviteNotifyMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PLAYERIDWHO_FIELD_NUMBER = 2; private int playerIdWho_; /** * required uint32 playerIdWho = 2; */ + @java.lang.Override public boolean hasPlayerIdWho() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } public static final int PLAYERIDBYWHOM_FIELD_NUMBER = 3; private int playerIdByWhom_; /** * required uint32 playerIdByWhom = 3; */ + @java.lang.Override public boolean hasPlayerIdByWhom() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required uint32 playerIdByWhom = 3; */ + @java.lang.Override public int getPlayerIdByWhom() { return playerIdByWhom_; } - - private void initFields() { - gameId_ = 0; - playerIdWho_ = 0; + /** + * required uint32 playerIdByWhom = 3; + */ + private void setPlayerIdByWhom(int value) { + bitField0_ |= 0x00000004; + playerIdByWhom_ = value; + } + /** + * required uint32 playerIdByWhom = 3; + */ + private void clearPlayerIdByWhom() { + bitField0_ = (bitField0_ & ~0x00000004); playerIdByWhom_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPlayerIdWho()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPlayerIdByWhom()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, playerIdWho_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt32(3, playerIdByWhom_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerIdWho_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, playerIdByWhom_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.InviteNotifyMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code InviteNotifyMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.InviteNotifyMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.InviteNotifyMessage, Builder> implements // @@protoc_insertion_point(builder_implements:InviteNotifyMessage) de.pokerth.protocol.ProtoBuf.InviteNotifyMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.InviteNotifyMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.InviteNotifyMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int playerIdWho_ ; /** * required uint32 playerIdWho = 2; */ + @java.lang.Override public boolean hasPlayerIdWho() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPlayerIdWho(); } /** * required uint32 playerIdWho = 2; */ + @java.lang.Override public int getPlayerIdWho() { - return playerIdWho_; + return instance.getPlayerIdWho(); } /** * required uint32 playerIdWho = 2; */ public Builder setPlayerIdWho(int value) { - bitField0_ |= 0x00000002; - playerIdWho_ = value; - + copyOnWrite(); + instance.setPlayerIdWho(value); return this; } /** * required uint32 playerIdWho = 2; */ public Builder clearPlayerIdWho() { - bitField0_ = (bitField0_ & ~0x00000002); - playerIdWho_ = 0; - + copyOnWrite(); + instance.clearPlayerIdWho(); return this; } - private int playerIdByWhom_ ; /** * required uint32 playerIdByWhom = 3; */ + @java.lang.Override public boolean hasPlayerIdByWhom() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasPlayerIdByWhom(); } /** * required uint32 playerIdByWhom = 3; */ + @java.lang.Override public int getPlayerIdByWhom() { - return playerIdByWhom_; + return instance.getPlayerIdByWhom(); } /** * required uint32 playerIdByWhom = 3; */ public Builder setPlayerIdByWhom(int value) { - bitField0_ |= 0x00000004; - playerIdByWhom_ = value; - + copyOnWrite(); + instance.setPlayerIdByWhom(value); return this; } /** * required uint32 playerIdByWhom = 3; */ public Builder clearPlayerIdByWhom() { - bitField0_ = (bitField0_ & ~0x00000004); - playerIdByWhom_ = 0; - + copyOnWrite(); + instance.clearPlayerIdByWhom(); 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; - static { - defaultInstance = new InviteNotifyMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface RejectGameInvitationMessageOrBuilder extends @@ -24845,103 +24420,13 @@ public final class ProtoBuf { /** * Protobuf type {@code RejectGameInvitationMessage} */ - public static final class RejectGameInvitationMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class RejectGameInvitationMessage extends + com.google.protobuf.GeneratedMessageLite< + RejectGameInvitationMessage, RejectGameInvitationMessage.Builder> implements // @@protoc_insertion_point(message_implements:RejectGameInvitationMessage) RejectGameInvitationMessageOrBuilder { - // Use RejectGameInvitationMessage.newBuilder() to construct. - private RejectGameInvitationMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private RejectGameInvitationMessage() { } - private RejectGameInvitationMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final RejectGameInvitationMessage defaultInstance; - public static RejectGameInvitationMessage getDefaultInstance() { - return defaultInstance; - } - - public RejectGameInvitationMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private RejectGameInvitationMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000002; - myRejectReason_ = value; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public RejectGameInvitationMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RejectGameInvitationMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - /** * Protobuf enum {@code RejectGameInvitationMessage.RejectGameInvReason} */ @@ -24950,11 +24435,11 @@ public final class ProtoBuf { /** * rejectReasonNo = 0; */ - rejectReasonNo(0, 0), + rejectReasonNo(0), /** * rejectReasonBusy = 1; */ - rejectReasonBusy(1, 1), + rejectReasonBusy(1), ; /** @@ -24967,9 +24452,20 @@ public final class ProtoBuf { public static final int rejectReasonBusy_VALUE = 1; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -24981,17 +24477,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + RejectGameInvReason> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public RejectGameInvReason findValueByNumber(int number) { - return RejectGameInvReason.valueOf(number); + return RejectGameInvReason.forNumber(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 index, int value) { + private RejectGameInvReason(int value) { this.value = value; } @@ -25004,332 +24515,397 @@ public final class ProtoBuf { /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int MYREJECTREASON_FIELD_NUMBER = 2; - private de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason myRejectReason_; + private int myRejectReason_; /** * required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; */ + @java.lang.Override public boolean hasMyRejectReason() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason getMyRejectReason() { - return myRejectReason_; + 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; } - - 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 true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; + /** + * required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; + */ + private void setMyRejectReason(de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason value) { + if (value == null) { + throw new NullPointerException(); } - if (!hasMyRejectReason()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + bitField0_ |= 0x00000002; + myRejectReason_ = value.getNumber(); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, myRejectReason_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, myRejectReason_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, myRejectReason_.getNumber()); + .computeEnumSize(2, myRejectReason_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code RejectGameInvitationMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage, Builder> implements // @@protoc_insertion_point(builder_implements:RejectGameInvitationMessage) de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason myRejectReason_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.rejectReasonNo; /** * required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; */ + @java.lang.Override public boolean hasMyRejectReason() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasMyRejectReason(); } /** * required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason getMyRejectReason() { - return myRejectReason_; + return instance.getMyRejectReason(); } /** * required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; */ public Builder setMyRejectReason(de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - myRejectReason_ = value; - + copyOnWrite(); + instance.setMyRejectReason(value); return this; } /** * required .RejectGameInvitationMessage.RejectGameInvReason myRejectReason = 2; */ public Builder clearMyRejectReason() { - bitField0_ = (bitField0_ & ~0x00000002); - myRejectReason_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.rejectReasonNo; - + copyOnWrite(); + instance.clearMyRejectReason(); 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; - static { - defaultInstance = new RejectGameInvitationMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface RejectInvNotifyMessageOrBuilder extends @@ -25366,512 +24942,490 @@ public final class ProtoBuf { /** * Protobuf type {@code RejectInvNotifyMessage} */ - public static final class RejectInvNotifyMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class RejectInvNotifyMessage extends + com.google.protobuf.GeneratedMessageLite< + RejectInvNotifyMessage, RejectInvNotifyMessage.Builder> implements // @@protoc_insertion_point(message_implements:RejectInvNotifyMessage) RejectInvNotifyMessageOrBuilder { - // Use RejectInvNotifyMessage.newBuilder() to construct. - private RejectInvNotifyMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private RejectInvNotifyMessage() { } - private RejectInvNotifyMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final RejectInvNotifyMessage defaultInstance; - public static RejectInvNotifyMessage getDefaultInstance() { - return defaultInstance; - } - - public RejectInvNotifyMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private RejectInvNotifyMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000004; - playerRejectReason_ = value; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public RejectInvNotifyMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RejectInvNotifyMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } public static final int PLAYERREJECTREASON_FIELD_NUMBER = 3; - private de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason playerRejectReason_; + private int playerRejectReason_; /** * required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; */ + @java.lang.Override public boolean hasPlayerRejectReason() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason getPlayerRejectReason() { - return playerRejectReason_; + 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; } - - 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 true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPlayerId()) { - memoizedIsInitialized = 0; - return false; + /** + * required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; + */ + private void setPlayerRejectReason(de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason value) { + if (value == null) { + throw new NullPointerException(); } - if (!hasPlayerRejectReason()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + bitField0_ |= 0x00000004; + playerRejectReason_ = value.getNumber(); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, playerId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, playerRejectReason_.getNumber()); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(3, playerRejectReason_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, playerRejectReason_.getNumber()); + .computeEnumSize(3, playerRejectReason_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code RejectInvNotifyMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage, Builder> implements // @@protoc_insertion_point(builder_implements:RejectInvNotifyMessage) de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int playerId_ ; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPlayerId(); } /** * required uint32 playerId = 2; */ + @java.lang.Override public int getPlayerId() { - return playerId_; + return instance.getPlayerId(); } /** * required uint32 playerId = 2; */ public Builder setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - + copyOnWrite(); + instance.setPlayerId(value); return this; } /** * required uint32 playerId = 2; */ public Builder clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - + copyOnWrite(); + instance.clearPlayerId(); return this; } - private de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason playerRejectReason_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.rejectReasonNo; /** * required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; */ + @java.lang.Override public boolean hasPlayerRejectReason() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasPlayerRejectReason(); } /** * required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason getPlayerRejectReason() { - return playerRejectReason_; + return instance.getPlayerRejectReason(); } /** * required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; */ public Builder setPlayerRejectReason(de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - playerRejectReason_ = value; - + copyOnWrite(); + instance.setPlayerRejectReason(value); return this; } /** * required .RejectGameInvitationMessage.RejectGameInvReason playerRejectReason = 3; */ public Builder clearPlayerRejectReason() { - bitField0_ = (bitField0_ & ~0x00000004); - playerRejectReason_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.RejectGameInvReason.rejectReasonNo; - + copyOnWrite(); + instance.clearPlayerRejectReason(); 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; - static { - defaultInstance = new RejectInvNotifyMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface StartEventMessageOrBuilder extends @@ -25908,108 +25462,13 @@ public final class ProtoBuf { /** * Protobuf type {@code StartEventMessage} */ - public static final class StartEventMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class StartEventMessage extends + com.google.protobuf.GeneratedMessageLite< + StartEventMessage, StartEventMessage.Builder> implements // @@protoc_insertion_point(message_implements:StartEventMessage) StartEventMessageOrBuilder { - // Use StartEventMessage.newBuilder() to construct. - private StartEventMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private StartEventMessage() { } - private StartEventMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final StartEventMessage defaultInstance; - public static StartEventMessage getDefaultInstance() { - return defaultInstance; - } - - public StartEventMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private StartEventMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000002; - startEventType_ = value; - } - break; - } - case 24: { - bitField0_ |= 0x00000004; - fillWithComputerPlayers_ = input.readBool(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public StartEventMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartEventMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - /** * Protobuf enum {@code StartEventMessage.StartEventType} */ @@ -26018,11 +25477,11 @@ public final class ProtoBuf { /** * startEvent = 0; */ - startEvent(0, 0), + startEvent(0), /** * rejoinEvent = 1; */ - rejoinEvent(1, 1), + rejoinEvent(1), ; /** @@ -26035,9 +25494,20 @@ public final class ProtoBuf { public static final int rejoinEvent_VALUE = 1; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -26049,17 +25519,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + StartEventType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public StartEventType findValueByNumber(int number) { - return StartEventType.valueOf(number); + return StartEventType.forNumber(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 index, int value) { + private StartEventType(int value) { this.value = value; } @@ -26072,29 +25557,65 @@ public final class ProtoBuf { /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int STARTEVENTTYPE_FIELD_NUMBER = 2; - private de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType startEventType_; + private int startEventType_; /** * required .StartEventMessage.StartEventType startEventType = 2; */ + @java.lang.Override public boolean hasStartEventType() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .StartEventMessage.StartEventType startEventType = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType getStartEventType() { - return startEventType_; + 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; + } + /** + * 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; } public static final int FILLWITHCOMPUTERPLAYERS_FIELD_NUMBER = 3; @@ -26102,366 +25623,408 @@ public final class ProtoBuf { /** * optional bool fillWithComputerPlayers = 3; */ + @java.lang.Override public boolean hasFillWithComputerPlayers() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional bool fillWithComputerPlayers = 3; */ + @java.lang.Override public boolean getFillWithComputerPlayers() { return fillWithComputerPlayers_; } - - private void initFields() { - gameId_ = 0; - startEventType_ = de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType.startEvent; + /** + * optional bool fillWithComputerPlayers = 3; + */ + private void setFillWithComputerPlayers(boolean value) { + bitField0_ |= 0x00000004; + fillWithComputerPlayers_ = value; + } + /** + * optional bool fillWithComputerPlayers = 3; + */ + private void clearFillWithComputerPlayers() { + bitField0_ = (bitField0_ & ~0x00000004); fillWithComputerPlayers_ = false; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasStartEventType()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, startEventType_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, startEventType_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(3, fillWithComputerPlayers_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, startEventType_.getNumber()); + .computeEnumSize(2, startEventType_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, fillWithComputerPlayers_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.StartEventMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.StartEventMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code StartEventMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.StartEventMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.StartEventMessage, Builder> implements // @@protoc_insertion_point(builder_implements:StartEventMessage) de.pokerth.protocol.ProtoBuf.StartEventMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.StartEventMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.StartEventMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.StartEventMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType startEventType_ = de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType.startEvent; /** * required .StartEventMessage.StartEventType startEventType = 2; */ + @java.lang.Override public boolean hasStartEventType() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasStartEventType(); } /** * required .StartEventMessage.StartEventType startEventType = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType getStartEventType() { - return startEventType_; + return instance.getStartEventType(); } /** * required .StartEventMessage.StartEventType startEventType = 2; */ public Builder setStartEventType(de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - startEventType_ = value; - + copyOnWrite(); + instance.setStartEventType(value); return this; } /** * required .StartEventMessage.StartEventType startEventType = 2; */ public Builder clearStartEventType() { - bitField0_ = (bitField0_ & ~0x00000002); - startEventType_ = de.pokerth.protocol.ProtoBuf.StartEventMessage.StartEventType.startEvent; - + copyOnWrite(); + instance.clearStartEventType(); return this; } - private boolean fillWithComputerPlayers_ ; /** * optional bool fillWithComputerPlayers = 3; */ + @java.lang.Override public boolean hasFillWithComputerPlayers() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasFillWithComputerPlayers(); } /** * optional bool fillWithComputerPlayers = 3; */ + @java.lang.Override public boolean getFillWithComputerPlayers() { - return fillWithComputerPlayers_; + return instance.getFillWithComputerPlayers(); } /** * optional bool fillWithComputerPlayers = 3; */ public Builder setFillWithComputerPlayers(boolean value) { - bitField0_ |= 0x00000004; - fillWithComputerPlayers_ = value; - + copyOnWrite(); + instance.setFillWithComputerPlayers(value); return this; } /** * optional bool fillWithComputerPlayers = 3; */ public Builder clearFillWithComputerPlayers() { - bitField0_ = (bitField0_ & ~0x00000004); - fillWithComputerPlayers_ = false; - + copyOnWrite(); + instance.clearFillWithComputerPlayers(); 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; - static { - defaultInstance = new StartEventMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface StartEventAckMessageOrBuilder extends @@ -26480,348 +26043,321 @@ public final class ProtoBuf { /** * Protobuf type {@code StartEventAckMessage} */ - public static final class StartEventAckMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class StartEventAckMessage extends + com.google.protobuf.GeneratedMessageLite< + StartEventAckMessage, StartEventAckMessage.Builder> implements // @@protoc_insertion_point(message_implements:StartEventAckMessage) StartEventAckMessageOrBuilder { - // Use StartEventAckMessage.newBuilder() to construct. - private StartEventAckMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private StartEventAckMessage() { } - private StartEventAckMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final StartEventAckMessage defaultInstance; - public static StartEventAckMessage getDefaultInstance() { - return defaultInstance; - } - - public StartEventAckMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private StartEventAckMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public StartEventAckMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartEventAckMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { return gameId_; } - - private void initFields() { + /** + * 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; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.StartEventAckMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.StartEventAckMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code StartEventAckMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.StartEventAckMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.StartEventAckMessage, Builder> implements // @@protoc_insertion_point(builder_implements:StartEventAckMessage) de.pokerth.protocol.ProtoBuf.StartEventAckMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.StartEventAckMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.StartEventAckMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.StartEventAckMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); 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; - static { - defaultInstance = new StartEventAckMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface GameStartInitialMessageOrBuilder extends @@ -26862,156 +26398,83 @@ public final class ProtoBuf { /** * Protobuf type {@code GameStartInitialMessage} */ - public static final class GameStartInitialMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class GameStartInitialMessage extends + com.google.protobuf.GeneratedMessageLite< + GameStartInitialMessage, GameStartInitialMessage.Builder> implements // @@protoc_insertion_point(message_implements:GameStartInitialMessage) GameStartInitialMessageOrBuilder { - // Use GameStartInitialMessage.newBuilder() to construct. - private GameStartInitialMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private GameStartInitialMessage() { + playerSeats_ = emptyIntList(); } - private GameStartInitialMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final GameStartInitialMessage defaultInstance; - public static GameStartInitialMessage getDefaultInstance() { - return defaultInstance; - } - - public GameStartInitialMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private GameStartInitialMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - startDealerPlayerId_ = input.readUInt32(); - break; - } - case 24: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - playerSeats_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - playerSeats_.add(input.readUInt32()); - break; - } - case 26: { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004) && input.getBytesUntilLimit() > 0) { - playerSeats_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - while (input.getBytesUntilLimit() > 0) { - playerSeats_.add(input.readUInt32()); - } - input.popLimit(limit); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - playerSeats_ = java.util.Collections.unmodifiableList(playerSeats_); - } - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GameStartInitialMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GameStartInitialMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int STARTDEALERPLAYERID_FIELD_NUMBER = 2; private int startDealerPlayerId_; /** * required uint32 startDealerPlayerId = 2; */ + @java.lang.Override public boolean hasStartDealerPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } public static final int PLAYERSEATS_FIELD_NUMBER = 3; - private java.util.List playerSeats_; + private com.google.protobuf.Internal.IntList playerSeats_; /** * repeated uint32 playerSeats = 3 [packed = true]; */ + @java.lang.Override public java.util.List getPlayerSeatsList() { return playerSeats_; @@ -27019,70 +26482,86 @@ public final class ProtoBuf { /** * 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_.get(index); + return playerSeats_.getInt(index); } private int playerSeatsMemoizedSerializedSize = -1; - - private void initFields() { - gameId_ = 0; - startDealerPlayerId_ = 0; - playerSeats_ = java.util.Collections.emptyList(); + private void ensurePlayerSeatsIsMutable() { + if (!playerSeats_.isModifiable()) { + playerSeats_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(playerSeats_); + } } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasStartDealerPlayerId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + /** + * repeated uint32 playerSeats = 3 [packed = true]; + */ + private void setPlayerSeats( + int index, int value) { + ensurePlayerSeatsIsMutable(); + playerSeats_.setInt(index, value); + } + /** + * 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) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, startDealerPlayerId_); } if (getPlayerSeatsList().size() > 0) { - output.writeRawVarint32(26); - output.writeRawVarint32(playerSeatsMemoizedSerializedSize); + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(playerSeatsMemoizedSerializedSize); } for (int i = 0; i < playerSeats_.size(); i++) { - output.writeUInt32NoTag(playerSeats_.get(i)); + output.writeUInt32NoTag(playerSeats_.getInt(i)); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, startDealerPlayerId_); } @@ -27090,7 +26569,7 @@ public final class ProtoBuf { int dataSize = 0; for (int i = 0; i < playerSeats_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(playerSeats_.get(i)); + .computeUInt32SizeNoTag(playerSeats_.getInt(i)); } size += dataSize; if (!getPlayerSeatsList().isEmpty()) { @@ -27100,307 +26579,206 @@ public final class ProtoBuf { } playerSeatsMemoizedSerializedSize = dataSize; } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameStartInitialMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code GameStartInitialMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameStartInitialMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.GameStartInitialMessage, Builder> implements // @@protoc_insertion_point(builder_implements:GameStartInitialMessage) de.pokerth.protocol.ProtoBuf.GameStartInitialMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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_); - } - - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.GameStartInitialMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.GameStartInitialMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int startDealerPlayerId_ ; /** * required uint32 startDealerPlayerId = 2; */ + @java.lang.Override public boolean hasStartDealerPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasStartDealerPlayerId(); } /** * required uint32 startDealerPlayerId = 2; */ + @java.lang.Override public int getStartDealerPlayerId() { - return startDealerPlayerId_; + return instance.getStartDealerPlayerId(); } /** * required uint32 startDealerPlayerId = 2; */ public Builder setStartDealerPlayerId(int value) { - bitField0_ |= 0x00000002; - startDealerPlayerId_ = value; - + copyOnWrite(); + instance.setStartDealerPlayerId(value); return this; } /** * required uint32 startDealerPlayerId = 2; */ public Builder clearStartDealerPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - startDealerPlayerId_ = 0; - + copyOnWrite(); + instance.clearStartDealerPlayerId(); return this; } - private java.util.List playerSeats_ = java.util.Collections.emptyList(); - private void ensurePlayerSeatsIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - playerSeats_ = new java.util.ArrayList(playerSeats_); - bitField0_ |= 0x00000004; - } - } /** * repeated uint32 playerSeats = 3 [packed = true]; */ + @java.lang.Override public java.util.List getPlayerSeatsList() { - return java.util.Collections.unmodifiableList(playerSeats_); + return java.util.Collections.unmodifiableList( + instance.getPlayerSeatsList()); } /** * repeated uint32 playerSeats = 3 [packed = true]; */ + @java.lang.Override public int getPlayerSeatsCount() { - return playerSeats_.size(); + return instance.getPlayerSeatsCount(); } /** * repeated uint32 playerSeats = 3 [packed = true]; */ + @java.lang.Override public int getPlayerSeats(int index) { - return playerSeats_.get(index); + return instance.getPlayerSeats(index); } /** * repeated uint32 playerSeats = 3 [packed = true]; */ public Builder setPlayerSeats( int index, int value) { - ensurePlayerSeatsIsMutable(); - playerSeats_.set(index, value); - + copyOnWrite(); + instance.setPlayerSeats(index, value); return this; } /** * repeated uint32 playerSeats = 3 [packed = true]; */ public Builder addPlayerSeats(int value) { - ensurePlayerSeatsIsMutable(); - playerSeats_.add(value); - + copyOnWrite(); + instance.addPlayerSeats(value); return this; } /** @@ -27408,31 +26786,179 @@ public final class ProtoBuf { */ public Builder addAllPlayerSeats( java.lang.Iterable values) { - ensurePlayerSeatsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, playerSeats_); - + copyOnWrite(); + instance.addAllPlayerSeats(values); return this; } /** * repeated uint32 playerSeats = 3 [packed = true]; */ public Builder clearPlayerSeats() { - playerSeats_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - + copyOnWrite(); + instance.clearPlayerSeats(); 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; - static { - defaultInstance = new GameStartInitialMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface GameStartRejoinMessageOrBuilder extends @@ -27483,112 +27009,14 @@ public final class ProtoBuf { /** * Protobuf type {@code GameStartRejoinMessage} */ - public static final class GameStartRejoinMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class GameStartRejoinMessage extends + com.google.protobuf.GeneratedMessageLite< + GameStartRejoinMessage, GameStartRejoinMessage.Builder> implements // @@protoc_insertion_point(message_implements:GameStartRejoinMessage) GameStartRejoinMessageOrBuilder { - // Use GameStartRejoinMessage.newBuilder() to construct. - private GameStartRejoinMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private GameStartRejoinMessage() { + rejoinPlayerData_ = emptyProtobufList(); } - private GameStartRejoinMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final GameStartRejoinMessage defaultInstance; - public static GameStartRejoinMessage getDefaultInstance() { - return defaultInstance; - } - - public GameStartRejoinMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private GameStartRejoinMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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 (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - rejoinPlayerData_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - rejoinPlayerData_.add(input.readMessage(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - rejoinPlayerData_ = java.util.Collections.unmodifiableList(rejoinPlayerData_); - } - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public GameStartRejoinMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GameStartRejoinMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public interface RejoinPlayerDataOrBuilder extends // @@protoc_insertion_point(interface_extends:GameStartRejoinMessage.RejoinPlayerData) com.google.protobuf.MessageLiteOrBuilder { @@ -27614,425 +27042,401 @@ public final class ProtoBuf { /** * Protobuf type {@code GameStartRejoinMessage.RejoinPlayerData} */ - public static final class RejoinPlayerData extends - com.google.protobuf.GeneratedMessageLite implements + public static final class RejoinPlayerData extends + com.google.protobuf.GeneratedMessageLite< + RejoinPlayerData, RejoinPlayerData.Builder> implements // @@protoc_insertion_point(message_implements:GameStartRejoinMessage.RejoinPlayerData) RejoinPlayerDataOrBuilder { - // Use RejoinPlayerData.newBuilder() to construct. - private RejoinPlayerData(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private RejoinPlayerData() { } - private RejoinPlayerData(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final RejoinPlayerData defaultInstance; - public static RejoinPlayerData getDefaultInstance() { - return defaultInstance; - } - - public RejoinPlayerData getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private RejoinPlayerData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - playerId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerMoney_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public RejoinPlayerData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RejoinPlayerData(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int PLAYERID_FIELD_NUMBER = 1; private int playerId_; /** * required uint32 playerId = 1; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PLAYERMONEY_FIELD_NUMBER = 2; private int playerMoney_; /** * required uint32 playerMoney = 2; */ + @java.lang.Override public boolean hasPlayerMoney() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required uint32 playerMoney = 2; */ + @java.lang.Override public int getPlayerMoney() { return playerMoney_; } - - private void initFields() { - playerId_ = 0; + /** + * required uint32 playerMoney = 2; + */ + private void setPlayerMoney(int value) { + bitField0_ |= 0x00000002; + playerMoney_ = value; + } + /** + * required uint32 playerMoney = 2; + */ + private void clearPlayerMoney() { + bitField0_ = (bitField0_ & ~0x00000002); playerMoney_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasPlayerId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPlayerMoney()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, playerId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, playerMoney_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, playerId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerMoney_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } 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 PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code GameStartRejoinMessage.RejoinPlayerData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData, Builder> - implements + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData, Builder> implements // @@protoc_insertion_point(builder_implements:GameStartRejoinMessage.RejoinPlayerData) de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerDataOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int playerId_ ; /** * required uint32 playerId = 1; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasPlayerId(); } /** * required uint32 playerId = 1; */ + @java.lang.Override public int getPlayerId() { - return playerId_; + return instance.getPlayerId(); } /** * required uint32 playerId = 1; */ public Builder setPlayerId(int value) { - bitField0_ |= 0x00000001; - playerId_ = value; - + copyOnWrite(); + instance.setPlayerId(value); return this; } /** * required uint32 playerId = 1; */ public Builder clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000001); - playerId_ = 0; - + copyOnWrite(); + instance.clearPlayerId(); return this; } - private int playerMoney_ ; /** * required uint32 playerMoney = 2; */ + @java.lang.Override public boolean hasPlayerMoney() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPlayerMoney(); } /** * required uint32 playerMoney = 2; */ + @java.lang.Override public int getPlayerMoney() { - return playerMoney_; + return instance.getPlayerMoney(); } /** * required uint32 playerMoney = 2; */ public Builder setPlayerMoney(int value) { - bitField0_ |= 0x00000002; - playerMoney_ = value; - + copyOnWrite(); + instance.setPlayerMoney(value); return this; } /** * required uint32 playerMoney = 2; */ public Builder clearPlayerMoney() { - bitField0_ = (bitField0_ & ~0x00000002); - playerMoney_ = 0; - + copyOnWrite(); + instance.clearPlayerMoney(); 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; - static { - defaultInstance = new RejoinPlayerData(true); - defaultInstance.initFields(); + 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(); + } } private int bitField0_; @@ -28041,51 +27445,100 @@ public final class ProtoBuf { /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int STARTDEALERPLAYERID_FIELD_NUMBER = 2; private int startDealerPlayerId_; /** * required uint32 startDealerPlayerId = 2; */ + @java.lang.Override public boolean hasStartDealerPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } public static final int HANDNUM_FIELD_NUMBER = 3; private int handNum_; /** * required uint32 handNum = 3; */ + @java.lang.Override public boolean hasHandNum() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * 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; + } public static final int REJOINPLAYERDATA_FIELD_NUMBER = 4; - private java.util.List rejoinPlayerData_; + private com.google.protobuf.Internal.ProtobufList rejoinPlayerData_; /** * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; */ + @java.lang.Override public java.util.List getRejoinPlayerDataList() { return rejoinPlayerData_; } @@ -28099,12 +27552,14 @@ public final class ProtoBuf { /** * 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); } @@ -28115,74 +27570,125 @@ public final class ProtoBuf { int index) { return rejoinPlayerData_.get(index); } - - private void initFields() { - gameId_ = 0; - startDealerPlayerId_ = 0; - handNum_ = 0; - rejoinPlayerData_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasStartDealerPlayerId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasHandNum()) { - memoizedIsInitialized = 0; - return false; - } - for (int i = 0; i < getRejoinPlayerDataCount(); i++) { - if (!getRejoinPlayerData(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; + private void ensureRejoinPlayerDataIsMutable() { + if (!rejoinPlayerData_.isModifiable()) { + rejoinPlayerData_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(rejoinPlayerData_); + } } + /** + * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; + */ + private void setRejoinPlayerData( + int index, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData value) { + if (value == null) { + throw new NullPointerException(); + } + 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(); + } + 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(); + } + ensureRejoinPlayerDataIsMutable(); + rejoinPlayerData_.add(index, value); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, startDealerPlayerId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt32(3, handNum_); } for (int i = 0; i < rejoinPlayerData_.size(); i++) { output.writeMessage(4, rejoinPlayerData_.get(i)); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, startDealerPlayerId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, handNum_); } @@ -28190,353 +27696,227 @@ public final class ProtoBuf { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, rejoinPlayerData_.get(i)); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code GameStartRejoinMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage, Builder> implements // @@protoc_insertion_point(builder_implements:GameStartRejoinMessage) de.pokerth.protocol.ProtoBuf.GameStartRejoinMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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_); - } - - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int startDealerPlayerId_ ; /** * required uint32 startDealerPlayerId = 2; */ + @java.lang.Override public boolean hasStartDealerPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasStartDealerPlayerId(); } /** * required uint32 startDealerPlayerId = 2; */ + @java.lang.Override public int getStartDealerPlayerId() { - return startDealerPlayerId_; + return instance.getStartDealerPlayerId(); } /** * required uint32 startDealerPlayerId = 2; */ public Builder setStartDealerPlayerId(int value) { - bitField0_ |= 0x00000002; - startDealerPlayerId_ = value; - + copyOnWrite(); + instance.setStartDealerPlayerId(value); return this; } /** * required uint32 startDealerPlayerId = 2; */ public Builder clearStartDealerPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - startDealerPlayerId_ = 0; - + copyOnWrite(); + instance.clearStartDealerPlayerId(); return this; } - private int handNum_ ; /** * required uint32 handNum = 3; */ + @java.lang.Override public boolean hasHandNum() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasHandNum(); } /** * required uint32 handNum = 3; */ + @java.lang.Override public int getHandNum() { - return handNum_; + return instance.getHandNum(); } /** * required uint32 handNum = 3; */ public Builder setHandNum(int value) { - bitField0_ |= 0x00000004; - handNum_ = value; - + copyOnWrite(); + instance.setHandNum(value); return this; } /** * required uint32 handNum = 3; */ public Builder clearHandNum() { - bitField0_ = (bitField0_ & ~0x00000004); - handNum_ = 0; - + copyOnWrite(); + instance.clearHandNum(); return this; } - private java.util.List rejoinPlayerData_ = - java.util.Collections.emptyList(); - private void ensureRejoinPlayerDataIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - rejoinPlayerData_ = new java.util.ArrayList(rejoinPlayerData_); - bitField0_ |= 0x00000008; - } - } - /** * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; */ + @java.lang.Override public java.util.List getRejoinPlayerDataList() { - return java.util.Collections.unmodifiableList(rejoinPlayerData_); + return java.util.Collections.unmodifiableList( + instance.getRejoinPlayerDataList()); } /** * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; */ + @java.lang.Override public int getRejoinPlayerDataCount() { - return rejoinPlayerData_.size(); - } - /** + return instance.getRejoinPlayerDataCount(); + }/** * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData getRejoinPlayerData(int index) { - return rejoinPlayerData_.get(index); + return instance.getRejoinPlayerData(index); } /** * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; */ public Builder setRejoinPlayerData( int index, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRejoinPlayerDataIsMutable(); - rejoinPlayerData_.set(index, value); - + copyOnWrite(); + instance.setRejoinPlayerData(index, value); return this; } /** @@ -28544,21 +27924,16 @@ public final class ProtoBuf { */ public Builder setRejoinPlayerData( int index, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.Builder builderForValue) { - ensureRejoinPlayerDataIsMutable(); - rejoinPlayerData_.set(index, builderForValue.build()); - + copyOnWrite(); + instance.setRejoinPlayerData(index, builderForValue); return this; } /** * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; */ public Builder addRejoinPlayerData(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRejoinPlayerDataIsMutable(); - rejoinPlayerData_.add(value); - + copyOnWrite(); + instance.addRejoinPlayerData(value); return this; } /** @@ -28566,12 +27941,8 @@ public final class ProtoBuf { */ public Builder addRejoinPlayerData( int index, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRejoinPlayerDataIsMutable(); - rejoinPlayerData_.add(index, value); - + copyOnWrite(); + instance.addRejoinPlayerData(index, value); return this; } /** @@ -28579,9 +27950,8 @@ public final class ProtoBuf { */ public Builder addRejoinPlayerData( de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.Builder builderForValue) { - ensureRejoinPlayerDataIsMutable(); - rejoinPlayerData_.add(builderForValue.build()); - + copyOnWrite(); + instance.addRejoinPlayerData(builderForValue); return this; } /** @@ -28589,9 +27959,8 @@ public final class ProtoBuf { */ public Builder addRejoinPlayerData( int index, de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.RejoinPlayerData.Builder builderForValue) { - ensureRejoinPlayerDataIsMutable(); - rejoinPlayerData_.add(index, builderForValue.build()); - + copyOnWrite(); + instance.addRejoinPlayerData(index, builderForValue); return this; } /** @@ -28599,40 +27968,191 @@ public final class ProtoBuf { */ public Builder addAllRejoinPlayerData( java.lang.Iterable values) { - ensureRejoinPlayerDataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rejoinPlayerData_); - + copyOnWrite(); + instance.addAllRejoinPlayerData(values); return this; } /** * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; */ public Builder clearRejoinPlayerData() { - rejoinPlayerData_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - + copyOnWrite(); + instance.clearRejoinPlayerData(); return this; } /** * repeated .GameStartRejoinMessage.RejoinPlayerData rejoinPlayerData = 4; */ public Builder removeRejoinPlayerData(int index) { - ensureRejoinPlayerDataIsMutable(); - rejoinPlayerData_.remove(index); - + copyOnWrite(); + instance.removeRejoinPlayerData(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; - static { - defaultInstance = new GameStartRejoinMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface HandStartMessageOrBuilder extends @@ -28700,157 +28220,15 @@ public final class ProtoBuf { /** * Protobuf type {@code HandStartMessage} */ - public static final class HandStartMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class HandStartMessage extends + com.google.protobuf.GeneratedMessageLite< + HandStartMessage, HandStartMessage.Builder> implements // @@protoc_insertion_point(message_implements:HandStartMessage) HandStartMessageOrBuilder { - // Use HandStartMessage.newBuilder() to construct. - private HandStartMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private HandStartMessage() { + encryptedCards_ = com.google.protobuf.ByteString.EMPTY; + seatStates_ = emptyIntList(); } - private HandStartMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final HandStartMessage defaultInstance; - public static HandStartMessage getDefaultInstance() { - return defaultInstance; - } - - public HandStartMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private HandStartMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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) == 0x00000002)) { - 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: { - int rawValue = input.readEnum(); - de.pokerth.protocol.ProtoBuf.NetPlayerState value = de.pokerth.protocol.ProtoBuf.NetPlayerState.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - seatStates_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - seatStates_.add(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) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - seatStates_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - seatStates_.add(value); - } - } - input.popLimit(oldLimit); - break; - } - case 48: { - bitField0_ |= 0x00000010; - dealerPlayerId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { - seatStates_ = java.util.Collections.unmodifiableList(seatStates_); - } - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public HandStartMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HandStartMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public interface PlainCardsOrBuilder extends // @@protoc_insertion_point(interface_extends:HandStartMessage.PlainCards) com.google.protobuf.MessageLiteOrBuilder { @@ -28876,425 +28254,401 @@ public final class ProtoBuf { /** * Protobuf type {@code HandStartMessage.PlainCards} */ - public static final class PlainCards extends - com.google.protobuf.GeneratedMessageLite implements + public static final class PlainCards extends + com.google.protobuf.GeneratedMessageLite< + PlainCards, PlainCards.Builder> implements // @@protoc_insertion_point(message_implements:HandStartMessage.PlainCards) PlainCardsOrBuilder { - // Use PlainCards.newBuilder() to construct. - private PlainCards(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private PlainCards() { } - private PlainCards(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final PlainCards defaultInstance; - public static PlainCards getDefaultInstance() { - return defaultInstance; - } - - public PlainCards getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private PlainCards( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - plainCard1_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - plainCard2_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public PlainCards parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlainCards(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int PLAINCARD1_FIELD_NUMBER = 1; private int plainCard1_; /** * required uint32 plainCard1 = 1; */ + @java.lang.Override public boolean hasPlainCard1() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PLAINCARD2_FIELD_NUMBER = 2; private int plainCard2_; /** * required uint32 plainCard2 = 2; */ + @java.lang.Override public boolean hasPlainCard2() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required uint32 plainCard2 = 2; */ + @java.lang.Override public int getPlainCard2() { return plainCard2_; } - - private void initFields() { - plainCard1_ = 0; + /** + * required uint32 plainCard2 = 2; + */ + private void setPlainCard2(int value) { + bitField0_ |= 0x00000002; + plainCard2_ = value; + } + /** + * required uint32 plainCard2 = 2; + */ + private void clearPlainCard2() { + bitField0_ = (bitField0_ & ~0x00000002); plainCard2_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasPlainCard1()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPlainCard2()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, plainCard1_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, plainCard2_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, plainCard1_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, plainCard2_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } 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 PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code HandStartMessage.PlainCards} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards, Builder> - implements + de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards, Builder> implements // @@protoc_insertion_point(builder_implements:HandStartMessage.PlainCards) de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCardsOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int plainCard1_ ; /** * required uint32 plainCard1 = 1; */ + @java.lang.Override public boolean hasPlainCard1() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasPlainCard1(); } /** * required uint32 plainCard1 = 1; */ + @java.lang.Override public int getPlainCard1() { - return plainCard1_; + return instance.getPlainCard1(); } /** * required uint32 plainCard1 = 1; */ public Builder setPlainCard1(int value) { - bitField0_ |= 0x00000001; - plainCard1_ = value; - + copyOnWrite(); + instance.setPlainCard1(value); return this; } /** * required uint32 plainCard1 = 1; */ public Builder clearPlainCard1() { - bitField0_ = (bitField0_ & ~0x00000001); - plainCard1_ = 0; - + copyOnWrite(); + instance.clearPlainCard1(); return this; } - private int plainCard2_ ; /** * required uint32 plainCard2 = 2; */ + @java.lang.Override public boolean hasPlainCard2() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPlainCard2(); } /** * required uint32 plainCard2 = 2; */ + @java.lang.Override public int getPlainCard2() { - return plainCard2_; + return instance.getPlainCard2(); } /** * required uint32 plainCard2 = 2; */ public Builder setPlainCard2(int value) { - bitField0_ |= 0x00000002; - plainCard2_ = value; - + copyOnWrite(); + instance.setPlainCard2(value); return this; } /** * required uint32 plainCard2 = 2; */ public Builder clearPlainCard2() { - bitField0_ = (bitField0_ & ~0x00000002); - plainCard2_ = 0; - + copyOnWrite(); + instance.clearPlainCard2(); 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; - static { - defaultInstance = new PlainCards(true); - defaultInstance.initFields(); + 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(); + } } private int bitField0_; @@ -29303,29 +28657,88 @@ public final class ProtoBuf { /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } 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) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .HandStartMessage.PlainCards plainCards = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards getPlainCards() { - return plainCards_; + return plainCards_ == null ? de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.getDefaultInstance() : 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); } public static final int ENCRYPTEDCARDS_FIELD_NUMBER = 3; @@ -29333,50 +28746,142 @@ public final class ProtoBuf { /** * optional bytes encryptedCards = 3; */ + @java.lang.Override public boolean hasEncryptedCards() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * 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(); + } public static final int SMALLBLIND_FIELD_NUMBER = 4; private int smallBlind_; /** * required uint32 smallBlind = 4; */ + @java.lang.Override public boolean hasSmallBlind() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * 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; + } public static final int SEATSTATES_FIELD_NUMBER = 5; - private java.util.List seatStates_; + 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 public java.util.List getSeatStatesList() { - return seatStates_; + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, de.pokerth.protocol.ProtoBuf.NetPlayerState>(seatStates_, seatStates_converter_); } /** * 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_.get(index); + return seatStates_converter_.convert(seatStates_.getInt(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(); } public static final int DEALERPLAYERID_FIELD_NUMBER = 6; @@ -29384,91 +28889,75 @@ public final class ProtoBuf { /** * optional uint32 dealerPlayerId = 6; */ + @java.lang.Override public boolean hasDealerPlayerId() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional uint32 dealerPlayerId = 6; */ + @java.lang.Override public int getDealerPlayerId() { return dealerPlayerId_; } - - 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(); + /** + * optional uint32 dealerPlayerId = 6; + */ + private void setDealerPlayerId(int value) { + bitField0_ |= 0x00000010; + dealerPlayerId_ = value; + } + /** + * optional uint32 dealerPlayerId = 6; + */ + private void clearDealerPlayerId() { + bitField0_ = (bitField0_ & ~0x00000010); dealerPlayerId_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - 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; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, plainCards_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getPlainCards()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeBytes(3, encryptedCards_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt32(4, smallBlind_); } for (int i = 0; i < seatStates_.size(); i++) { - output.writeEnum(5, seatStates_.get(i).getNumber()); + output.writeEnum(5, seatStates_.getInt(i)); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeUInt32(6, dealerPlayerId_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, plainCards_); + .computeMessageSize(2, getPlainCards()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, encryptedCards_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, smallBlind_); } @@ -29476,450 +28965,291 @@ public final class ProtoBuf { int dataSize = 0; for (int i = 0; i < seatStates_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(seatStates_.get(i).getNumber()); + .computeEnumSizeNoTag(seatStates_.getInt(i)); } size += dataSize; size += 1 * seatStates_.size(); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, dealerPlayerId_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.HandStartMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.HandStartMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code HandStartMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.HandStartMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.HandStartMessage, Builder> implements // @@protoc_insertion_point(builder_implements:HandStartMessage) de.pokerth.protocol.ProtoBuf.HandStartMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.HandStartMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - private void maybeForceBuilderInitialization() { - } - private static Builder create() { - return new Builder(); - } - 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; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public de.pokerth.protocol.ProtoBuf.HandStartMessage getDefaultInstanceForType() { - return de.pokerth.protocol.ProtoBuf.HandStartMessage.getDefaultInstance(); - } - - public de.pokerth.protocol.ProtoBuf.HandStartMessage build() { - de.pokerth.protocol.ProtoBuf.HandStartMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.HandStartMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.HandStartMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards plainCards_ = de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.getDefaultInstance(); /** * optional .HandStartMessage.PlainCards plainCards = 2; */ + @java.lang.Override public boolean hasPlainCards() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPlainCards(); } /** * optional .HandStartMessage.PlainCards plainCards = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards getPlainCards() { - return plainCards_; + return instance.getPlainCards(); } /** * optional .HandStartMessage.PlainCards plainCards = 2; */ public Builder setPlainCards(de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards value) { - if (value == null) { - throw new NullPointerException(); - } - plainCards_ = value; - - bitField0_ |= 0x00000002; + copyOnWrite(); + instance.setPlainCards(value); return this; - } + } /** * optional .HandStartMessage.PlainCards plainCards = 2; */ public Builder setPlainCards( de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.Builder builderForValue) { - plainCards_ = builderForValue.build(); - - bitField0_ |= 0x00000002; + copyOnWrite(); + instance.setPlainCards(builderForValue); return this; } /** * optional .HandStartMessage.PlainCards plainCards = 2; */ public Builder mergePlainCards(de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards 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; + copyOnWrite(); + instance.mergePlainCards(value); return this; } /** * optional .HandStartMessage.PlainCards plainCards = 2; */ - public Builder clearPlainCards() { - plainCards_ = de.pokerth.protocol.ProtoBuf.HandStartMessage.PlainCards.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00000002); + public Builder clearPlainCards() { copyOnWrite(); + instance.clearPlainCards(); return this; } - private com.google.protobuf.ByteString encryptedCards_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes encryptedCards = 3; */ + @java.lang.Override public boolean hasEncryptedCards() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasEncryptedCards(); } /** * optional bytes encryptedCards = 3; */ + @java.lang.Override public com.google.protobuf.ByteString getEncryptedCards() { - return encryptedCards_; + return instance.getEncryptedCards(); } /** * optional bytes encryptedCards = 3; */ public Builder setEncryptedCards(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - encryptedCards_ = value; - + copyOnWrite(); + instance.setEncryptedCards(value); return this; } /** * optional bytes encryptedCards = 3; */ public Builder clearEncryptedCards() { - bitField0_ = (bitField0_ & ~0x00000004); - encryptedCards_ = getDefaultInstance().getEncryptedCards(); - + copyOnWrite(); + instance.clearEncryptedCards(); return this; } - private int smallBlind_ ; /** * required uint32 smallBlind = 4; */ + @java.lang.Override public boolean hasSmallBlind() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return instance.hasSmallBlind(); } /** * required uint32 smallBlind = 4; */ + @java.lang.Override public int getSmallBlind() { - return smallBlind_; + return instance.getSmallBlind(); } /** * required uint32 smallBlind = 4; */ public Builder setSmallBlind(int value) { - bitField0_ |= 0x00000008; - smallBlind_ = value; - + copyOnWrite(); + instance.setSmallBlind(value); return this; } /** * required uint32 smallBlind = 4; */ public Builder clearSmallBlind() { - bitField0_ = (bitField0_ & ~0x00000008); - smallBlind_ = 0; - + copyOnWrite(); + instance.clearSmallBlind(); return this; } - private java.util.List seatStates_ = - java.util.Collections.emptyList(); - private void ensureSeatStatesIsMutable() { - if (!((bitField0_ & 0x00000010) == 0x00000010)) { - seatStates_ = new java.util.ArrayList(seatStates_); - bitField0_ |= 0x00000010; - } - } /** * repeated .NetPlayerState seatStates = 5; */ + @java.lang.Override public java.util.List getSeatStatesList() { - return java.util.Collections.unmodifiableList(seatStates_); + return instance.getSeatStatesList(); } /** * repeated .NetPlayerState seatStates = 5; */ + @java.lang.Override public int getSeatStatesCount() { - return seatStates_.size(); + return instance.getSeatStatesCount(); } /** * repeated .NetPlayerState seatStates = 5; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetPlayerState getSeatStates(int index) { - return seatStates_.get(index); + return instance.getSeatStates(index); } /** * repeated .NetPlayerState seatStates = 5; */ public Builder setSeatStates( int index, de.pokerth.protocol.ProtoBuf.NetPlayerState value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSeatStatesIsMutable(); - seatStates_.set(index, value); - + copyOnWrite(); + instance.setSeatStates(index, value); return this; } /** * repeated .NetPlayerState seatStates = 5; */ public Builder addSeatStates(de.pokerth.protocol.ProtoBuf.NetPlayerState value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSeatStatesIsMutable(); - seatStates_.add(value); - + copyOnWrite(); + instance.addSeatStates(value); return this; } /** @@ -29927,63 +29257,256 @@ public final class ProtoBuf { */ public Builder addAllSeatStates( java.lang.Iterable values) { - ensureSeatStatesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, seatStates_); - - return this; + copyOnWrite(); + instance.addAllSeatStates(values); return this; } /** * repeated .NetPlayerState seatStates = 5; */ public Builder clearSeatStates() { - seatStates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - + copyOnWrite(); + instance.clearSeatStates(); return this; } - private int dealerPlayerId_ ; /** * optional uint32 dealerPlayerId = 6; */ + @java.lang.Override public boolean hasDealerPlayerId() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return instance.hasDealerPlayerId(); } /** * optional uint32 dealerPlayerId = 6; */ + @java.lang.Override public int getDealerPlayerId() { - return dealerPlayerId_; + return instance.getDealerPlayerId(); } /** * optional uint32 dealerPlayerId = 6; */ public Builder setDealerPlayerId(int value) { - bitField0_ |= 0x00000020; - dealerPlayerId_ = value; - + copyOnWrite(); + instance.setDealerPlayerId(value); return this; } /** * optional uint32 dealerPlayerId = 6; */ public Builder clearDealerPlayerId() { - bitField0_ = (bitField0_ & ~0x00000020); - dealerPlayerId_ = 0; - + copyOnWrite(); + instance.clearDealerPlayerId(); 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; - static { - defaultInstance = new HandStartMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface PlayersTurnMessageOrBuilder extends @@ -30020,512 +29543,490 @@ public final class ProtoBuf { /** * Protobuf type {@code PlayersTurnMessage} */ - public static final class PlayersTurnMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class PlayersTurnMessage extends + com.google.protobuf.GeneratedMessageLite< + PlayersTurnMessage, PlayersTurnMessage.Builder> implements // @@protoc_insertion_point(message_implements:PlayersTurnMessage) PlayersTurnMessageOrBuilder { - // Use PlayersTurnMessage.newBuilder() to construct. - private PlayersTurnMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private PlayersTurnMessage() { } - private PlayersTurnMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final PlayersTurnMessage defaultInstance; - public static PlayersTurnMessage getDefaultInstance() { - return defaultInstance; - } - - public PlayersTurnMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private PlayersTurnMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000004; - gameState_ = value; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public PlayersTurnMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayersTurnMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } public static final int GAMESTATE_FIELD_NUMBER = 3; - private de.pokerth.protocol.ProtoBuf.NetGameState gameState_; + private int gameState_; /** * required .NetGameState gameState = 3; */ + @java.lang.Override public boolean hasGameState() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required .NetGameState gameState = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameState getGameState() { - return gameState_; + de.pokerth.protocol.ProtoBuf.NetGameState result = de.pokerth.protocol.ProtoBuf.NetGameState.forNumber(gameState_); + return result == null ? de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop : result; } - - 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 true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPlayerId()) { - memoizedIsInitialized = 0; - return false; + /** + * required .NetGameState gameState = 3; + */ + private void setGameState(de.pokerth.protocol.ProtoBuf.NetGameState value) { + if (value == null) { + throw new NullPointerException(); } - if (!hasGameState()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + bitField0_ |= 0x00000004; + gameState_ = value.getNumber(); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, playerId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, gameState_.getNumber()); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(3, gameState_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, gameState_.getNumber()); + .computeEnumSize(3, gameState_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayersTurnMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code PlayersTurnMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.PlayersTurnMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.PlayersTurnMessage, Builder> implements // @@protoc_insertion_point(builder_implements:PlayersTurnMessage) de.pokerth.protocol.ProtoBuf.PlayersTurnMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.PlayersTurnMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.PlayersTurnMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int playerId_ ; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPlayerId(); } /** * required uint32 playerId = 2; */ + @java.lang.Override public int getPlayerId() { - return playerId_; + return instance.getPlayerId(); } /** * required uint32 playerId = 2; */ public Builder setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - + copyOnWrite(); + instance.setPlayerId(value); return this; } /** * required uint32 playerId = 2; */ public Builder clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - + copyOnWrite(); + instance.clearPlayerId(); return this; } - private de.pokerth.protocol.ProtoBuf.NetGameState gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; /** * required .NetGameState gameState = 3; */ + @java.lang.Override public boolean hasGameState() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasGameState(); } /** * required .NetGameState gameState = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameState getGameState() { - return gameState_; + return instance.getGameState(); } /** * required .NetGameState gameState = 3; */ public Builder setGameState(de.pokerth.protocol.ProtoBuf.NetGameState value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - gameState_ = value; - + copyOnWrite(); + instance.setGameState(value); return this; } /** * required .NetGameState gameState = 3; */ public Builder clearGameState() { - bitField0_ = (bitField0_ & ~0x00000004); - gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; - + copyOnWrite(); + instance.clearGameState(); 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; - static { - defaultInstance = new PlayersTurnMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface MyActionRequestMessageOrBuilder extends @@ -30580,184 +30081,144 @@ public final class ProtoBuf { /** * Protobuf type {@code MyActionRequestMessage} */ - public static final class MyActionRequestMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class MyActionRequestMessage extends + com.google.protobuf.GeneratedMessageLite< + MyActionRequestMessage, MyActionRequestMessage.Builder> implements // @@protoc_insertion_point(message_implements:MyActionRequestMessage) MyActionRequestMessageOrBuilder { - // Use MyActionRequestMessage.newBuilder() to construct. - private MyActionRequestMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private MyActionRequestMessage() { } - private MyActionRequestMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final MyActionRequestMessage defaultInstance; - public static MyActionRequestMessage getDefaultInstance() { - return defaultInstance; - } - - public MyActionRequestMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private MyActionRequestMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - 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) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000008; - myAction_ = value; - } - break; - } - case 40: { - bitField0_ |= 0x00000010; - myRelativeBet_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public MyActionRequestMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MyActionRequestMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int HANDNUM_FIELD_NUMBER = 2; private int handNum_; /** * required uint32 handNum = 2; */ + @java.lang.Override public boolean hasHandNum() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } public static final int GAMESTATE_FIELD_NUMBER = 3; - private de.pokerth.protocol.ProtoBuf.NetGameState gameState_; + private int gameState_; /** * required .NetGameState gameState = 3; */ + @java.lang.Override public boolean hasGameState() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required .NetGameState gameState = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameState getGameState() { - return gameState_; + de.pokerth.protocol.ProtoBuf.NetGameState result = de.pokerth.protocol.ProtoBuf.NetGameState.forNumber(gameState_); + return result == null ? de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop : result; + } + /** + * 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; } public static final int MYACTION_FIELD_NUMBER = 4; - private de.pokerth.protocol.ProtoBuf.NetPlayerAction myAction_; + private int myAction_; /** * required .NetPlayerAction myAction = 4; */ + @java.lang.Override public boolean hasMyAction() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required .NetPlayerAction myAction = 4; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetPlayerAction getMyAction() { - return myAction_; + de.pokerth.protocol.ProtoBuf.NetPlayerAction result = de.pokerth.protocol.ProtoBuf.NetPlayerAction.forNumber(myAction_); + return result == null ? de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone : result; + } + /** + * 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; } public static final int MYRELATIVEBET_FIELD_NUMBER = 5; @@ -30765,491 +30226,514 @@ public final class ProtoBuf { /** * required uint32 myRelativeBet = 5; */ + @java.lang.Override public boolean hasMyRelativeBet() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required uint32 myRelativeBet = 5; */ + @java.lang.Override public int getMyRelativeBet() { return myRelativeBet_; } - - private void initFields() { - gameId_ = 0; - handNum_ = 0; - gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; - myAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; + /** + * required uint32 myRelativeBet = 5; + */ + private void setMyRelativeBet(int value) { + bitField0_ |= 0x00000010; + myRelativeBet_ = value; + } + /** + * required uint32 myRelativeBet = 5; + */ + private void clearMyRelativeBet() { + bitField0_ = (bitField0_ & ~0x00000010); myRelativeBet_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - 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; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, handNum_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, gameState_.getNumber()); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(3, gameState_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeEnum(4, myAction_.getNumber()); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeEnum(4, myAction_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeUInt32(5, myRelativeBet_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, handNum_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, gameState_.getNumber()); + .computeEnumSize(3, gameState_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, myAction_.getNumber()); + .computeEnumSize(4, myAction_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, myRelativeBet_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.MyActionRequestMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code MyActionRequestMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.MyActionRequestMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.MyActionRequestMessage, Builder> implements // @@protoc_insertion_point(builder_implements:MyActionRequestMessage) de.pokerth.protocol.ProtoBuf.MyActionRequestMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.MyActionRequestMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.MyActionRequestMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int handNum_ ; /** * required uint32 handNum = 2; */ + @java.lang.Override public boolean hasHandNum() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasHandNum(); } /** * required uint32 handNum = 2; */ + @java.lang.Override public int getHandNum() { - return handNum_; + return instance.getHandNum(); } /** * required uint32 handNum = 2; */ public Builder setHandNum(int value) { - bitField0_ |= 0x00000002; - handNum_ = value; - + copyOnWrite(); + instance.setHandNum(value); return this; } /** * required uint32 handNum = 2; */ public Builder clearHandNum() { - bitField0_ = (bitField0_ & ~0x00000002); - handNum_ = 0; - + copyOnWrite(); + instance.clearHandNum(); return this; } - private de.pokerth.protocol.ProtoBuf.NetGameState gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; /** * required .NetGameState gameState = 3; */ + @java.lang.Override public boolean hasGameState() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasGameState(); } /** * required .NetGameState gameState = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameState getGameState() { - return gameState_; + return instance.getGameState(); } /** * required .NetGameState gameState = 3; */ public Builder setGameState(de.pokerth.protocol.ProtoBuf.NetGameState value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - gameState_ = value; - + copyOnWrite(); + instance.setGameState(value); return this; } /** * required .NetGameState gameState = 3; */ public Builder clearGameState() { - bitField0_ = (bitField0_ & ~0x00000004); - gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; - + copyOnWrite(); + instance.clearGameState(); return this; } - private de.pokerth.protocol.ProtoBuf.NetPlayerAction myAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; /** * required .NetPlayerAction myAction = 4; */ + @java.lang.Override public boolean hasMyAction() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return instance.hasMyAction(); } /** * required .NetPlayerAction myAction = 4; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetPlayerAction getMyAction() { - return myAction_; + return instance.getMyAction(); } /** * required .NetPlayerAction myAction = 4; */ public Builder setMyAction(de.pokerth.protocol.ProtoBuf.NetPlayerAction value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - myAction_ = value; - + copyOnWrite(); + instance.setMyAction(value); return this; } /** * required .NetPlayerAction myAction = 4; */ public Builder clearMyAction() { - bitField0_ = (bitField0_ & ~0x00000008); - myAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; - + copyOnWrite(); + instance.clearMyAction(); return this; } - private int myRelativeBet_ ; /** * required uint32 myRelativeBet = 5; */ + @java.lang.Override public boolean hasMyRelativeBet() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return instance.hasMyRelativeBet(); } /** * required uint32 myRelativeBet = 5; */ + @java.lang.Override public int getMyRelativeBet() { - return myRelativeBet_; + return instance.getMyRelativeBet(); } /** * required uint32 myRelativeBet = 5; */ public Builder setMyRelativeBet(int value) { - bitField0_ |= 0x00000010; - myRelativeBet_ = value; - + copyOnWrite(); + instance.setMyRelativeBet(value); return this; } /** * required uint32 myRelativeBet = 5; */ public Builder clearMyRelativeBet() { - bitField0_ = (bitField0_ & ~0x00000010); - myRelativeBet_ = 0; - + copyOnWrite(); + instance.clearMyRelativeBet(); 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; - static { - defaultInstance = new MyActionRequestMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface YourActionRejectedMessageOrBuilder extends @@ -31304,132 +30788,14 @@ public final class ProtoBuf { /** * Protobuf type {@code YourActionRejectedMessage} */ - public static final class YourActionRejectedMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class YourActionRejectedMessage extends + com.google.protobuf.GeneratedMessageLite< + YourActionRejectedMessage, YourActionRejectedMessage.Builder> implements // @@protoc_insertion_point(message_implements:YourActionRejectedMessage) YourActionRejectedMessageOrBuilder { - // Use YourActionRejectedMessage.newBuilder() to construct. - private YourActionRejectedMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private YourActionRejectedMessage() { + rejectionReason_ = 1; } - private YourActionRejectedMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final YourActionRejectedMessage defaultInstance; - public static YourActionRejectedMessage getDefaultInstance() { - return defaultInstance; - } - - public YourActionRejectedMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private YourActionRejectedMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - 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) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - 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) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000010; - rejectionReason_ = value; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public YourActionRejectedMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new YourActionRejectedMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - /** * Protobuf enum {@code YourActionRejectedMessage.RejectionReason} */ @@ -31438,15 +30804,15 @@ public final class ProtoBuf { /** * rejectedInvalidGameState = 1; */ - rejectedInvalidGameState(0, 1), + rejectedInvalidGameState(1), /** * rejectedNotYourTurn = 2; */ - rejectedNotYourTurn(1, 2), + rejectedNotYourTurn(2), /** * rejectedActionNotAllowed = 3; */ - rejectedActionNotAllowed(2, 3), + rejectedActionNotAllowed(3), ; /** @@ -31463,9 +30829,20 @@ public final class ProtoBuf { public static final int rejectedActionNotAllowed_VALUE = 3; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -31478,17 +30855,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + RejectionReason> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public RejectionReason findValueByNumber(int number) { - return RejectionReason.valueOf(number); + return RejectionReason.forNumber(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 index, int value) { + private RejectionReason(int value) { this.value = value; } @@ -31501,44 +30893,100 @@ public final class ProtoBuf { /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int GAMESTATE_FIELD_NUMBER = 2; - private de.pokerth.protocol.ProtoBuf.NetGameState gameState_; + private int gameState_; /** * required .NetGameState gameState = 2; */ + @java.lang.Override public boolean hasGameState() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .NetGameState gameState = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameState getGameState() { - return gameState_; + de.pokerth.protocol.ProtoBuf.NetGameState result = de.pokerth.protocol.ProtoBuf.NetGameState.forNumber(gameState_); + return result == null ? de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop : result; + } + /** + * 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; } public static final int YOURACTION_FIELD_NUMBER = 3; - private de.pokerth.protocol.ProtoBuf.NetPlayerAction yourAction_; + private int yourAction_; /** * required .NetPlayerAction yourAction = 3; */ + @java.lang.Override public boolean hasYourAction() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required .NetPlayerAction yourAction = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetPlayerAction getYourAction() { - return yourAction_; + de.pokerth.protocol.ProtoBuf.NetPlayerAction result = de.pokerth.protocol.ProtoBuf.NetPlayerAction.forNumber(yourAction_); + return result == null ? de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone : result; + } + /** + * 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; } public static final int YOURRELATIVEBET_FIELD_NUMBER = 4; @@ -31546,509 +30994,554 @@ public final class ProtoBuf { /** * required uint32 yourRelativeBet = 4; */ + @java.lang.Override public boolean hasYourRelativeBet() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * 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; + } public static final int REJECTIONREASON_FIELD_NUMBER = 5; - private de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason rejectionReason_; + private int rejectionReason_; /** * required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; */ + @java.lang.Override public boolean hasRejectionReason() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason getRejectionReason() { - return rejectionReason_; + 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; } - - 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 true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasGameState()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasYourAction()) { - memoizedIsInitialized = 0; - return false; + /** + * required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; + */ + private void setRejectionReason(de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason value) { + if (value == null) { + throw new NullPointerException(); } - if (!hasYourRelativeBet()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasRejectionReason()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + bitField0_ |= 0x00000010; + rejectionReason_ = value.getNumber(); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, gameState_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, gameState_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, yourAction_.getNumber()); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(3, yourAction_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt32(4, yourRelativeBet_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeEnum(5, rejectionReason_.getNumber()); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(5, rejectionReason_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, gameState_.getNumber()); + .computeEnumSize(2, gameState_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, yourAction_.getNumber()); + .computeEnumSize(3, yourAction_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, yourRelativeBet_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, rejectionReason_.getNumber()); + .computeEnumSize(5, rejectionReason_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code YourActionRejectedMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage, Builder> implements // @@protoc_insertion_point(builder_implements:YourActionRejectedMessage) de.pokerth.protocol.ProtoBuf.YourActionRejectedMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private de.pokerth.protocol.ProtoBuf.NetGameState gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; /** * required .NetGameState gameState = 2; */ + @java.lang.Override public boolean hasGameState() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasGameState(); } /** * required .NetGameState gameState = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameState getGameState() { - return gameState_; + return instance.getGameState(); } /** * required .NetGameState gameState = 2; */ public Builder setGameState(de.pokerth.protocol.ProtoBuf.NetGameState value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - gameState_ = value; - + copyOnWrite(); + instance.setGameState(value); return this; } /** * required .NetGameState gameState = 2; */ public Builder clearGameState() { - bitField0_ = (bitField0_ & ~0x00000002); - gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; - + copyOnWrite(); + instance.clearGameState(); return this; } - private de.pokerth.protocol.ProtoBuf.NetPlayerAction yourAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; /** * required .NetPlayerAction yourAction = 3; */ + @java.lang.Override public boolean hasYourAction() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasYourAction(); } /** * required .NetPlayerAction yourAction = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetPlayerAction getYourAction() { - return yourAction_; + return instance.getYourAction(); } /** * required .NetPlayerAction yourAction = 3; */ public Builder setYourAction(de.pokerth.protocol.ProtoBuf.NetPlayerAction value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - yourAction_ = value; - + copyOnWrite(); + instance.setYourAction(value); return this; } /** * required .NetPlayerAction yourAction = 3; */ public Builder clearYourAction() { - bitField0_ = (bitField0_ & ~0x00000004); - yourAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; - + copyOnWrite(); + instance.clearYourAction(); return this; } - private int yourRelativeBet_ ; /** * required uint32 yourRelativeBet = 4; */ + @java.lang.Override public boolean hasYourRelativeBet() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return instance.hasYourRelativeBet(); } /** * required uint32 yourRelativeBet = 4; */ + @java.lang.Override public int getYourRelativeBet() { - return yourRelativeBet_; + return instance.getYourRelativeBet(); } /** * required uint32 yourRelativeBet = 4; */ public Builder setYourRelativeBet(int value) { - bitField0_ |= 0x00000008; - yourRelativeBet_ = value; - + copyOnWrite(); + instance.setYourRelativeBet(value); return this; } /** * required uint32 yourRelativeBet = 4; */ public Builder clearYourRelativeBet() { - bitField0_ = (bitField0_ & ~0x00000008); - yourRelativeBet_ = 0; - + copyOnWrite(); + instance.clearYourRelativeBet(); return this; } - private de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason rejectionReason_ = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason.rejectedInvalidGameState; /** * required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; */ + @java.lang.Override public boolean hasRejectionReason() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return instance.hasRejectionReason(); } /** * required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason getRejectionReason() { - return rejectionReason_; + return instance.getRejectionReason(); } /** * required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; */ public Builder setRejectionReason(de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - rejectionReason_ = value; - + copyOnWrite(); + instance.setRejectionReason(value); return this; } /** * required .YourActionRejectedMessage.RejectionReason rejectionReason = 5; */ public Builder clearRejectionReason() { - bitField0_ = (bitField0_ & ~0x00000010); - rejectionReason_ = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.RejectionReason.rejectedInvalidGameState; - + copyOnWrite(); + instance.clearRejectionReason(); 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; - static { - defaultInstance = new YourActionRejectedMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface PlayersActionDoneMessageOrBuilder extends @@ -32130,199 +31623,144 @@ public final class ProtoBuf { /** * Protobuf type {@code PlayersActionDoneMessage} */ - public static final class PlayersActionDoneMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class PlayersActionDoneMessage extends + com.google.protobuf.GeneratedMessageLite< + PlayersActionDoneMessage, PlayersActionDoneMessage.Builder> implements // @@protoc_insertion_point(message_implements:PlayersActionDoneMessage) PlayersActionDoneMessageOrBuilder { - // Use PlayersActionDoneMessage.newBuilder() to construct. - private PlayersActionDoneMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private PlayersActionDoneMessage() { } - private PlayersActionDoneMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final PlayersActionDoneMessage defaultInstance; - public static PlayersActionDoneMessage getDefaultInstance() { - return defaultInstance; - } - - public PlayersActionDoneMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private PlayersActionDoneMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - 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) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - 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; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public PlayersActionDoneMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayersActionDoneMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } public static final int GAMESTATE_FIELD_NUMBER = 3; - private de.pokerth.protocol.ProtoBuf.NetGameState gameState_; + private int gameState_; /** * required .NetGameState gameState = 3; */ + @java.lang.Override public boolean hasGameState() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required .NetGameState gameState = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameState getGameState() { - return gameState_; + de.pokerth.protocol.ProtoBuf.NetGameState result = de.pokerth.protocol.ProtoBuf.NetGameState.forNumber(gameState_); + return result == null ? de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop : result; + } + /** + * 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; } public static final int PLAYERACTION_FIELD_NUMBER = 4; - private de.pokerth.protocol.ProtoBuf.NetPlayerAction playerAction_; + private int playerAction_; /** * required .NetPlayerAction playerAction = 4; */ + @java.lang.Override public boolean hasPlayerAction() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required .NetPlayerAction playerAction = 4; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetPlayerAction getPlayerAction() { - return playerAction_; + de.pokerth.protocol.ProtoBuf.NetPlayerAction result = de.pokerth.protocol.ProtoBuf.NetPlayerAction.forNumber(playerAction_); + return result == null ? de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone : result; + } + /** + * 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; } public static final int TOTALPLAYERBET_FIELD_NUMBER = 5; @@ -32330,707 +31768,754 @@ public final class ProtoBuf { /** * required uint32 totalPlayerBet = 5; */ + @java.lang.Override public boolean hasTotalPlayerBet() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * 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; + } public static final int PLAYERMONEY_FIELD_NUMBER = 6; private int playerMoney_; /** * required uint32 playerMoney = 6; */ + @java.lang.Override public boolean hasPlayerMoney() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * 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; + } public static final int HIGHESTSET_FIELD_NUMBER = 7; private int highestSet_; /** * required uint32 highestSet = 7; */ + @java.lang.Override public boolean hasHighestSet() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * 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; + } public static final int MINIMUMRAISE_FIELD_NUMBER = 8; private int minimumRaise_; /** * required uint32 minimumRaise = 8; */ + @java.lang.Override public boolean hasMinimumRaise() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * required uint32 minimumRaise = 8; */ + @java.lang.Override public int getMinimumRaise() { return minimumRaise_; } - - 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; + /** + * required uint32 minimumRaise = 8; + */ + private void setMinimumRaise(int value) { + bitField0_ |= 0x00000080; + minimumRaise_ = value; + } + /** + * required uint32 minimumRaise = 8; + */ + private void clearMinimumRaise() { + bitField0_ = (bitField0_ & ~0x00000080); minimumRaise_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - 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; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, playerId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, gameState_.getNumber()); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(3, gameState_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeEnum(4, playerAction_.getNumber()); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeEnum(4, playerAction_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeUInt32(5, totalPlayerBet_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeUInt32(6, playerMoney_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeUInt32(7, highestSet_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeUInt32(8, minimumRaise_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, gameState_.getNumber()); + .computeEnumSize(3, gameState_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, playerAction_.getNumber()); + .computeEnumSize(4, playerAction_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, totalPlayerBet_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, playerMoney_); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, highestSet_); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(8, minimumRaise_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code PlayersActionDoneMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage, Builder> implements // @@protoc_insertion_point(builder_implements:PlayersActionDoneMessage) de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int playerId_ ; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPlayerId(); } /** * required uint32 playerId = 2; */ + @java.lang.Override public int getPlayerId() { - return playerId_; + return instance.getPlayerId(); } /** * required uint32 playerId = 2; */ public Builder setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - + copyOnWrite(); + instance.setPlayerId(value); return this; } /** * required uint32 playerId = 2; */ public Builder clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - + copyOnWrite(); + instance.clearPlayerId(); return this; } - private de.pokerth.protocol.ProtoBuf.NetGameState gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; /** * required .NetGameState gameState = 3; */ + @java.lang.Override public boolean hasGameState() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasGameState(); } /** * required .NetGameState gameState = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetGameState getGameState() { - return gameState_; + return instance.getGameState(); } /** * required .NetGameState gameState = 3; */ public Builder setGameState(de.pokerth.protocol.ProtoBuf.NetGameState value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - gameState_ = value; - + copyOnWrite(); + instance.setGameState(value); return this; } /** * required .NetGameState gameState = 3; */ public Builder clearGameState() { - bitField0_ = (bitField0_ & ~0x00000004); - gameState_ = de.pokerth.protocol.ProtoBuf.NetGameState.netStatePreflop; - + copyOnWrite(); + instance.clearGameState(); return this; } - private de.pokerth.protocol.ProtoBuf.NetPlayerAction playerAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; /** * required .NetPlayerAction playerAction = 4; */ + @java.lang.Override public boolean hasPlayerAction() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return instance.hasPlayerAction(); } /** * required .NetPlayerAction playerAction = 4; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.NetPlayerAction getPlayerAction() { - return playerAction_; + return instance.getPlayerAction(); } /** * required .NetPlayerAction playerAction = 4; */ public Builder setPlayerAction(de.pokerth.protocol.ProtoBuf.NetPlayerAction value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - playerAction_ = value; - + copyOnWrite(); + instance.setPlayerAction(value); return this; } /** * required .NetPlayerAction playerAction = 4; */ public Builder clearPlayerAction() { - bitField0_ = (bitField0_ & ~0x00000008); - playerAction_ = de.pokerth.protocol.ProtoBuf.NetPlayerAction.netActionNone; - + copyOnWrite(); + instance.clearPlayerAction(); return this; } - private int totalPlayerBet_ ; /** * required uint32 totalPlayerBet = 5; */ + @java.lang.Override public boolean hasTotalPlayerBet() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return instance.hasTotalPlayerBet(); } /** * required uint32 totalPlayerBet = 5; */ + @java.lang.Override public int getTotalPlayerBet() { - return totalPlayerBet_; + return instance.getTotalPlayerBet(); } /** * required uint32 totalPlayerBet = 5; */ public Builder setTotalPlayerBet(int value) { - bitField0_ |= 0x00000010; - totalPlayerBet_ = value; - + copyOnWrite(); + instance.setTotalPlayerBet(value); return this; } /** * required uint32 totalPlayerBet = 5; */ public Builder clearTotalPlayerBet() { - bitField0_ = (bitField0_ & ~0x00000010); - totalPlayerBet_ = 0; - + copyOnWrite(); + instance.clearTotalPlayerBet(); return this; } - private int playerMoney_ ; /** * required uint32 playerMoney = 6; */ + @java.lang.Override public boolean hasPlayerMoney() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return instance.hasPlayerMoney(); } /** * required uint32 playerMoney = 6; */ + @java.lang.Override public int getPlayerMoney() { - return playerMoney_; + return instance.getPlayerMoney(); } /** * required uint32 playerMoney = 6; */ public Builder setPlayerMoney(int value) { - bitField0_ |= 0x00000020; - playerMoney_ = value; - + copyOnWrite(); + instance.setPlayerMoney(value); return this; } /** * required uint32 playerMoney = 6; */ public Builder clearPlayerMoney() { - bitField0_ = (bitField0_ & ~0x00000020); - playerMoney_ = 0; - + copyOnWrite(); + instance.clearPlayerMoney(); return this; } - private int highestSet_ ; /** * required uint32 highestSet = 7; */ + @java.lang.Override public boolean hasHighestSet() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return instance.hasHighestSet(); } /** * required uint32 highestSet = 7; */ + @java.lang.Override public int getHighestSet() { - return highestSet_; + return instance.getHighestSet(); } /** * required uint32 highestSet = 7; */ public Builder setHighestSet(int value) { - bitField0_ |= 0x00000040; - highestSet_ = value; - + copyOnWrite(); + instance.setHighestSet(value); return this; } /** * required uint32 highestSet = 7; */ public Builder clearHighestSet() { - bitField0_ = (bitField0_ & ~0x00000040); - highestSet_ = 0; - + copyOnWrite(); + instance.clearHighestSet(); return this; } - private int minimumRaise_ ; /** * required uint32 minimumRaise = 8; */ + @java.lang.Override public boolean hasMinimumRaise() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return instance.hasMinimumRaise(); } /** * required uint32 minimumRaise = 8; */ + @java.lang.Override public int getMinimumRaise() { - return minimumRaise_; + return instance.getMinimumRaise(); } /** * required uint32 minimumRaise = 8; */ public Builder setMinimumRaise(int value) { - bitField0_ |= 0x00000080; - minimumRaise_ = value; - + copyOnWrite(); + instance.setMinimumRaise(value); return this; } /** * required uint32 minimumRaise = 8; */ public Builder clearMinimumRaise() { - bitField0_ = (bitField0_ & ~0x00000080); - minimumRaise_ = 0; - + copyOnWrite(); + instance.clearMinimumRaise(); 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; - static { - defaultInstance = new PlayersActionDoneMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface DealFlopCardsMessageOrBuilder extends @@ -33076,579 +32561,561 @@ public final class ProtoBuf { /** * Protobuf type {@code DealFlopCardsMessage} */ - public static final class DealFlopCardsMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class DealFlopCardsMessage extends + com.google.protobuf.GeneratedMessageLite< + DealFlopCardsMessage, DealFlopCardsMessage.Builder> implements // @@protoc_insertion_point(message_implements:DealFlopCardsMessage) DealFlopCardsMessageOrBuilder { - // Use DealFlopCardsMessage.newBuilder() to construct. - private DealFlopCardsMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private DealFlopCardsMessage() { } - private DealFlopCardsMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final DealFlopCardsMessage defaultInstance; - public static DealFlopCardsMessage getDefaultInstance() { - return defaultInstance; - } - - public DealFlopCardsMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private DealFlopCardsMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DealFlopCardsMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DealFlopCardsMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int FLOPCARD1_FIELD_NUMBER = 2; private int flopCard1_; /** * required uint32 flopCard1 = 2; */ + @java.lang.Override public boolean hasFlopCard1() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } public static final int FLOPCARD2_FIELD_NUMBER = 3; private int flopCard2_; /** * required uint32 flopCard2 = 3; */ + @java.lang.Override public boolean hasFlopCard2() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * 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; + } public static final int FLOPCARD3_FIELD_NUMBER = 4; private int flopCard3_; /** * required uint32 flopCard3 = 4; */ + @java.lang.Override public boolean hasFlopCard3() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required uint32 flopCard3 = 4; */ + @java.lang.Override public int getFlopCard3() { return flopCard3_; } - - private void initFields() { - gameId_ = 0; - flopCard1_ = 0; - flopCard2_ = 0; + /** + * required uint32 flopCard3 = 4; + */ + private void setFlopCard3(int value) { + bitField0_ |= 0x00000008; + flopCard3_ = value; + } + /** + * required uint32 flopCard3 = 4; + */ + private void clearFlopCard3() { + bitField0_ = (bitField0_ & ~0x00000008); flopCard3_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - 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; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, flopCard1_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt32(3, flopCard2_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt32(4, flopCard3_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, flopCard1_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, flopCard2_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, flopCard3_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code DealFlopCardsMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage, Builder> implements // @@protoc_insertion_point(builder_implements:DealFlopCardsMessage) de.pokerth.protocol.ProtoBuf.DealFlopCardsMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int flopCard1_ ; /** * required uint32 flopCard1 = 2; */ + @java.lang.Override public boolean hasFlopCard1() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasFlopCard1(); } /** * required uint32 flopCard1 = 2; */ + @java.lang.Override public int getFlopCard1() { - return flopCard1_; + return instance.getFlopCard1(); } /** * required uint32 flopCard1 = 2; */ public Builder setFlopCard1(int value) { - bitField0_ |= 0x00000002; - flopCard1_ = value; - + copyOnWrite(); + instance.setFlopCard1(value); return this; } /** * required uint32 flopCard1 = 2; */ public Builder clearFlopCard1() { - bitField0_ = (bitField0_ & ~0x00000002); - flopCard1_ = 0; - + copyOnWrite(); + instance.clearFlopCard1(); return this; } - private int flopCard2_ ; /** * required uint32 flopCard2 = 3; */ + @java.lang.Override public boolean hasFlopCard2() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasFlopCard2(); } /** * required uint32 flopCard2 = 3; */ + @java.lang.Override public int getFlopCard2() { - return flopCard2_; + return instance.getFlopCard2(); } /** * required uint32 flopCard2 = 3; */ public Builder setFlopCard2(int value) { - bitField0_ |= 0x00000004; - flopCard2_ = value; - + copyOnWrite(); + instance.setFlopCard2(value); return this; } /** * required uint32 flopCard2 = 3; */ public Builder clearFlopCard2() { - bitField0_ = (bitField0_ & ~0x00000004); - flopCard2_ = 0; - + copyOnWrite(); + instance.clearFlopCard2(); return this; } - private int flopCard3_ ; /** * required uint32 flopCard3 = 4; */ + @java.lang.Override public boolean hasFlopCard3() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return instance.hasFlopCard3(); } /** * required uint32 flopCard3 = 4; */ + @java.lang.Override public int getFlopCard3() { - return flopCard3_; + return instance.getFlopCard3(); } /** * required uint32 flopCard3 = 4; */ public Builder setFlopCard3(int value) { - bitField0_ |= 0x00000008; - flopCard3_ = value; - + copyOnWrite(); + instance.setFlopCard3(value); return this; } /** * required uint32 flopCard3 = 4; */ public Builder clearFlopCard3() { - bitField0_ = (bitField0_ & ~0x00000008); - flopCard3_ = 0; - + copyOnWrite(); + instance.clearFlopCard3(); 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; - static { - defaultInstance = new DealFlopCardsMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface DealTurnCardMessageOrBuilder extends @@ -33676,425 +33143,401 @@ public final class ProtoBuf { /** * Protobuf type {@code DealTurnCardMessage} */ - public static final class DealTurnCardMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class DealTurnCardMessage extends + com.google.protobuf.GeneratedMessageLite< + DealTurnCardMessage, DealTurnCardMessage.Builder> implements // @@protoc_insertion_point(message_implements:DealTurnCardMessage) DealTurnCardMessageOrBuilder { - // Use DealTurnCardMessage.newBuilder() to construct. - private DealTurnCardMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private DealTurnCardMessage() { } - private DealTurnCardMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final DealTurnCardMessage defaultInstance; - public static DealTurnCardMessage getDefaultInstance() { - return defaultInstance; - } - - public DealTurnCardMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private DealTurnCardMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - turnCard_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DealTurnCardMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DealTurnCardMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int TURNCARD_FIELD_NUMBER = 2; private int turnCard_; /** * required uint32 turnCard = 2; */ + @java.lang.Override public boolean hasTurnCard() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required uint32 turnCard = 2; */ + @java.lang.Override public int getTurnCard() { return turnCard_; } - - private void initFields() { - gameId_ = 0; + /** + * required uint32 turnCard = 2; + */ + private void setTurnCard(int value) { + bitField0_ |= 0x00000002; + turnCard_ = value; + } + /** + * required uint32 turnCard = 2; + */ + private void clearTurnCard() { + bitField0_ = (bitField0_ & ~0x00000002); turnCard_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasTurnCard()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, turnCard_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, turnCard_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.DealTurnCardMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code DealTurnCardMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.DealTurnCardMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.DealTurnCardMessage, Builder> implements // @@protoc_insertion_point(builder_implements:DealTurnCardMessage) de.pokerth.protocol.ProtoBuf.DealTurnCardMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.DealTurnCardMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.DealTurnCardMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int turnCard_ ; /** * required uint32 turnCard = 2; */ + @java.lang.Override public boolean hasTurnCard() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasTurnCard(); } /** * required uint32 turnCard = 2; */ + @java.lang.Override public int getTurnCard() { - return turnCard_; + return instance.getTurnCard(); } /** * required uint32 turnCard = 2; */ public Builder setTurnCard(int value) { - bitField0_ |= 0x00000002; - turnCard_ = value; - + copyOnWrite(); + instance.setTurnCard(value); return this; } /** * required uint32 turnCard = 2; */ public Builder clearTurnCard() { - bitField0_ = (bitField0_ & ~0x00000002); - turnCard_ = 0; - + copyOnWrite(); + instance.clearTurnCard(); 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; - static { - defaultInstance = new DealTurnCardMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface DealRiverCardMessageOrBuilder extends @@ -34122,425 +33565,401 @@ public final class ProtoBuf { /** * Protobuf type {@code DealRiverCardMessage} */ - public static final class DealRiverCardMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class DealRiverCardMessage extends + com.google.protobuf.GeneratedMessageLite< + DealRiverCardMessage, DealRiverCardMessage.Builder> implements // @@protoc_insertion_point(message_implements:DealRiverCardMessage) DealRiverCardMessageOrBuilder { - // Use DealRiverCardMessage.newBuilder() to construct. - private DealRiverCardMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private DealRiverCardMessage() { } - private DealRiverCardMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final DealRiverCardMessage defaultInstance; - public static DealRiverCardMessage getDefaultInstance() { - return defaultInstance; - } - - public DealRiverCardMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private DealRiverCardMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - riverCard_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DealRiverCardMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DealRiverCardMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int RIVERCARD_FIELD_NUMBER = 2; private int riverCard_; /** * required uint32 riverCard = 2; */ + @java.lang.Override public boolean hasRiverCard() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required uint32 riverCard = 2; */ + @java.lang.Override public int getRiverCard() { return riverCard_; } - - private void initFields() { - gameId_ = 0; + /** + * required uint32 riverCard = 2; + */ + private void setRiverCard(int value) { + bitField0_ |= 0x00000002; + riverCard_ = value; + } + /** + * required uint32 riverCard = 2; + */ + private void clearRiverCard() { + bitField0_ = (bitField0_ & ~0x00000002); riverCard_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasRiverCard()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, riverCard_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, riverCard_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.DealRiverCardMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code DealRiverCardMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.DealRiverCardMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.DealRiverCardMessage, Builder> implements // @@protoc_insertion_point(builder_implements:DealRiverCardMessage) de.pokerth.protocol.ProtoBuf.DealRiverCardMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.DealRiverCardMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.DealRiverCardMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int riverCard_ ; /** * required uint32 riverCard = 2; */ + @java.lang.Override public boolean hasRiverCard() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasRiverCard(); } /** * required uint32 riverCard = 2; */ + @java.lang.Override public int getRiverCard() { - return riverCard_; + return instance.getRiverCard(); } /** * required uint32 riverCard = 2; */ public Builder setRiverCard(int value) { - bitField0_ |= 0x00000002; - riverCard_ = value; - + copyOnWrite(); + instance.setRiverCard(value); return this; } /** * required uint32 riverCard = 2; */ public Builder clearRiverCard() { - bitField0_ = (bitField0_ & ~0x00000002); - riverCard_ = 0; - + copyOnWrite(); + instance.clearRiverCard(); 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; - static { - defaultInstance = new DealRiverCardMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface AllInShowCardsMessageOrBuilder extends @@ -34573,102 +33992,14 @@ public final class ProtoBuf { /** * Protobuf type {@code AllInShowCardsMessage} */ - public static final class AllInShowCardsMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class AllInShowCardsMessage extends + com.google.protobuf.GeneratedMessageLite< + AllInShowCardsMessage, AllInShowCardsMessage.Builder> implements // @@protoc_insertion_point(message_implements:AllInShowCardsMessage) AllInShowCardsMessageOrBuilder { - // Use AllInShowCardsMessage.newBuilder() to construct. - private AllInShowCardsMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private AllInShowCardsMessage() { + playersAllIn_ = emptyProtobufList(); } - private AllInShowCardsMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final AllInShowCardsMessage defaultInstance; - public static AllInShowCardsMessage getDefaultInstance() { - return defaultInstance; - } - - public AllInShowCardsMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private AllInShowCardsMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - playersAllIn_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - playersAllIn_.add(input.readMessage(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - playersAllIn_ = java.util.Collections.unmodifiableList(playersAllIn_); - } - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AllInShowCardsMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AllInShowCardsMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public interface PlayerAllInOrBuilder extends // @@protoc_insertion_point(interface_extends:AllInShowCardsMessage.PlayerAllIn) com.google.protobuf.MessageLiteOrBuilder { @@ -34703,502 +34034,481 @@ public final class ProtoBuf { /** * Protobuf type {@code AllInShowCardsMessage.PlayerAllIn} */ - public static final class PlayerAllIn extends - com.google.protobuf.GeneratedMessageLite implements + public static final class PlayerAllIn extends + com.google.protobuf.GeneratedMessageLite< + PlayerAllIn, PlayerAllIn.Builder> implements // @@protoc_insertion_point(message_implements:AllInShowCardsMessage.PlayerAllIn) PlayerAllInOrBuilder { - // Use PlayerAllIn.newBuilder() to construct. - private PlayerAllIn(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private PlayerAllIn() { } - private PlayerAllIn(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final PlayerAllIn defaultInstance; - public static PlayerAllIn getDefaultInstance() { - return defaultInstance; - } - - public PlayerAllIn getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private PlayerAllIn( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public PlayerAllIn parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerAllIn(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int PLAYERID_FIELD_NUMBER = 1; private int playerId_; /** * required uint32 playerId = 1; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int ALLINCARD1_FIELD_NUMBER = 2; private int allInCard1_; /** * required uint32 allInCard1 = 2; */ + @java.lang.Override public boolean hasAllInCard1() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } public static final int ALLINCARD2_FIELD_NUMBER = 3; private int allInCard2_; /** * required uint32 allInCard2 = 3; */ + @java.lang.Override public boolean hasAllInCard2() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required uint32 allInCard2 = 3; */ + @java.lang.Override public int getAllInCard2() { return allInCard2_; } - - private void initFields() { - playerId_ = 0; - allInCard1_ = 0; + /** + * required uint32 allInCard2 = 3; + */ + private void setAllInCard2(int value) { + bitField0_ |= 0x00000004; + allInCard2_ = value; + } + /** + * required uint32 allInCard2 = 3; + */ + private void clearAllInCard2() { + bitField0_ = (bitField0_ & ~0x00000004); allInCard2_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasPlayerId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasAllInCard1()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasAllInCard2()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, playerId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, allInCard1_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt32(3, allInCard2_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, playerId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, allInCard1_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, allInCard2_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } 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 PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code AllInShowCardsMessage.PlayerAllIn} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn, Builder> - implements + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn, Builder> implements // @@protoc_insertion_point(builder_implements:AllInShowCardsMessage.PlayerAllIn) de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllInOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int playerId_ ; /** * required uint32 playerId = 1; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasPlayerId(); } /** * required uint32 playerId = 1; */ + @java.lang.Override public int getPlayerId() { - return playerId_; + return instance.getPlayerId(); } /** * required uint32 playerId = 1; */ public Builder setPlayerId(int value) { - bitField0_ |= 0x00000001; - playerId_ = value; - + copyOnWrite(); + instance.setPlayerId(value); return this; } /** * required uint32 playerId = 1; */ public Builder clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000001); - playerId_ = 0; - + copyOnWrite(); + instance.clearPlayerId(); return this; } - private int allInCard1_ ; /** * required uint32 allInCard1 = 2; */ + @java.lang.Override public boolean hasAllInCard1() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasAllInCard1(); } /** * required uint32 allInCard1 = 2; */ + @java.lang.Override public int getAllInCard1() { - return allInCard1_; + return instance.getAllInCard1(); } /** * required uint32 allInCard1 = 2; */ public Builder setAllInCard1(int value) { - bitField0_ |= 0x00000002; - allInCard1_ = value; - + copyOnWrite(); + instance.setAllInCard1(value); return this; } /** * required uint32 allInCard1 = 2; */ public Builder clearAllInCard1() { - bitField0_ = (bitField0_ & ~0x00000002); - allInCard1_ = 0; - + copyOnWrite(); + instance.clearAllInCard1(); return this; } - private int allInCard2_ ; /** * required uint32 allInCard2 = 3; */ + @java.lang.Override public boolean hasAllInCard2() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasAllInCard2(); } /** * required uint32 allInCard2 = 3; */ + @java.lang.Override public int getAllInCard2() { - return allInCard2_; + return instance.getAllInCard2(); } /** * required uint32 allInCard2 = 3; */ public Builder setAllInCard2(int value) { - bitField0_ |= 0x00000004; - allInCard2_ = value; - + copyOnWrite(); + instance.setAllInCard2(value); return this; } /** * required uint32 allInCard2 = 3; */ public Builder clearAllInCard2() { - bitField0_ = (bitField0_ & ~0x00000004); - allInCard2_ = 0; - + copyOnWrite(); + instance.clearAllInCard2(); 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; - static { - defaultInstance = new PlayerAllIn(true); - defaultInstance.initFields(); + 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(); + } } private int bitField0_; @@ -35207,21 +34517,38 @@ public final class ProtoBuf { /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PLAYERSALLIN_FIELD_NUMBER = 2; - private java.util.List playersAllIn_; + private com.google.protobuf.Internal.ProtobufList playersAllIn_; /** * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; */ + @java.lang.Override public java.util.List getPlayersAllInList() { return playersAllIn_; } @@ -35235,12 +34562,14 @@ public final class ProtoBuf { /** * 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); } @@ -35251,50 +34580,111 @@ public final class ProtoBuf { int index) { return playersAllIn_.get(index); } - - private void initFields() { - gameId_ = 0; - playersAllIn_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - for (int i = 0; i < getPlayersAllInCount(); i++) { - if (!getPlayersAllIn(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; + private void ensurePlayersAllInIsMutable() { + if (!playersAllIn_.isModifiable()) { + playersAllIn_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(playersAllIn_); + } } + /** + * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; + */ + private void setPlayersAllIn( + int index, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn value) { + if (value == null) { + throw new NullPointerException(); + } + 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(); + } + ensurePlayersAllInIsMutable(); + playersAllIn_.add(value); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } for (int i = 0; i < playersAllIn_.size(); i++) { output.writeMessage(2, playersAllIn_.get(i)); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } @@ -35302,263 +34692,165 @@ public final class ProtoBuf { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, playersAllIn_.get(i)); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code AllInShowCardsMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage, Builder> implements // @@protoc_insertion_point(builder_implements:AllInShowCardsMessage) de.pokerth.protocol.ProtoBuf.AllInShowCardsMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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_); - } - - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private java.util.List playersAllIn_ = - java.util.Collections.emptyList(); - private void ensurePlayersAllInIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - playersAllIn_ = new java.util.ArrayList(playersAllIn_); - bitField0_ |= 0x00000002; - } - } - /** * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; */ + @java.lang.Override public java.util.List getPlayersAllInList() { - return java.util.Collections.unmodifiableList(playersAllIn_); + return java.util.Collections.unmodifiableList( + instance.getPlayersAllInList()); } /** * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; */ + @java.lang.Override public int getPlayersAllInCount() { - return playersAllIn_.size(); - } - /** + return instance.getPlayersAllInCount(); + }/** * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn getPlayersAllIn(int index) { - return playersAllIn_.get(index); + return instance.getPlayersAllIn(index); } /** * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; */ public Builder setPlayersAllIn( int index, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePlayersAllInIsMutable(); - playersAllIn_.set(index, value); - + copyOnWrite(); + instance.setPlayersAllIn(index, value); return this; } /** @@ -35566,21 +34858,16 @@ public final class ProtoBuf { */ public Builder setPlayersAllIn( int index, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.Builder builderForValue) { - ensurePlayersAllInIsMutable(); - playersAllIn_.set(index, builderForValue.build()); - + copyOnWrite(); + instance.setPlayersAllIn(index, builderForValue); return this; } /** * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; */ public Builder addPlayersAllIn(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePlayersAllInIsMutable(); - playersAllIn_.add(value); - + copyOnWrite(); + instance.addPlayersAllIn(value); return this; } /** @@ -35588,12 +34875,8 @@ public final class ProtoBuf { */ public Builder addPlayersAllIn( int index, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePlayersAllInIsMutable(); - playersAllIn_.add(index, value); - + copyOnWrite(); + instance.addPlayersAllIn(index, value); return this; } /** @@ -35601,9 +34884,8 @@ public final class ProtoBuf { */ public Builder addPlayersAllIn( de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.Builder builderForValue) { - ensurePlayersAllInIsMutable(); - playersAllIn_.add(builderForValue.build()); - + copyOnWrite(); + instance.addPlayersAllIn(builderForValue); return this; } /** @@ -35611,9 +34893,8 @@ public final class ProtoBuf { */ public Builder addPlayersAllIn( int index, de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.PlayerAllIn.Builder builderForValue) { - ensurePlayersAllInIsMutable(); - playersAllIn_.add(index, builderForValue.build()); - + copyOnWrite(); + instance.addPlayersAllIn(index, builderForValue); return this; } /** @@ -35621,40 +34902,169 @@ public final class ProtoBuf { */ public Builder addAllPlayersAllIn( java.lang.Iterable values) { - ensurePlayersAllInIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, playersAllIn_); - + copyOnWrite(); + instance.addAllPlayersAllIn(values); return this; } /** * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; */ public Builder clearPlayersAllIn() { - playersAllIn_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - + copyOnWrite(); + instance.clearPlayersAllIn(); return this; } /** * repeated .AllInShowCardsMessage.PlayerAllIn playersAllIn = 2; */ public Builder removePlayersAllIn(int index) { - ensurePlayersAllInIsMutable(); - playersAllIn_.remove(index); - + copyOnWrite(); + instance.removePlayersAllIn(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; - static { - defaultInstance = new AllInShowCardsMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface EndOfHandShowCardsMessageOrBuilder extends @@ -35687,123 +35097,52 @@ public final class ProtoBuf { /** * Protobuf type {@code EndOfHandShowCardsMessage} */ - public static final class EndOfHandShowCardsMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class EndOfHandShowCardsMessage extends + com.google.protobuf.GeneratedMessageLite< + EndOfHandShowCardsMessage, EndOfHandShowCardsMessage.Builder> implements // @@protoc_insertion_point(message_implements:EndOfHandShowCardsMessage) EndOfHandShowCardsMessageOrBuilder { - // Use EndOfHandShowCardsMessage.newBuilder() to construct. - private EndOfHandShowCardsMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private EndOfHandShowCardsMessage() { + playerResults_ = emptyProtobufList(); } - private EndOfHandShowCardsMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final EndOfHandShowCardsMessage defaultInstance; - public static EndOfHandShowCardsMessage getDefaultInstance() { - return defaultInstance; - } - - public EndOfHandShowCardsMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private EndOfHandShowCardsMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - playerResults_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - playerResults_.add(input.readMessage(de.pokerth.protocol.ProtoBuf.PlayerResult.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - playerResults_ = java.util.Collections.unmodifiableList(playerResults_); - } - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EndOfHandShowCardsMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EndOfHandShowCardsMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PLAYERRESULTS_FIELD_NUMBER = 2; - private java.util.List playerResults_; + private com.google.protobuf.Internal.ProtobufList playerResults_; /** * repeated .PlayerResult playerResults = 2; */ + @java.lang.Override public java.util.List getPlayerResultsList() { return playerResults_; } @@ -35817,12 +35156,14 @@ public final class ProtoBuf { /** * 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); } @@ -35833,50 +35174,111 @@ public final class ProtoBuf { int index) { return playerResults_.get(index); } - - private void initFields() { - gameId_ = 0; - playerResults_ = java.util.Collections.emptyList(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - for (int i = 0; i < getPlayerResultsCount(); i++) { - if (!getPlayerResults(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - memoizedIsInitialized = 1; - return true; + private void ensurePlayerResultsIsMutable() { + if (!playerResults_.isModifiable()) { + playerResults_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(playerResults_); + } } + /** + * repeated .PlayerResult playerResults = 2; + */ + private void setPlayerResults( + int index, de.pokerth.protocol.ProtoBuf.PlayerResult value) { + if (value == null) { + throw new NullPointerException(); + } + 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(); + } + ensurePlayerResultsIsMutable(); + playerResults_.add(value); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } for (int i = 0; i < playerResults_.size(); i++) { output.writeMessage(2, playerResults_.get(i)); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } @@ -35884,263 +35286,165 @@ public final class ProtoBuf { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, playerResults_.get(i)); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code EndOfHandShowCardsMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage, Builder> implements // @@protoc_insertion_point(builder_implements:EndOfHandShowCardsMessage) de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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_); - } - - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private java.util.List playerResults_ = - java.util.Collections.emptyList(); - private void ensurePlayerResultsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - playerResults_ = new java.util.ArrayList(playerResults_); - bitField0_ |= 0x00000002; - } - } - /** * repeated .PlayerResult playerResults = 2; */ + @java.lang.Override public java.util.List getPlayerResultsList() { - return java.util.Collections.unmodifiableList(playerResults_); + return java.util.Collections.unmodifiableList( + instance.getPlayerResultsList()); } /** * repeated .PlayerResult playerResults = 2; */ + @java.lang.Override public int getPlayerResultsCount() { - return playerResults_.size(); - } - /** + return instance.getPlayerResultsCount(); + }/** * repeated .PlayerResult playerResults = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerResult getPlayerResults(int index) { - return playerResults_.get(index); + return instance.getPlayerResults(index); } /** * repeated .PlayerResult playerResults = 2; */ public Builder setPlayerResults( int index, de.pokerth.protocol.ProtoBuf.PlayerResult value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePlayerResultsIsMutable(); - playerResults_.set(index, value); - + copyOnWrite(); + instance.setPlayerResults(index, value); return this; } /** @@ -36148,21 +35452,16 @@ public final class ProtoBuf { */ public Builder setPlayerResults( int index, de.pokerth.protocol.ProtoBuf.PlayerResult.Builder builderForValue) { - ensurePlayerResultsIsMutable(); - playerResults_.set(index, builderForValue.build()); - + copyOnWrite(); + instance.setPlayerResults(index, builderForValue); return this; } /** * repeated .PlayerResult playerResults = 2; */ public Builder addPlayerResults(de.pokerth.protocol.ProtoBuf.PlayerResult value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePlayerResultsIsMutable(); - playerResults_.add(value); - + copyOnWrite(); + instance.addPlayerResults(value); return this; } /** @@ -36170,12 +35469,8 @@ public final class ProtoBuf { */ public Builder addPlayerResults( int index, de.pokerth.protocol.ProtoBuf.PlayerResult value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePlayerResultsIsMutable(); - playerResults_.add(index, value); - + copyOnWrite(); + instance.addPlayerResults(index, value); return this; } /** @@ -36183,9 +35478,8 @@ public final class ProtoBuf { */ public Builder addPlayerResults( de.pokerth.protocol.ProtoBuf.PlayerResult.Builder builderForValue) { - ensurePlayerResultsIsMutable(); - playerResults_.add(builderForValue.build()); - + copyOnWrite(); + instance.addPlayerResults(builderForValue); return this; } /** @@ -36193,9 +35487,8 @@ public final class ProtoBuf { */ public Builder addPlayerResults( int index, de.pokerth.protocol.ProtoBuf.PlayerResult.Builder builderForValue) { - ensurePlayerResultsIsMutable(); - playerResults_.add(index, builderForValue.build()); - + copyOnWrite(); + instance.addPlayerResults(index, builderForValue); return this; } /** @@ -36203,40 +35496,169 @@ public final class ProtoBuf { */ public Builder addAllPlayerResults( java.lang.Iterable values) { - ensurePlayerResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, playerResults_); - + copyOnWrite(); + instance.addAllPlayerResults(values); return this; } /** * repeated .PlayerResult playerResults = 2; */ public Builder clearPlayerResults() { - playerResults_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - + copyOnWrite(); + instance.clearPlayerResults(); return this; } /** * repeated .PlayerResult playerResults = 2; */ public Builder removePlayerResults(int index) { - ensurePlayerResultsIsMutable(); - playerResults_.remove(index); - + copyOnWrite(); + instance.removePlayerResults(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; - static { - defaultInstance = new EndOfHandShowCardsMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface EndOfHandHideCardsMessageOrBuilder extends @@ -36282,579 +35704,561 @@ public final class ProtoBuf { /** * Protobuf type {@code EndOfHandHideCardsMessage} */ - public static final class EndOfHandHideCardsMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class EndOfHandHideCardsMessage extends + com.google.protobuf.GeneratedMessageLite< + EndOfHandHideCardsMessage, EndOfHandHideCardsMessage.Builder> implements // @@protoc_insertion_point(message_implements:EndOfHandHideCardsMessage) EndOfHandHideCardsMessageOrBuilder { - // Use EndOfHandHideCardsMessage.newBuilder() to construct. - private EndOfHandHideCardsMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private EndOfHandHideCardsMessage() { } - private EndOfHandHideCardsMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final EndOfHandHideCardsMessage defaultInstance; - public static EndOfHandHideCardsMessage getDefaultInstance() { - return defaultInstance; - } - - public EndOfHandHideCardsMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private EndOfHandHideCardsMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EndOfHandHideCardsMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EndOfHandHideCardsMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } public static final int MONEYWON_FIELD_NUMBER = 3; private int moneyWon_; /** * required uint32 moneyWon = 3; */ + @java.lang.Override public boolean hasMoneyWon() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * 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; + } public static final int PLAYERMONEY_FIELD_NUMBER = 4; private int playerMoney_; /** * required uint32 playerMoney = 4; */ + @java.lang.Override public boolean hasPlayerMoney() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required uint32 playerMoney = 4; */ + @java.lang.Override public int getPlayerMoney() { return playerMoney_; } - - private void initFields() { - gameId_ = 0; - playerId_ = 0; - moneyWon_ = 0; + /** + * required uint32 playerMoney = 4; + */ + private void setPlayerMoney(int value) { + bitField0_ |= 0x00000008; + playerMoney_ = value; + } + /** + * required uint32 playerMoney = 4; + */ + private void clearPlayerMoney() { + bitField0_ = (bitField0_ & ~0x00000008); playerMoney_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - 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; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, playerId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt32(3, moneyWon_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt32(4, playerMoney_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, moneyWon_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, playerMoney_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code EndOfHandHideCardsMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage, Builder> implements // @@protoc_insertion_point(builder_implements:EndOfHandHideCardsMessage) de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int playerId_ ; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPlayerId(); } /** * required uint32 playerId = 2; */ + @java.lang.Override public int getPlayerId() { - return playerId_; + return instance.getPlayerId(); } /** * required uint32 playerId = 2; */ public Builder setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - + copyOnWrite(); + instance.setPlayerId(value); return this; } /** * required uint32 playerId = 2; */ public Builder clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - + copyOnWrite(); + instance.clearPlayerId(); return this; } - private int moneyWon_ ; /** * required uint32 moneyWon = 3; */ + @java.lang.Override public boolean hasMoneyWon() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasMoneyWon(); } /** * required uint32 moneyWon = 3; */ + @java.lang.Override public int getMoneyWon() { - return moneyWon_; + return instance.getMoneyWon(); } /** * required uint32 moneyWon = 3; */ public Builder setMoneyWon(int value) { - bitField0_ |= 0x00000004; - moneyWon_ = value; - + copyOnWrite(); + instance.setMoneyWon(value); return this; } /** * required uint32 moneyWon = 3; */ public Builder clearMoneyWon() { - bitField0_ = (bitField0_ & ~0x00000004); - moneyWon_ = 0; - + copyOnWrite(); + instance.clearMoneyWon(); return this; } - private int playerMoney_ ; /** * required uint32 playerMoney = 4; */ + @java.lang.Override public boolean hasPlayerMoney() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return instance.hasPlayerMoney(); } /** * required uint32 playerMoney = 4; */ + @java.lang.Override public int getPlayerMoney() { - return playerMoney_; + return instance.getPlayerMoney(); } /** * required uint32 playerMoney = 4; */ public Builder setPlayerMoney(int value) { - bitField0_ |= 0x00000008; - playerMoney_ = value; - + copyOnWrite(); + instance.setPlayerMoney(value); return this; } /** * required uint32 playerMoney = 4; */ public Builder clearPlayerMoney() { - bitField0_ = (bitField0_ & ~0x00000008); - playerMoney_ = 0; - + copyOnWrite(); + instance.clearPlayerMoney(); 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; - static { - defaultInstance = new EndOfHandHideCardsMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface ShowMyCardsRequestMessageOrBuilder extends @@ -36864,265 +36268,231 @@ public final class ProtoBuf { /** * Protobuf type {@code ShowMyCardsRequestMessage} */ - public static final class ShowMyCardsRequestMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class ShowMyCardsRequestMessage extends + com.google.protobuf.GeneratedMessageLite< + ShowMyCardsRequestMessage, ShowMyCardsRequestMessage.Builder> implements // @@protoc_insertion_point(message_implements:ShowMyCardsRequestMessage) ShowMyCardsRequestMessageOrBuilder { - // Use ShowMyCardsRequestMessage.newBuilder() to construct. - private ShowMyCardsRequestMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private ShowMyCardsRequestMessage() { } - private ShowMyCardsRequestMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final ShowMyCardsRequestMessage defaultInstance; - public static ShowMyCardsRequestMessage getDefaultInstance() { - return defaultInstance; - } - - public ShowMyCardsRequestMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private ShowMyCardsRequestMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ShowMyCardsRequestMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ShowMyCardsRequestMessage(input, extensionRegistry); - } - }; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private void initFields() { - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code ShowMyCardsRequestMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage, Builder> implements // @@protoc_insertion_point(builder_implements:ShowMyCardsRequestMessage) de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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; - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } // @@protoc_insertion_point(builder_scope:ShowMyCardsRequestMessage) } - - static { - defaultInstance = new ShowMyCardsRequestMessage(true); - defaultInstance.initFields(); + @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(); + } } public interface AfterHandShowCardsMessageOrBuilder extends @@ -37141,392 +36511,373 @@ public final class ProtoBuf { /** * Protobuf type {@code AfterHandShowCardsMessage} */ - public static final class AfterHandShowCardsMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class AfterHandShowCardsMessage extends + com.google.protobuf.GeneratedMessageLite< + AfterHandShowCardsMessage, AfterHandShowCardsMessage.Builder> implements // @@protoc_insertion_point(message_implements:AfterHandShowCardsMessage) AfterHandShowCardsMessageOrBuilder { - // Use AfterHandShowCardsMessage.newBuilder() to construct. - private AfterHandShowCardsMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private AfterHandShowCardsMessage() { } - private AfterHandShowCardsMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final AfterHandShowCardsMessage defaultInstance; - public static AfterHandShowCardsMessage getDefaultInstance() { - return defaultInstance; - } - - public AfterHandShowCardsMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private AfterHandShowCardsMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - de.pokerth.protocol.ProtoBuf.PlayerResult.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - 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; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AfterHandShowCardsMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AfterHandShowCardsMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; 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) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .PlayerResult playerResult = 1; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerResult getPlayerResult() { - return playerResult_; + return playerResult_ == null ? de.pokerth.protocol.ProtoBuf.PlayerResult.getDefaultInstance() : playerResult_; } - - private void initFields() { - playerResult_ = de.pokerth.protocol.ProtoBuf.PlayerResult.getDefaultInstance(); - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasPlayerResult()) { - memoizedIsInitialized = 0; - return false; + /** + * required .PlayerResult playerResult = 1; + */ + private void setPlayerResult(de.pokerth.protocol.ProtoBuf.PlayerResult value) { + if (value == null) { + throw new NullPointerException(); } - if (!getPlayerResult().isInitialized()) { - memoizedIsInitialized = 0; - return false; + playerResult_ = value; + bitField0_ |= 0x00000001; } - memoizedIsInitialized = 1; - return true; + /** + * required .PlayerResult playerResult = 1; + */ + private void setPlayerResult( + de.pokerth.protocol.ProtoBuf.PlayerResult.Builder builderForValue) { + playerResult_ = builderForValue.build(); + bitField0_ |= 0x00000001; + } + /** + * required .PlayerResult playerResult = 1; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergePlayerResult(de.pokerth.protocol.ProtoBuf.PlayerResult value) { + if (value == null) { + throw new NullPointerException(); + } + if (playerResult_ != null && + playerResult_ != de.pokerth.protocol.ProtoBuf.PlayerResult.getDefaultInstance()) { + playerResult_ = + de.pokerth.protocol.ProtoBuf.PlayerResult.newBuilder(playerResult_).mergeFrom(value).buildPartial(); + } else { + playerResult_ = value; + } + bitField0_ |= 0x00000001; + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, playerResult_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPlayerResult()); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, playerResult_); + .computeMessageSize(1, getPlayerResult()); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code AfterHandShowCardsMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage, Builder> implements // @@protoc_insertion_point(builder_implements:AfterHandShowCardsMessage) de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - private void maybeForceBuilderInitialization() { - } - private static Builder create() { - return new Builder(); - } - 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); - } - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private de.pokerth.protocol.ProtoBuf.PlayerResult playerResult_ = de.pokerth.protocol.ProtoBuf.PlayerResult.getDefaultInstance(); /** * required .PlayerResult playerResult = 1; */ + @java.lang.Override public boolean hasPlayerResult() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasPlayerResult(); } /** * required .PlayerResult playerResult = 1; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerResult getPlayerResult() { - return playerResult_; + return instance.getPlayerResult(); } /** * required .PlayerResult playerResult = 1; */ public Builder setPlayerResult(de.pokerth.protocol.ProtoBuf.PlayerResult value) { - if (value == null) { - throw new NullPointerException(); - } - playerResult_ = value; - - bitField0_ |= 0x00000001; + copyOnWrite(); + instance.setPlayerResult(value); return this; - } + } /** * required .PlayerResult playerResult = 1; */ public Builder setPlayerResult( de.pokerth.protocol.ProtoBuf.PlayerResult.Builder builderForValue) { - playerResult_ = builderForValue.build(); - - bitField0_ |= 0x00000001; + copyOnWrite(); + instance.setPlayerResult(builderForValue); return this; } /** * required .PlayerResult playerResult = 1; */ public Builder mergePlayerResult(de.pokerth.protocol.ProtoBuf.PlayerResult 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; + copyOnWrite(); + instance.mergePlayerResult(value); return this; } /** * required .PlayerResult playerResult = 1; */ - public Builder clearPlayerResult() { - playerResult_ = de.pokerth.protocol.ProtoBuf.PlayerResult.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearPlayerResult() { copyOnWrite(); + instance.clearPlayerResult(); 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; - static { - defaultInstance = new AfterHandShowCardsMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface EndOfGameMessageOrBuilder extends @@ -37554,425 +36905,401 @@ public final class ProtoBuf { /** * Protobuf type {@code EndOfGameMessage} */ - public static final class EndOfGameMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class EndOfGameMessage extends + com.google.protobuf.GeneratedMessageLite< + EndOfGameMessage, EndOfGameMessage.Builder> implements // @@protoc_insertion_point(message_implements:EndOfGameMessage) EndOfGameMessageOrBuilder { - // Use EndOfGameMessage.newBuilder() to construct. - private EndOfGameMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private EndOfGameMessage() { } - private EndOfGameMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final EndOfGameMessage defaultInstance; - public static EndOfGameMessage getDefaultInstance() { - return defaultInstance; - } - - public EndOfGameMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private EndOfGameMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - winnerPlayerId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EndOfGameMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EndOfGameMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int WINNERPLAYERID_FIELD_NUMBER = 2; private int winnerPlayerId_; /** * required uint32 winnerPlayerId = 2; */ + @java.lang.Override public boolean hasWinnerPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required uint32 winnerPlayerId = 2; */ + @java.lang.Override public int getWinnerPlayerId() { return winnerPlayerId_; } - - private void initFields() { - gameId_ = 0; + /** + * required uint32 winnerPlayerId = 2; + */ + private void setWinnerPlayerId(int value) { + bitField0_ |= 0x00000002; + winnerPlayerId_ = value; + } + /** + * required uint32 winnerPlayerId = 2; + */ + private void clearWinnerPlayerId() { + bitField0_ = (bitField0_ & ~0x00000002); winnerPlayerId_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasWinnerPlayerId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, winnerPlayerId_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, winnerPlayerId_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.EndOfGameMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.EndOfGameMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code EndOfGameMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.EndOfGameMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.EndOfGameMessage, Builder> implements // @@protoc_insertion_point(builder_implements:EndOfGameMessage) de.pokerth.protocol.ProtoBuf.EndOfGameMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.EndOfGameMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.EndOfGameMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.EndOfGameMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int winnerPlayerId_ ; /** * required uint32 winnerPlayerId = 2; */ + @java.lang.Override public boolean hasWinnerPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasWinnerPlayerId(); } /** * required uint32 winnerPlayerId = 2; */ + @java.lang.Override public int getWinnerPlayerId() { - return winnerPlayerId_; + return instance.getWinnerPlayerId(); } /** * required uint32 winnerPlayerId = 2; */ public Builder setWinnerPlayerId(int value) { - bitField0_ |= 0x00000002; - winnerPlayerId_ = value; - + copyOnWrite(); + instance.setWinnerPlayerId(value); return this; } /** * required uint32 winnerPlayerId = 2; */ public Builder clearWinnerPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - winnerPlayerId_ = 0; - + copyOnWrite(); + instance.clearWinnerPlayerId(); 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; - static { - defaultInstance = new EndOfGameMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface PlayerIdChangedMessageOrBuilder extends @@ -38000,425 +37327,401 @@ public final class ProtoBuf { /** * Protobuf type {@code PlayerIdChangedMessage} */ - public static final class PlayerIdChangedMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class PlayerIdChangedMessage extends + com.google.protobuf.GeneratedMessageLite< + PlayerIdChangedMessage, PlayerIdChangedMessage.Builder> implements // @@protoc_insertion_point(message_implements:PlayerIdChangedMessage) PlayerIdChangedMessageOrBuilder { - // Use PlayerIdChangedMessage.newBuilder() to construct. - private PlayerIdChangedMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private PlayerIdChangedMessage() { } - private PlayerIdChangedMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final PlayerIdChangedMessage defaultInstance; - public static PlayerIdChangedMessage getDefaultInstance() { - return defaultInstance; - } - - public PlayerIdChangedMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private PlayerIdChangedMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - oldPlayerId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - newPlayerId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public PlayerIdChangedMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PlayerIdChangedMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int OLDPLAYERID_FIELD_NUMBER = 1; private int oldPlayerId_; /** * required uint32 oldPlayerId = 1; */ + @java.lang.Override public boolean hasOldPlayerId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int NEWPLAYERID_FIELD_NUMBER = 2; private int newPlayerId_; /** * required uint32 newPlayerId = 2; */ + @java.lang.Override public boolean hasNewPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required uint32 newPlayerId = 2; */ + @java.lang.Override public int getNewPlayerId() { return newPlayerId_; } - - private void initFields() { - oldPlayerId_ = 0; + /** + * required uint32 newPlayerId = 2; + */ + private void setNewPlayerId(int value) { + bitField0_ |= 0x00000002; + newPlayerId_ = value; + } + /** + * required uint32 newPlayerId = 2; + */ + private void clearNewPlayerId() { + bitField0_ = (bitField0_ & ~0x00000002); newPlayerId_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasOldPlayerId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasNewPlayerId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, oldPlayerId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, newPlayerId_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, oldPlayerId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, newPlayerId_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code PlayerIdChangedMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage, Builder> implements // @@protoc_insertion_point(builder_implements:PlayerIdChangedMessage) de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int oldPlayerId_ ; /** * required uint32 oldPlayerId = 1; */ + @java.lang.Override public boolean hasOldPlayerId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasOldPlayerId(); } /** * required uint32 oldPlayerId = 1; */ + @java.lang.Override public int getOldPlayerId() { - return oldPlayerId_; + return instance.getOldPlayerId(); } /** * required uint32 oldPlayerId = 1; */ public Builder setOldPlayerId(int value) { - bitField0_ |= 0x00000001; - oldPlayerId_ = value; - + copyOnWrite(); + instance.setOldPlayerId(value); return this; } /** * required uint32 oldPlayerId = 1; */ public Builder clearOldPlayerId() { - bitField0_ = (bitField0_ & ~0x00000001); - oldPlayerId_ = 0; - + copyOnWrite(); + instance.clearOldPlayerId(); return this; } - private int newPlayerId_ ; /** * required uint32 newPlayerId = 2; */ + @java.lang.Override public boolean hasNewPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasNewPlayerId(); } /** * required uint32 newPlayerId = 2; */ + @java.lang.Override public int getNewPlayerId() { - return newPlayerId_; + return instance.getNewPlayerId(); } /** * required uint32 newPlayerId = 2; */ public Builder setNewPlayerId(int value) { - bitField0_ |= 0x00000002; - newPlayerId_ = value; - + copyOnWrite(); + instance.setNewPlayerId(value); return this; } /** * required uint32 newPlayerId = 2; */ public Builder clearNewPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - newPlayerId_ = 0; - + copyOnWrite(); + instance.clearNewPlayerId(); 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; - static { - defaultInstance = new PlayerIdChangedMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface AskKickPlayerMessageOrBuilder extends @@ -38446,425 +37749,401 @@ public final class ProtoBuf { /** * Protobuf type {@code AskKickPlayerMessage} */ - public static final class AskKickPlayerMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class AskKickPlayerMessage extends + com.google.protobuf.GeneratedMessageLite< + AskKickPlayerMessage, AskKickPlayerMessage.Builder> implements // @@protoc_insertion_point(message_implements:AskKickPlayerMessage) AskKickPlayerMessageOrBuilder { - // Use AskKickPlayerMessage.newBuilder() to construct. - private AskKickPlayerMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private AskKickPlayerMessage() { } - private AskKickPlayerMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final AskKickPlayerMessage defaultInstance; - public static AskKickPlayerMessage getDefaultInstance() { - return defaultInstance; - } - - public AskKickPlayerMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private AskKickPlayerMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - gameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - playerId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AskKickPlayerMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AskKickPlayerMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required uint32 playerId = 2; */ + @java.lang.Override public int getPlayerId() { return playerId_; } - - private void initFields() { - gameId_ = 0; + /** + * 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; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPlayerId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, playerId_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code AskKickPlayerMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage, Builder> implements // @@protoc_insertion_point(builder_implements:AskKickPlayerMessage) de.pokerth.protocol.ProtoBuf.AskKickPlayerMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int playerId_ ; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPlayerId(); } /** * required uint32 playerId = 2; */ + @java.lang.Override public int getPlayerId() { - return playerId_; + return instance.getPlayerId(); } /** * required uint32 playerId = 2; */ public Builder setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - + copyOnWrite(); + instance.setPlayerId(value); return this; } /** * required uint32 playerId = 2; */ public Builder clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - + copyOnWrite(); + instance.clearPlayerId(); 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; - static { - defaultInstance = new AskKickPlayerMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface AskKickDeniedMessageOrBuilder extends @@ -38901,108 +38180,13 @@ public final class ProtoBuf { /** * Protobuf type {@code AskKickDeniedMessage} */ - public static final class AskKickDeniedMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class AskKickDeniedMessage extends + com.google.protobuf.GeneratedMessageLite< + AskKickDeniedMessage, AskKickDeniedMessage.Builder> implements // @@protoc_insertion_point(message_implements:AskKickDeniedMessage) AskKickDeniedMessageOrBuilder { - // Use AskKickDeniedMessage.newBuilder() to construct. - private AskKickDeniedMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private AskKickDeniedMessage() { } - private AskKickDeniedMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final AskKickDeniedMessage defaultInstance; - public static AskKickDeniedMessage getDefaultInstance() { - return defaultInstance; - } - - public AskKickDeniedMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private AskKickDeniedMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000004; - kickDeniedReason_ = value; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AskKickDeniedMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AskKickDeniedMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - /** * Protobuf enum {@code AskKickDeniedMessage.KickDeniedReason} */ @@ -39011,23 +38195,23 @@ public final class ProtoBuf { /** * kickDeniedInvalidGameState = 0; */ - kickDeniedInvalidGameState(0, 0), + kickDeniedInvalidGameState(0), /** * kickDeniedNotPossible = 1; */ - kickDeniedNotPossible(1, 1), + kickDeniedNotPossible(1), /** * kickDeniedTryAgainLater = 2; */ - kickDeniedTryAgainLater(2, 2), + kickDeniedTryAgainLater(2), /** * kickDeniedAlreadyInProgress = 3; */ - kickDeniedAlreadyInProgress(3, 3), + kickDeniedAlreadyInProgress(3), /** * kickDeniedInvalidPlayerId = 4; */ - kickDeniedInvalidPlayerId(4, 4), + kickDeniedInvalidPlayerId(4), ; /** @@ -39052,9 +38236,20 @@ public final class ProtoBuf { public static final int kickDeniedInvalidPlayerId_VALUE = 4; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -39069,17 +38264,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + KickDeniedReason> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public KickDeniedReason findValueByNumber(int number) { - return KickDeniedReason.valueOf(number); + return KickDeniedReason.forNumber(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 index, int value) { + private KickDeniedReason(int value) { this.value = value; } @@ -39092,404 +38302,477 @@ public final class ProtoBuf { /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } public static final int KICKDENIEDREASON_FIELD_NUMBER = 3; - private de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason kickDeniedReason_; + private int kickDeniedReason_; /** * required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; */ + @java.lang.Override public boolean hasKickDeniedReason() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason getKickDeniedReason() { - return kickDeniedReason_; + 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; } - - 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 true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPlayerId()) { - memoizedIsInitialized = 0; - return false; + /** + * required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; + */ + private void setKickDeniedReason(de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason value) { + if (value == null) { + throw new NullPointerException(); } - if (!hasKickDeniedReason()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + bitField0_ |= 0x00000004; + kickDeniedReason_ = value.getNumber(); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, playerId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, kickDeniedReason_.getNumber()); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(3, kickDeniedReason_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, kickDeniedReason_.getNumber()); + .computeEnumSize(3, kickDeniedReason_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code AskKickDeniedMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage, Builder> implements // @@protoc_insertion_point(builder_implements:AskKickDeniedMessage) de.pokerth.protocol.ProtoBuf.AskKickDeniedMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int playerId_ ; /** * required uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPlayerId(); } /** * required uint32 playerId = 2; */ + @java.lang.Override public int getPlayerId() { - return playerId_; + return instance.getPlayerId(); } /** * required uint32 playerId = 2; */ public Builder setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - + copyOnWrite(); + instance.setPlayerId(value); return this; } /** * required uint32 playerId = 2; */ public Builder clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - + copyOnWrite(); + instance.clearPlayerId(); return this; } - private de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason kickDeniedReason_ = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason.kickDeniedInvalidGameState; /** * required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; */ + @java.lang.Override public boolean hasKickDeniedReason() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasKickDeniedReason(); } /** * required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason getKickDeniedReason() { - return kickDeniedReason_; + return instance.getKickDeniedReason(); } /** * required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; */ public Builder setKickDeniedReason(de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - kickDeniedReason_ = value; - + copyOnWrite(); + instance.setKickDeniedReason(value); return this; } /** * required .AskKickDeniedMessage.KickDeniedReason kickDeniedReason = 3; */ public Builder clearKickDeniedReason() { - bitField0_ = (bitField0_ & ~0x00000004); - kickDeniedReason_ = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.KickDeniedReason.kickDeniedInvalidGameState; - + copyOnWrite(); + instance.clearKickDeniedReason(); 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; - static { - defaultInstance = new AskKickDeniedMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface StartKickPetitionMessageOrBuilder extends @@ -39553,733 +38836,721 @@ public final class ProtoBuf { /** * Protobuf type {@code StartKickPetitionMessage} */ - public static final class StartKickPetitionMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class StartKickPetitionMessage extends + com.google.protobuf.GeneratedMessageLite< + StartKickPetitionMessage, StartKickPetitionMessage.Builder> implements // @@protoc_insertion_point(message_implements:StartKickPetitionMessage) StartKickPetitionMessageOrBuilder { - // Use StartKickPetitionMessage.newBuilder() to construct. - private StartKickPetitionMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private StartKickPetitionMessage() { } - private StartKickPetitionMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final StartKickPetitionMessage defaultInstance; - public static StartKickPetitionMessage getDefaultInstance() { - return defaultInstance; - } - - public StartKickPetitionMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private StartKickPetitionMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public StartKickPetitionMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StartKickPetitionMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PETITIONID_FIELD_NUMBER = 2; private int petitionId_; /** * required uint32 petitionId = 2; */ + @java.lang.Override public boolean hasPetitionId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } public static final int PROPOSINGPLAYERID_FIELD_NUMBER = 3; private int proposingPlayerId_; /** * required uint32 proposingPlayerId = 3; */ + @java.lang.Override public boolean hasProposingPlayerId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * 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; + } public static final int KICKPLAYERID_FIELD_NUMBER = 4; private int kickPlayerId_; /** * required uint32 kickPlayerId = 4; */ + @java.lang.Override public boolean hasKickPlayerId() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * 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; + } public static final int KICKTIMEOUTSEC_FIELD_NUMBER = 5; private int kickTimeoutSec_; /** * required uint32 kickTimeoutSec = 5; */ + @java.lang.Override public boolean hasKickTimeoutSec() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * 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; + } public static final int NUMVOTESNEEDEDTOKICK_FIELD_NUMBER = 6; private int numVotesNeededToKick_; /** * required uint32 numVotesNeededToKick = 6; */ + @java.lang.Override public boolean hasNumVotesNeededToKick() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * required uint32 numVotesNeededToKick = 6; */ + @java.lang.Override public int getNumVotesNeededToKick() { return numVotesNeededToKick_; } - - private void initFields() { - gameId_ = 0; - petitionId_ = 0; - proposingPlayerId_ = 0; - kickPlayerId_ = 0; - kickTimeoutSec_ = 0; + /** + * required uint32 numVotesNeededToKick = 6; + */ + private void setNumVotesNeededToKick(int value) { + bitField0_ |= 0x00000020; + numVotesNeededToKick_ = value; + } + /** + * required uint32 numVotesNeededToKick = 6; + */ + private void clearNumVotesNeededToKick() { + bitField0_ = (bitField0_ & ~0x00000020); numVotesNeededToKick_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - 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; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, petitionId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt32(3, proposingPlayerId_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt32(4, kickPlayerId_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeUInt32(5, kickTimeoutSec_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeUInt32(6, numVotesNeededToKick_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, petitionId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, proposingPlayerId_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, kickPlayerId_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, kickTimeoutSec_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, numVotesNeededToKick_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code StartKickPetitionMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage, Builder> implements // @@protoc_insertion_point(builder_implements:StartKickPetitionMessage) de.pokerth.protocol.ProtoBuf.StartKickPetitionMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int petitionId_ ; /** * required uint32 petitionId = 2; */ + @java.lang.Override public boolean hasPetitionId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPetitionId(); } /** * required uint32 petitionId = 2; */ + @java.lang.Override public int getPetitionId() { - return petitionId_; + return instance.getPetitionId(); } /** * required uint32 petitionId = 2; */ public Builder setPetitionId(int value) { - bitField0_ |= 0x00000002; - petitionId_ = value; - + copyOnWrite(); + instance.setPetitionId(value); return this; } /** * required uint32 petitionId = 2; */ public Builder clearPetitionId() { - bitField0_ = (bitField0_ & ~0x00000002); - petitionId_ = 0; - + copyOnWrite(); + instance.clearPetitionId(); return this; } - private int proposingPlayerId_ ; /** * required uint32 proposingPlayerId = 3; */ + @java.lang.Override public boolean hasProposingPlayerId() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasProposingPlayerId(); } /** * required uint32 proposingPlayerId = 3; */ + @java.lang.Override public int getProposingPlayerId() { - return proposingPlayerId_; + return instance.getProposingPlayerId(); } /** * required uint32 proposingPlayerId = 3; */ public Builder setProposingPlayerId(int value) { - bitField0_ |= 0x00000004; - proposingPlayerId_ = value; - + copyOnWrite(); + instance.setProposingPlayerId(value); return this; } /** * required uint32 proposingPlayerId = 3; */ public Builder clearProposingPlayerId() { - bitField0_ = (bitField0_ & ~0x00000004); - proposingPlayerId_ = 0; - + copyOnWrite(); + instance.clearProposingPlayerId(); return this; } - private int kickPlayerId_ ; /** * required uint32 kickPlayerId = 4; */ + @java.lang.Override public boolean hasKickPlayerId() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return instance.hasKickPlayerId(); } /** * required uint32 kickPlayerId = 4; */ + @java.lang.Override public int getKickPlayerId() { - return kickPlayerId_; + return instance.getKickPlayerId(); } /** * required uint32 kickPlayerId = 4; */ public Builder setKickPlayerId(int value) { - bitField0_ |= 0x00000008; - kickPlayerId_ = value; - + copyOnWrite(); + instance.setKickPlayerId(value); return this; } /** * required uint32 kickPlayerId = 4; */ public Builder clearKickPlayerId() { - bitField0_ = (bitField0_ & ~0x00000008); - kickPlayerId_ = 0; - + copyOnWrite(); + instance.clearKickPlayerId(); return this; } - private int kickTimeoutSec_ ; /** * required uint32 kickTimeoutSec = 5; */ + @java.lang.Override public boolean hasKickTimeoutSec() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return instance.hasKickTimeoutSec(); } /** * required uint32 kickTimeoutSec = 5; */ + @java.lang.Override public int getKickTimeoutSec() { - return kickTimeoutSec_; + return instance.getKickTimeoutSec(); } /** * required uint32 kickTimeoutSec = 5; */ public Builder setKickTimeoutSec(int value) { - bitField0_ |= 0x00000010; - kickTimeoutSec_ = value; - + copyOnWrite(); + instance.setKickTimeoutSec(value); return this; } /** * required uint32 kickTimeoutSec = 5; */ public Builder clearKickTimeoutSec() { - bitField0_ = (bitField0_ & ~0x00000010); - kickTimeoutSec_ = 0; - + copyOnWrite(); + instance.clearKickTimeoutSec(); return this; } - private int numVotesNeededToKick_ ; /** * required uint32 numVotesNeededToKick = 6; */ + @java.lang.Override public boolean hasNumVotesNeededToKick() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return instance.hasNumVotesNeededToKick(); } /** * required uint32 numVotesNeededToKick = 6; */ + @java.lang.Override public int getNumVotesNeededToKick() { - return numVotesNeededToKick_; + return instance.getNumVotesNeededToKick(); } /** * required uint32 numVotesNeededToKick = 6; */ public Builder setNumVotesNeededToKick(int value) { - bitField0_ |= 0x00000020; - numVotesNeededToKick_ = value; - + copyOnWrite(); + instance.setNumVotesNeededToKick(value); return this; } /** * required uint32 numVotesNeededToKick = 6; */ public Builder clearNumVotesNeededToKick() { - bitField0_ = (bitField0_ & ~0x00000020); - numVotesNeededToKick_ = 0; - + copyOnWrite(); + instance.clearNumVotesNeededToKick(); 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; - static { - defaultInstance = new StartKickPetitionMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface VoteKickRequestMessageOrBuilder extends @@ -40316,502 +39587,481 @@ public final class ProtoBuf { /** * Protobuf type {@code VoteKickRequestMessage} */ - public static final class VoteKickRequestMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class VoteKickRequestMessage extends + com.google.protobuf.GeneratedMessageLite< + VoteKickRequestMessage, VoteKickRequestMessage.Builder> implements // @@protoc_insertion_point(message_implements:VoteKickRequestMessage) VoteKickRequestMessageOrBuilder { - // Use VoteKickRequestMessage.newBuilder() to construct. - private VoteKickRequestMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private VoteKickRequestMessage() { } - private VoteKickRequestMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final VoteKickRequestMessage defaultInstance; - public static VoteKickRequestMessage getDefaultInstance() { - return defaultInstance; - } - - public VoteKickRequestMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private VoteKickRequestMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public VoteKickRequestMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VoteKickRequestMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PETITIONID_FIELD_NUMBER = 2; private int petitionId_; /** * required uint32 petitionId = 2; */ + @java.lang.Override public boolean hasPetitionId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } public static final int VOTEKICK_FIELD_NUMBER = 3; private boolean voteKick_; /** * required bool voteKick = 3; */ + @java.lang.Override public boolean hasVoteKick() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required bool voteKick = 3; */ + @java.lang.Override public boolean getVoteKick() { return voteKick_; } - - private void initFields() { - gameId_ = 0; - petitionId_ = 0; + /** + * required bool voteKick = 3; + */ + private void setVoteKick(boolean value) { + bitField0_ |= 0x00000004; + voteKick_ = value; + } + /** + * required bool voteKick = 3; + */ + private void clearVoteKick() { + bitField0_ = (bitField0_ & ~0x00000004); voteKick_ = false; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPetitionId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasVoteKick()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, petitionId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(3, voteKick_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, petitionId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, voteKick_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code VoteKickRequestMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage, Builder> implements // @@protoc_insertion_point(builder_implements:VoteKickRequestMessage) de.pokerth.protocol.ProtoBuf.VoteKickRequestMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int petitionId_ ; /** * required uint32 petitionId = 2; */ + @java.lang.Override public boolean hasPetitionId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPetitionId(); } /** * required uint32 petitionId = 2; */ + @java.lang.Override public int getPetitionId() { - return petitionId_; + return instance.getPetitionId(); } /** * required uint32 petitionId = 2; */ public Builder setPetitionId(int value) { - bitField0_ |= 0x00000002; - petitionId_ = value; - + copyOnWrite(); + instance.setPetitionId(value); return this; } /** * required uint32 petitionId = 2; */ public Builder clearPetitionId() { - bitField0_ = (bitField0_ & ~0x00000002); - petitionId_ = 0; - + copyOnWrite(); + instance.clearPetitionId(); return this; } - private boolean voteKick_ ; /** * required bool voteKick = 3; */ + @java.lang.Override public boolean hasVoteKick() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasVoteKick(); } /** * required bool voteKick = 3; */ + @java.lang.Override public boolean getVoteKick() { - return voteKick_; + return instance.getVoteKick(); } /** * required bool voteKick = 3; */ public Builder setVoteKick(boolean value) { - bitField0_ |= 0x00000004; - voteKick_ = value; - + copyOnWrite(); + instance.setVoteKick(value); return this; } /** * required bool voteKick = 3; */ public Builder clearVoteKick() { - bitField0_ = (bitField0_ & ~0x00000004); - voteKick_ = false; - + copyOnWrite(); + instance.clearVoteKick(); 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; - static { - defaultInstance = new VoteKickRequestMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface VoteKickReplyMessageOrBuilder extends @@ -40848,108 +40098,13 @@ public final class ProtoBuf { /** * Protobuf type {@code VoteKickReplyMessage} */ - public static final class VoteKickReplyMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class VoteKickReplyMessage extends + com.google.protobuf.GeneratedMessageLite< + VoteKickReplyMessage, VoteKickReplyMessage.Builder> implements // @@protoc_insertion_point(message_implements:VoteKickReplyMessage) VoteKickReplyMessageOrBuilder { - // Use VoteKickReplyMessage.newBuilder() to construct. - private VoteKickReplyMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private VoteKickReplyMessage() { } - private VoteKickReplyMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final VoteKickReplyMessage defaultInstance; - public static VoteKickReplyMessage getDefaultInstance() { - return defaultInstance; - } - - public VoteKickReplyMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private VoteKickReplyMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000004; - voteKickReplyType_ = value; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public VoteKickReplyMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VoteKickReplyMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - /** * Protobuf enum {@code VoteKickReplyMessage.VoteKickReplyType} */ @@ -40958,15 +40113,15 @@ public final class ProtoBuf { /** * voteKickAck = 0; */ - voteKickAck(0, 0), + voteKickAck(0), /** * voteKickDeniedInvalid = 1; */ - voteKickDeniedInvalid(1, 1), + voteKickDeniedInvalid(1), /** * voteKickDeniedAlreadyVoted = 2; */ - voteKickDeniedAlreadyVoted(2, 2), + voteKickDeniedAlreadyVoted(2), ; /** @@ -40983,9 +40138,20 @@ public final class ProtoBuf { public static final int voteKickDeniedAlreadyVoted_VALUE = 2; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -40998,17 +40164,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + VoteKickReplyType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public VoteKickReplyType findValueByNumber(int number) { - return VoteKickReplyType.valueOf(number); + return VoteKickReplyType.forNumber(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 index, int value) { + private VoteKickReplyType(int value) { this.value = value; } @@ -41021,404 +40202,477 @@ public final class ProtoBuf { /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PETITIONID_FIELD_NUMBER = 2; private int petitionId_; /** * required uint32 petitionId = 2; */ + @java.lang.Override public boolean hasPetitionId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } public static final int VOTEKICKREPLYTYPE_FIELD_NUMBER = 3; - private de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType voteKickReplyType_; + private int voteKickReplyType_; /** * required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; */ + @java.lang.Override public boolean hasVoteKickReplyType() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType getVoteKickReplyType() { - return voteKickReplyType_; + 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; } - - 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 true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPetitionId()) { - memoizedIsInitialized = 0; - return false; + /** + * required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; + */ + private void setVoteKickReplyType(de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType value) { + if (value == null) { + throw new NullPointerException(); } - if (!hasVoteKickReplyType()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + bitField0_ |= 0x00000004; + voteKickReplyType_ = value.getNumber(); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, petitionId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, voteKickReplyType_.getNumber()); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(3, voteKickReplyType_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, petitionId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, voteKickReplyType_.getNumber()); + .computeEnumSize(3, voteKickReplyType_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code VoteKickReplyMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage, Builder> implements // @@protoc_insertion_point(builder_implements:VoteKickReplyMessage) de.pokerth.protocol.ProtoBuf.VoteKickReplyMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int petitionId_ ; /** * required uint32 petitionId = 2; */ + @java.lang.Override public boolean hasPetitionId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPetitionId(); } /** * required uint32 petitionId = 2; */ + @java.lang.Override public int getPetitionId() { - return petitionId_; + return instance.getPetitionId(); } /** * required uint32 petitionId = 2; */ public Builder setPetitionId(int value) { - bitField0_ |= 0x00000002; - petitionId_ = value; - + copyOnWrite(); + instance.setPetitionId(value); return this; } /** * required uint32 petitionId = 2; */ public Builder clearPetitionId() { - bitField0_ = (bitField0_ & ~0x00000002); - petitionId_ = 0; - + copyOnWrite(); + instance.clearPetitionId(); return this; } - private de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType voteKickReplyType_ = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType.voteKickAck; /** * required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; */ + @java.lang.Override public boolean hasVoteKickReplyType() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasVoteKickReplyType(); } /** * required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType getVoteKickReplyType() { - return voteKickReplyType_; + return instance.getVoteKickReplyType(); } /** * required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; */ public Builder setVoteKickReplyType(de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - voteKickReplyType_ = value; - + copyOnWrite(); + instance.setVoteKickReplyType(value); return this; } /** * required .VoteKickReplyMessage.VoteKickReplyType voteKickReplyType = 3; */ public Builder clearVoteKickReplyType() { - bitField0_ = (bitField0_ & ~0x00000004); - voteKickReplyType_ = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.VoteKickReplyType.voteKickAck; - + copyOnWrite(); + instance.clearVoteKickReplyType(); 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; - static { - defaultInstance = new VoteKickReplyMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface KickPetitionUpdateMessageOrBuilder extends @@ -41473,656 +40727,641 @@ public final class ProtoBuf { /** * Protobuf type {@code KickPetitionUpdateMessage} */ - public static final class KickPetitionUpdateMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class KickPetitionUpdateMessage extends + com.google.protobuf.GeneratedMessageLite< + KickPetitionUpdateMessage, KickPetitionUpdateMessage.Builder> implements // @@protoc_insertion_point(message_implements:KickPetitionUpdateMessage) KickPetitionUpdateMessageOrBuilder { - // Use KickPetitionUpdateMessage.newBuilder() to construct. - private KickPetitionUpdateMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private KickPetitionUpdateMessage() { } - private KickPetitionUpdateMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final KickPetitionUpdateMessage defaultInstance; - public static KickPetitionUpdateMessage getDefaultInstance() { - return defaultInstance; - } - - public KickPetitionUpdateMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private KickPetitionUpdateMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public KickPetitionUpdateMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KickPetitionUpdateMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int GAMEID_FIELD_NUMBER = 1; private int gameId_; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PETITIONID_FIELD_NUMBER = 2; private int petitionId_; /** * required uint32 petitionId = 2; */ + @java.lang.Override public boolean hasPetitionId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } public static final int NUMVOTESAGAINSTKICKING_FIELD_NUMBER = 3; private int numVotesAgainstKicking_; /** * required uint32 numVotesAgainstKicking = 3; */ + @java.lang.Override public boolean hasNumVotesAgainstKicking() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * 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; + } public static final int NUMVOTESINFAVOUROFKICKING_FIELD_NUMBER = 4; private int numVotesInFavourOfKicking_; /** * required uint32 numVotesInFavourOfKicking = 4; */ + @java.lang.Override public boolean hasNumVotesInFavourOfKicking() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * 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; + } public static final int NUMVOTESNEEDEDTOKICK_FIELD_NUMBER = 5; private int numVotesNeededToKick_; /** * required uint32 numVotesNeededToKick = 5; */ + @java.lang.Override public boolean hasNumVotesNeededToKick() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * required uint32 numVotesNeededToKick = 5; */ + @java.lang.Override public int getNumVotesNeededToKick() { return numVotesNeededToKick_; } - - private void initFields() { - gameId_ = 0; - petitionId_ = 0; - numVotesAgainstKicking_ = 0; - numVotesInFavourOfKicking_ = 0; + /** + * required uint32 numVotesNeededToKick = 5; + */ + private void setNumVotesNeededToKick(int value) { + bitField0_ |= 0x00000010; + numVotesNeededToKick_ = value; + } + /** + * required uint32 numVotesNeededToKick = 5; + */ + private void clearNumVotesNeededToKick() { + bitField0_ = (bitField0_ & ~0x00000010); numVotesNeededToKick_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - 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; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, petitionId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt32(3, numVotesAgainstKicking_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt32(4, numVotesInFavourOfKicking_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeUInt32(5, numVotesNeededToKick_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, petitionId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, numVotesAgainstKicking_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, numVotesInFavourOfKicking_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, numVotesNeededToKick_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code KickPetitionUpdateMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage, Builder> implements // @@protoc_insertion_point(builder_implements:KickPetitionUpdateMessage) de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int petitionId_ ; /** * required uint32 petitionId = 2; */ + @java.lang.Override public boolean hasPetitionId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPetitionId(); } /** * required uint32 petitionId = 2; */ + @java.lang.Override public int getPetitionId() { - return petitionId_; + return instance.getPetitionId(); } /** * required uint32 petitionId = 2; */ public Builder setPetitionId(int value) { - bitField0_ |= 0x00000002; - petitionId_ = value; - + copyOnWrite(); + instance.setPetitionId(value); return this; } /** * required uint32 petitionId = 2; */ public Builder clearPetitionId() { - bitField0_ = (bitField0_ & ~0x00000002); - petitionId_ = 0; - + copyOnWrite(); + instance.clearPetitionId(); return this; } - private int numVotesAgainstKicking_ ; /** * required uint32 numVotesAgainstKicking = 3; */ + @java.lang.Override public boolean hasNumVotesAgainstKicking() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasNumVotesAgainstKicking(); } /** * required uint32 numVotesAgainstKicking = 3; */ + @java.lang.Override public int getNumVotesAgainstKicking() { - return numVotesAgainstKicking_; + return instance.getNumVotesAgainstKicking(); } /** * required uint32 numVotesAgainstKicking = 3; */ public Builder setNumVotesAgainstKicking(int value) { - bitField0_ |= 0x00000004; - numVotesAgainstKicking_ = value; - + copyOnWrite(); + instance.setNumVotesAgainstKicking(value); return this; } /** * required uint32 numVotesAgainstKicking = 3; */ public Builder clearNumVotesAgainstKicking() { - bitField0_ = (bitField0_ & ~0x00000004); - numVotesAgainstKicking_ = 0; - + copyOnWrite(); + instance.clearNumVotesAgainstKicking(); return this; } - private int numVotesInFavourOfKicking_ ; /** * required uint32 numVotesInFavourOfKicking = 4; */ + @java.lang.Override public boolean hasNumVotesInFavourOfKicking() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return instance.hasNumVotesInFavourOfKicking(); } /** * required uint32 numVotesInFavourOfKicking = 4; */ + @java.lang.Override public int getNumVotesInFavourOfKicking() { - return numVotesInFavourOfKicking_; + return instance.getNumVotesInFavourOfKicking(); } /** * required uint32 numVotesInFavourOfKicking = 4; */ public Builder setNumVotesInFavourOfKicking(int value) { - bitField0_ |= 0x00000008; - numVotesInFavourOfKicking_ = value; - + copyOnWrite(); + instance.setNumVotesInFavourOfKicking(value); return this; } /** * required uint32 numVotesInFavourOfKicking = 4; */ public Builder clearNumVotesInFavourOfKicking() { - bitField0_ = (bitField0_ & ~0x00000008); - numVotesInFavourOfKicking_ = 0; - + copyOnWrite(); + instance.clearNumVotesInFavourOfKicking(); return this; } - private int numVotesNeededToKick_ ; /** * required uint32 numVotesNeededToKick = 5; */ + @java.lang.Override public boolean hasNumVotesNeededToKick() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return instance.hasNumVotesNeededToKick(); } /** * required uint32 numVotesNeededToKick = 5; */ + @java.lang.Override public int getNumVotesNeededToKick() { - return numVotesNeededToKick_; + return instance.getNumVotesNeededToKick(); } /** * required uint32 numVotesNeededToKick = 5; */ public Builder setNumVotesNeededToKick(int value) { - bitField0_ |= 0x00000010; - numVotesNeededToKick_ = value; - + copyOnWrite(); + instance.setNumVotesNeededToKick(value); return this; } /** * required uint32 numVotesNeededToKick = 5; */ public Builder clearNumVotesNeededToKick() { - bitField0_ = (bitField0_ & ~0x00000010); - numVotesNeededToKick_ = 0; - + copyOnWrite(); + instance.clearNumVotesNeededToKick(); 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; - static { - defaultInstance = new KickPetitionUpdateMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface EndKickPetitionMessageOrBuilder extends @@ -42186,123 +41425,13 @@ public final class ProtoBuf { /** * Protobuf type {@code EndKickPetitionMessage} */ - public static final class EndKickPetitionMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class EndKickPetitionMessage extends + com.google.protobuf.GeneratedMessageLite< + EndKickPetitionMessage, EndKickPetitionMessage.Builder> implements // @@protoc_insertion_point(message_implements:EndKickPetitionMessage) EndKickPetitionMessageOrBuilder { - // Use EndKickPetitionMessage.newBuilder() to construct. - private EndKickPetitionMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private EndKickPetitionMessage() { } - private EndKickPetitionMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final EndKickPetitionMessage defaultInstance; - public static EndKickPetitionMessage getDefaultInstance() { - return defaultInstance; - } - - public EndKickPetitionMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private EndKickPetitionMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000020; - petitionEndReason_ = value; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public EndKickPetitionMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EndKickPetitionMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - /** * Protobuf enum {@code EndKickPetitionMessage.PetitionEndReason} */ @@ -42311,19 +41440,19 @@ public final class ProtoBuf { /** * petitionEndEnoughVotes = 0; */ - petitionEndEnoughVotes(0, 0), + petitionEndEnoughVotes(0), /** * petitionEndTooFewPlayers = 1; */ - petitionEndTooFewPlayers(1, 1), + petitionEndTooFewPlayers(1), /** * petitionEndPlayerLeft = 2; */ - petitionEndPlayerLeft(2, 2), + petitionEndPlayerLeft(2), /** * petitionEndTimeout = 3; */ - petitionEndTimeout(3, 3), + petitionEndTimeout(3), ; /** @@ -42344,9 +41473,20 @@ public final class ProtoBuf { public static final int petitionEndTimeout_VALUE = 3; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -42360,17 +41500,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + PetitionEndReason> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public PetitionEndReason findValueByNumber(int number) { - return PetitionEndReason.valueOf(number); + return PetitionEndReason.forNumber(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 index, int value) { + private PetitionEndReason(int value) { this.value = value; } @@ -42383,620 +41538,717 @@ public final class ProtoBuf { /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PETITIONID_FIELD_NUMBER = 2; private int petitionId_; /** * required uint32 petitionId = 2; */ + @java.lang.Override public boolean hasPetitionId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } public static final int NUMVOTESAGAINSTKICKING_FIELD_NUMBER = 3; private int numVotesAgainstKicking_; /** * required uint32 numVotesAgainstKicking = 3; */ + @java.lang.Override public boolean hasNumVotesAgainstKicking() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * 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; + } public static final int NUMVOTESINFAVOUROFKICKING_FIELD_NUMBER = 4; private int numVotesInFavourOfKicking_; /** * required uint32 numVotesInFavourOfKicking = 4; */ + @java.lang.Override public boolean hasNumVotesInFavourOfKicking() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * 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; + } public static final int RESULTPLAYERKICKED_FIELD_NUMBER = 5; private int resultPlayerKicked_; /** * required uint32 resultPlayerKicked = 5; */ + @java.lang.Override public boolean hasResultPlayerKicked() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * 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; + } public static final int PETITIONENDREASON_FIELD_NUMBER = 6; - private de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason petitionEndReason_; + private int petitionEndReason_; /** * required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; */ + @java.lang.Override public boolean hasPetitionEndReason() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason getPetitionEndReason() { - return petitionEndReason_; + 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; } - - 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 true; - if (isInitialized == 0) return false; - - if (!hasGameId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPetitionId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasNumVotesAgainstKicking()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasNumVotesInFavourOfKicking()) { - memoizedIsInitialized = 0; - return false; + /** + * required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; + */ + private void setPetitionEndReason(de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason value) { + if (value == null) { + throw new NullPointerException(); } - if (!hasResultPlayerKicked()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasPetitionEndReason()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + bitField0_ |= 0x00000020; + petitionEndReason_ = value.getNumber(); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, petitionId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt32(3, numVotesAgainstKicking_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt32(4, numVotesInFavourOfKicking_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { output.writeUInt32(5, resultPlayerKicked_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeEnum(6, petitionEndReason_.getNumber()); + if (((bitField0_ & 0x00000020) != 0)) { + output.writeEnum(6, petitionEndReason_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, petitionId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, numVotesAgainstKicking_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, numVotesInFavourOfKicking_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, resultPlayerKicked_); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, petitionEndReason_.getNumber()); + .computeEnumSize(6, petitionEndReason_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code EndKickPetitionMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage, Builder> implements // @@protoc_insertion_point(builder_implements:EndKickPetitionMessage) de.pokerth.protocol.ProtoBuf.EndKickPetitionMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * required uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * required uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * required uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * required uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int petitionId_ ; /** * required uint32 petitionId = 2; */ + @java.lang.Override public boolean hasPetitionId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPetitionId(); } /** * required uint32 petitionId = 2; */ + @java.lang.Override public int getPetitionId() { - return petitionId_; + return instance.getPetitionId(); } /** * required uint32 petitionId = 2; */ public Builder setPetitionId(int value) { - bitField0_ |= 0x00000002; - petitionId_ = value; - + copyOnWrite(); + instance.setPetitionId(value); return this; } /** * required uint32 petitionId = 2; */ public Builder clearPetitionId() { - bitField0_ = (bitField0_ & ~0x00000002); - petitionId_ = 0; - + copyOnWrite(); + instance.clearPetitionId(); return this; } - private int numVotesAgainstKicking_ ; /** * required uint32 numVotesAgainstKicking = 3; */ + @java.lang.Override public boolean hasNumVotesAgainstKicking() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasNumVotesAgainstKicking(); } /** * required uint32 numVotesAgainstKicking = 3; */ + @java.lang.Override public int getNumVotesAgainstKicking() { - return numVotesAgainstKicking_; + return instance.getNumVotesAgainstKicking(); } /** * required uint32 numVotesAgainstKicking = 3; */ public Builder setNumVotesAgainstKicking(int value) { - bitField0_ |= 0x00000004; - numVotesAgainstKicking_ = value; - + copyOnWrite(); + instance.setNumVotesAgainstKicking(value); return this; } /** * required uint32 numVotesAgainstKicking = 3; */ public Builder clearNumVotesAgainstKicking() { - bitField0_ = (bitField0_ & ~0x00000004); - numVotesAgainstKicking_ = 0; - + copyOnWrite(); + instance.clearNumVotesAgainstKicking(); return this; } - private int numVotesInFavourOfKicking_ ; /** * required uint32 numVotesInFavourOfKicking = 4; */ + @java.lang.Override public boolean hasNumVotesInFavourOfKicking() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return instance.hasNumVotesInFavourOfKicking(); } /** * required uint32 numVotesInFavourOfKicking = 4; */ + @java.lang.Override public int getNumVotesInFavourOfKicking() { - return numVotesInFavourOfKicking_; + return instance.getNumVotesInFavourOfKicking(); } /** * required uint32 numVotesInFavourOfKicking = 4; */ public Builder setNumVotesInFavourOfKicking(int value) { - bitField0_ |= 0x00000008; - numVotesInFavourOfKicking_ = value; - + copyOnWrite(); + instance.setNumVotesInFavourOfKicking(value); return this; } /** * required uint32 numVotesInFavourOfKicking = 4; */ public Builder clearNumVotesInFavourOfKicking() { - bitField0_ = (bitField0_ & ~0x00000008); - numVotesInFavourOfKicking_ = 0; - + copyOnWrite(); + instance.clearNumVotesInFavourOfKicking(); return this; } - private int resultPlayerKicked_ ; /** * required uint32 resultPlayerKicked = 5; */ + @java.lang.Override public boolean hasResultPlayerKicked() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return instance.hasResultPlayerKicked(); } /** * required uint32 resultPlayerKicked = 5; */ + @java.lang.Override public int getResultPlayerKicked() { - return resultPlayerKicked_; + return instance.getResultPlayerKicked(); } /** * required uint32 resultPlayerKicked = 5; */ public Builder setResultPlayerKicked(int value) { - bitField0_ |= 0x00000010; - resultPlayerKicked_ = value; - + copyOnWrite(); + instance.setResultPlayerKicked(value); return this; } /** * required uint32 resultPlayerKicked = 5; */ public Builder clearResultPlayerKicked() { - bitField0_ = (bitField0_ & ~0x00000010); - resultPlayerKicked_ = 0; - + copyOnWrite(); + instance.clearResultPlayerKicked(); return this; } - private de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason petitionEndReason_ = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason.petitionEndEnoughVotes; /** * required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; */ + @java.lang.Override public boolean hasPetitionEndReason() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return instance.hasPetitionEndReason(); } /** * required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason getPetitionEndReason() { - return petitionEndReason_; + return instance.getPetitionEndReason(); } /** * required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; */ public Builder setPetitionEndReason(de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - petitionEndReason_ = value; - + copyOnWrite(); + instance.setPetitionEndReason(value); return this; } /** * required .EndKickPetitionMessage.PetitionEndReason petitionEndReason = 6; */ public Builder clearPetitionEndReason() { - bitField0_ = (bitField0_ & ~0x00000020); - petitionEndReason_ = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.PetitionEndReason.petitionEndEnoughVotes; - + copyOnWrite(); + instance.clearPetitionEndReason(); 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; - static { - defaultInstance = new EndKickPetitionMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface StatisticsMessageOrBuilder extends @@ -43020,97 +42272,14 @@ public final class ProtoBuf { /** * Protobuf type {@code StatisticsMessage} */ - public static final class StatisticsMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class StatisticsMessage extends + com.google.protobuf.GeneratedMessageLite< + StatisticsMessage, StatisticsMessage.Builder> implements // @@protoc_insertion_point(message_implements:StatisticsMessage) StatisticsMessageOrBuilder { - // Use StatisticsMessage.newBuilder() to construct. - private StatisticsMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private StatisticsMessage() { + statisticsData_ = emptyProtobufList(); } - private StatisticsMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final StatisticsMessage defaultInstance; - public static StatisticsMessage getDefaultInstance() { - return defaultInstance; - } - - public StatisticsMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private StatisticsMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - statisticsData_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - statisticsData_.add(input.readMessage(de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.PARSER, extensionRegistry)); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { - statisticsData_ = java.util.Collections.unmodifiableList(statisticsData_); - } - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public StatisticsMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StatisticsMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - public interface StatisticsDataOrBuilder extends // @@protoc_insertion_point(interface_extends:StatisticsMessage.StatisticsData) com.google.protobuf.MessageLiteOrBuilder { @@ -43136,103 +42305,14 @@ public final class ProtoBuf { /** * Protobuf type {@code StatisticsMessage.StatisticsData} */ - public static final class StatisticsData extends - com.google.protobuf.GeneratedMessageLite implements + public static final class StatisticsData extends + com.google.protobuf.GeneratedMessageLite< + StatisticsData, StatisticsData.Builder> implements // @@protoc_insertion_point(message_implements:StatisticsMessage.StatisticsData) StatisticsDataOrBuilder { - // Use StatisticsData.newBuilder() to construct. - private StatisticsData(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private StatisticsData() { + statisticsType_ = 1; } - private StatisticsData(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final StatisticsData defaultInstance; - public static StatisticsData getDefaultInstance() { - return defaultInstance; - } - - public StatisticsData getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private StatisticsData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - 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) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000001; - statisticsType_ = value; - } - break; - } - case 16: { - bitField0_ |= 0x00000002; - statisticsValue_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public StatisticsData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StatisticsData(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - /** * Protobuf enum {@code StatisticsMessage.StatisticsData.StatisticsType} */ @@ -43241,7 +42321,7 @@ public final class ProtoBuf { /** * statNumberOfPlayers = 1; */ - statNumberOfPlayers(0, 1), + statNumberOfPlayers(1), ; /** @@ -43250,9 +42330,20 @@ public final class ProtoBuf { public static final int statNumberOfPlayers_VALUE = 1; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static StatisticsType valueOf(int value) { + return forNumber(value); + } + + public static StatisticsType forNumber(int value) { switch (value) { case 1: return statNumberOfPlayers; default: return null; @@ -43263,17 +42354,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + StatisticsType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public StatisticsType findValueByNumber(int number) { - return StatisticsType.valueOf(number); + return StatisticsType.forNumber(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 index, int value) { + private StatisticsType(int value) { this.value = value; } @@ -43282,18 +42388,38 @@ public final class ProtoBuf { private int bitField0_; public static final int STATISTICSTYPE_FIELD_NUMBER = 1; - private de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType statisticsType_; + private int statisticsType_; /** * required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; */ + @java.lang.Override public boolean hasStatisticsType() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType getStatisticsType() { - return statisticsType_; + 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; + } + /** + * 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; } public static final int STATISTICSVALUE_FIELD_NUMBER = 2; @@ -43301,324 +42427,370 @@ public final class ProtoBuf { /** * required uint32 statisticsValue = 2; */ + @java.lang.Override public boolean hasStatisticsValue() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required uint32 statisticsValue = 2; */ + @java.lang.Override public int getStatisticsValue() { return statisticsValue_; } - - private void initFields() { - statisticsType_ = de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType.statNumberOfPlayers; + /** + * required uint32 statisticsValue = 2; + */ + private void setStatisticsValue(int value) { + bitField0_ |= 0x00000002; + statisticsValue_ = value; + } + /** + * required uint32 statisticsValue = 2; + */ + private void clearStatisticsValue() { + bitField0_ = (bitField0_ & ~0x00000002); statisticsValue_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasStatisticsType()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasStatisticsValue()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, statisticsType_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, statisticsType_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, statisticsValue_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, statisticsType_.getNumber()); + .computeEnumSize(1, statisticsType_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, statisticsValue_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } 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 PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code StatisticsMessage.StatisticsData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData, Builder> - implements + de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData, Builder> implements // @@protoc_insertion_point(builder_implements:StatisticsMessage.StatisticsData) de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsDataOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType statisticsType_ = de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType.statNumberOfPlayers; /** * required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; */ + @java.lang.Override public boolean hasStatisticsType() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasStatisticsType(); } /** * required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType getStatisticsType() { - return statisticsType_; + return instance.getStatisticsType(); } /** * required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; */ public Builder setStatisticsType(de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - statisticsType_ = value; - + copyOnWrite(); + instance.setStatisticsType(value); return this; } /** * required .StatisticsMessage.StatisticsData.StatisticsType statisticsType = 1; */ public Builder clearStatisticsType() { - bitField0_ = (bitField0_ & ~0x00000001); - statisticsType_ = de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.StatisticsType.statNumberOfPlayers; - + copyOnWrite(); + instance.clearStatisticsType(); return this; } - private int statisticsValue_ ; /** * required uint32 statisticsValue = 2; */ + @java.lang.Override public boolean hasStatisticsValue() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasStatisticsValue(); } /** * required uint32 statisticsValue = 2; */ + @java.lang.Override public int getStatisticsValue() { - return statisticsValue_; + return instance.getStatisticsValue(); } /** * required uint32 statisticsValue = 2; */ public Builder setStatisticsValue(int value) { - bitField0_ |= 0x00000002; - statisticsValue_ = value; - + copyOnWrite(); + instance.setStatisticsValue(value); return this; } /** * required uint32 statisticsValue = 2; */ public Builder clearStatisticsValue() { - bitField0_ = (bitField0_ & ~0x00000002); - statisticsValue_ = 0; - + copyOnWrite(); + instance.clearStatisticsValue(); 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; - static { - defaultInstance = new StatisticsData(true); - defaultInstance.initFields(); + 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(); + } } public static final int STATISTICSDATA_FIELD_NUMBER = 1; - private java.util.List statisticsData_; + private com.google.protobuf.Internal.ProtobufList statisticsData_; /** * repeated .StatisticsMessage.StatisticsData statisticsData = 1; */ + @java.lang.Override public java.util.List getStatisticsDataList() { return statisticsData_; } @@ -43632,12 +42804,14 @@ public final class ProtoBuf { /** * 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); } @@ -43648,36 +42822,102 @@ public final class ProtoBuf { int index) { return statisticsData_.get(index); } - - private void initFields() { - statisticsData_ = java.util.Collections.emptyList(); + private void ensureStatisticsDataIsMutable() { + if (!statisticsData_.isModifiable()) { + statisticsData_ = + com.google.protobuf.GeneratedMessageLite.mutableCopy(statisticsData_); + } } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - for (int i = 0; i < getStatisticsDataCount(); i++) { - if (!getStatisticsData(i).isInitialized()) { - memoizedIsInitialized = 0; - return false; - } + /** + * repeated .StatisticsMessage.StatisticsData statisticsData = 1; + */ + private void setStatisticsData( + int index, de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData value) { + if (value == null) { + throw new NullPointerException(); } - memoizedIsInitialized = 1; - return true; + ensureStatisticsDataIsMutable(); + statisticsData_.set(index, value); + } + /** + * 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)); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; @@ -43687,216 +42927,134 @@ public final class ProtoBuf { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, statisticsData_.get(i)); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.StatisticsMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.StatisticsMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code StatisticsMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.StatisticsMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.StatisticsMessage, Builder> implements // @@protoc_insertion_point(builder_implements:StatisticsMessage) de.pokerth.protocol.ProtoBuf.StatisticsMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.StatisticsMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - private void maybeForceBuilderInitialization() { - } - private static Builder create() { - return new Builder(); - } - - 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; - } - - 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_); - } - - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.StatisticsMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.StatisticsMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List statisticsData_ = - java.util.Collections.emptyList(); - private void ensureStatisticsDataIsMutable() { - if (!((bitField0_ & 0x00000001) == 0x00000001)) { - statisticsData_ = new java.util.ArrayList(statisticsData_); - bitField0_ |= 0x00000001; - } - } /** * repeated .StatisticsMessage.StatisticsData statisticsData = 1; */ + @java.lang.Override public java.util.List getStatisticsDataList() { - return java.util.Collections.unmodifiableList(statisticsData_); + return java.util.Collections.unmodifiableList( + instance.getStatisticsDataList()); } /** * repeated .StatisticsMessage.StatisticsData statisticsData = 1; */ + @java.lang.Override public int getStatisticsDataCount() { - return statisticsData_.size(); - } - /** + return instance.getStatisticsDataCount(); + }/** * repeated .StatisticsMessage.StatisticsData statisticsData = 1; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData getStatisticsData(int index) { - return statisticsData_.get(index); + return instance.getStatisticsData(index); } /** * repeated .StatisticsMessage.StatisticsData statisticsData = 1; */ public Builder setStatisticsData( int index, de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatisticsDataIsMutable(); - statisticsData_.set(index, value); - + copyOnWrite(); + instance.setStatisticsData(index, value); return this; } /** @@ -43904,21 +43062,16 @@ public final class ProtoBuf { */ public Builder setStatisticsData( int index, de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.Builder builderForValue) { - ensureStatisticsDataIsMutable(); - statisticsData_.set(index, builderForValue.build()); - + copyOnWrite(); + instance.setStatisticsData(index, builderForValue); return this; } /** * repeated .StatisticsMessage.StatisticsData statisticsData = 1; */ public Builder addStatisticsData(de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatisticsDataIsMutable(); - statisticsData_.add(value); - + copyOnWrite(); + instance.addStatisticsData(value); return this; } /** @@ -43926,12 +43079,8 @@ public final class ProtoBuf { */ public Builder addStatisticsData( int index, de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData value) { - if (value == null) { - throw new NullPointerException(); - } - ensureStatisticsDataIsMutable(); - statisticsData_.add(index, value); - + copyOnWrite(); + instance.addStatisticsData(index, value); return this; } /** @@ -43939,9 +43088,8 @@ public final class ProtoBuf { */ public Builder addStatisticsData( de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.Builder builderForValue) { - ensureStatisticsDataIsMutable(); - statisticsData_.add(builderForValue.build()); - + copyOnWrite(); + instance.addStatisticsData(builderForValue); return this; } /** @@ -43949,9 +43097,8 @@ public final class ProtoBuf { */ public Builder addStatisticsData( int index, de.pokerth.protocol.ProtoBuf.StatisticsMessage.StatisticsData.Builder builderForValue) { - ensureStatisticsDataIsMutable(); - statisticsData_.add(index, builderForValue.build()); - + copyOnWrite(); + instance.addStatisticsData(index, builderForValue); return this; } /** @@ -43959,40 +43106,157 @@ public final class ProtoBuf { */ public Builder addAllStatisticsData( java.lang.Iterable values) { - ensureStatisticsDataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, statisticsData_); - + copyOnWrite(); + instance.addAllStatisticsData(values); return this; } /** * repeated .StatisticsMessage.StatisticsData statisticsData = 1; */ public Builder clearStatisticsData() { - statisticsData_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - + copyOnWrite(); + instance.clearStatisticsData(); return this; } /** * repeated .StatisticsMessage.StatisticsData statisticsData = 1; */ public Builder removeStatisticsData(int index) { - ensureStatisticsDataIsMutable(); - statisticsData_.remove(index); - + copyOnWrite(); + instance.removeStatisticsData(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; - static { - defaultInstance = new StatisticsMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface ChatRequestMessageOrBuilder extends @@ -44034,535 +43298,363 @@ public final class ProtoBuf { /** * Protobuf type {@code ChatRequestMessage} */ - public static final class ChatRequestMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class ChatRequestMessage extends + com.google.protobuf.GeneratedMessageLite< + ChatRequestMessage, ChatRequestMessage.Builder> implements // @@protoc_insertion_point(message_implements:ChatRequestMessage) ChatRequestMessageOrBuilder { - // Use ChatRequestMessage.newBuilder() to construct. - private ChatRequestMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private ChatRequestMessage() { + chatText_ = ""; } - private ChatRequestMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final ChatRequestMessage defaultInstance; - public static ChatRequestMessage getDefaultInstance() { - return defaultInstance; - } - - public ChatRequestMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private ChatRequestMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - targetGameId_ = input.readUInt32(); - break; - } - case 16: { - bitField0_ |= 0x00000002; - targetPlayerId_ = input.readUInt32(); - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - chatText_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ChatRequestMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ChatRequestMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int TARGETGAMEID_FIELD_NUMBER = 1; private int targetGameId_; /** * optional uint32 targetGameId = 1; */ + @java.lang.Override public boolean hasTargetGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int TARGETPLAYERID_FIELD_NUMBER = 2; private int targetPlayerId_; /** * optional uint32 targetPlayerId = 2; */ + @java.lang.Override public boolean hasTargetPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } public static final int CHATTEXT_FIELD_NUMBER = 3; - private java.lang.Object chatText_; + private java.lang.String chatText_; /** * required string chatText = 3; */ + @java.lang.Override public boolean hasChatText() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required string chatText = 3; */ + @java.lang.Override public java.lang.String getChatText() { - java.lang.Object ref = chatText_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - chatText_ = s; - } - return s; - } + return chatText_; } /** * required string chatText = 3; */ + @java.lang.Override public com.google.protobuf.ByteString getChatTextBytes() { - java.lang.Object ref = chatText_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - chatText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + return com.google.protobuf.ByteString.copyFromUtf8(chatText_); } - - private void initFields() { - targetGameId_ = 0; - targetPlayerId_ = 0; - chatText_ = ""; + /** + * required string chatText = 3; + */ + private void setChatText( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + chatText_ = value; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasChatText()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + /** + * required string chatText = 3; + */ + private void clearChatText() { + bitField0_ = (bitField0_ & ~0x00000004); + chatText_ = getDefaultInstance().getChatText(); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, targetGameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, targetPlayerId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeBytes(3, getChatTextBytes()); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeString(3, getChatText()); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, targetGameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, targetPlayerId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, getChatTextBytes()); + .computeStringSize(3, getChatText()); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ChatRequestMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ChatRequestMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code ChatRequestMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.ChatRequestMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.ChatRequestMessage, Builder> implements // @@protoc_insertion_point(builder_implements:ChatRequestMessage) de.pokerth.protocol.ProtoBuf.ChatRequestMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.ChatRequestMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()) { - bitField0_ |= 0x00000004; - chatText_ = other.chatText_; - - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.ChatRequestMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.ChatRequestMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int targetGameId_ ; /** * optional uint32 targetGameId = 1; */ + @java.lang.Override public boolean hasTargetGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasTargetGameId(); } /** * optional uint32 targetGameId = 1; */ + @java.lang.Override public int getTargetGameId() { - return targetGameId_; + return instance.getTargetGameId(); } /** * optional uint32 targetGameId = 1; */ public Builder setTargetGameId(int value) { - bitField0_ |= 0x00000001; - targetGameId_ = value; - + copyOnWrite(); + instance.setTargetGameId(value); return this; } /** * optional uint32 targetGameId = 1; */ public Builder clearTargetGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - targetGameId_ = 0; - + copyOnWrite(); + instance.clearTargetGameId(); return this; } - private int targetPlayerId_ ; /** * optional uint32 targetPlayerId = 2; */ + @java.lang.Override public boolean hasTargetPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasTargetPlayerId(); } /** * optional uint32 targetPlayerId = 2; */ + @java.lang.Override public int getTargetPlayerId() { - return targetPlayerId_; + return instance.getTargetPlayerId(); } /** * optional uint32 targetPlayerId = 2; */ public Builder setTargetPlayerId(int value) { - bitField0_ |= 0x00000002; - targetPlayerId_ = value; - + copyOnWrite(); + instance.setTargetPlayerId(value); return this; } /** * optional uint32 targetPlayerId = 2; */ public Builder clearTargetPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - targetPlayerId_ = 0; - + copyOnWrite(); + instance.clearTargetPlayerId(); return this; } - private java.lang.Object chatText_ = ""; /** * required string chatText = 3; */ + @java.lang.Override public boolean hasChatText() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasChatText(); } /** * required string chatText = 3; */ + @java.lang.Override public java.lang.String getChatText() { - java.lang.Object ref = chatText_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - chatText_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } + return instance.getChatText(); } /** * required string chatText = 3; */ + @java.lang.Override public com.google.protobuf.ByteString getChatTextBytes() { - java.lang.Object ref = chatText_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - chatText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + return instance.getChatTextBytes(); } /** * required string chatText = 3; */ public Builder setChatText( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - chatText_ = value; - + copyOnWrite(); + instance.setChatText(value); return this; } /** * required string chatText = 3; */ public Builder clearChatText() { - bitField0_ = (bitField0_ & ~0x00000004); - chatText_ = getDefaultInstance().getChatText(); - + copyOnWrite(); + instance.clearChatText(); return this; } /** @@ -44570,24 +43662,154 @@ public final class ProtoBuf { */ public Builder setChatTextBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - chatText_ = value; - + copyOnWrite(); + instance.setChatTextBytes(value); return this; } // @@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; - static { - defaultInstance = new ChatRequestMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface ChatMessageOrBuilder extends @@ -44638,114 +43860,14 @@ public final class ProtoBuf { /** * Protobuf type {@code ChatMessage} */ - public static final class ChatMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class ChatMessage extends + com.google.protobuf.GeneratedMessageLite< + ChatMessage, ChatMessage.Builder> implements // @@protoc_insertion_point(message_implements:ChatMessage) ChatMessageOrBuilder { - // Use ChatMessage.newBuilder() to construct. - private ChatMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private ChatMessage() { + chatText_ = ""; } - private ChatMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final ChatMessage defaultInstance; - public static ChatMessage getDefaultInstance() { - return defaultInstance; - } - - public ChatMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private ChatMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000004; - chatType_ = value; - } - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - chatText_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ChatMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ChatMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - /** * Protobuf enum {@code ChatMessage.ChatType} */ @@ -44754,23 +43876,23 @@ public final class ProtoBuf { /** * chatTypeLobby = 0; */ - chatTypeLobby(0, 0), + chatTypeLobby(0), /** * chatTypeGame = 1; */ - chatTypeGame(1, 1), + chatTypeGame(1), /** * chatTypeBot = 2; */ - chatTypeBot(2, 2), + chatTypeBot(2), /** * chatTypeBroadcast = 3; */ - chatTypeBroadcast(3, 3), + chatTypeBroadcast(3), /** * chatTypePrivate = 4; */ - chatTypePrivate(4, 4), + chatTypePrivate(4), ; /** @@ -44795,9 +43917,20 @@ public final class ProtoBuf { public static final int chatTypePrivate_VALUE = 4; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -44812,17 +43945,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + ChatType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public ChatType findValueByNumber(int number) { - return ChatType.valueOf(number); + return ChatType.forNumber(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 index, int value) { + private ChatType(int value) { this.value = value; } @@ -44835,508 +43983,422 @@ public final class ProtoBuf { /** * optional uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int PLAYERID_FIELD_NUMBER = 2; private int playerId_; /** * optional uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * 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; + } public static final int CHATTYPE_FIELD_NUMBER = 3; - private de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType chatType_; + private int chatType_; /** * required .ChatMessage.ChatType chatType = 3; */ + @java.lang.Override public boolean hasChatType() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * required .ChatMessage.ChatType chatType = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType getChatType() { - return chatType_; + 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; + } + /** + * 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; } public static final int CHATTEXT_FIELD_NUMBER = 4; - private java.lang.Object chatText_; + private java.lang.String chatText_; /** * required string chatText = 4; */ + @java.lang.Override public boolean hasChatText() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * required string chatText = 4; */ + @java.lang.Override public java.lang.String getChatText() { - java.lang.Object ref = chatText_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - chatText_ = s; - } - return s; - } + return chatText_; } /** * required string chatText = 4; */ + @java.lang.Override public com.google.protobuf.ByteString getChatTextBytes() { - java.lang.Object ref = chatText_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - chatText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + return com.google.protobuf.ByteString.copyFromUtf8(chatText_); } - - private void initFields() { - gameId_ = 0; - playerId_ = 0; - chatType_ = de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType.chatTypeLobby; - chatText_ = ""; + /** + * required string chatText = 4; + */ + private void setChatText( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + chatText_ = value; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasChatType()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasChatText()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + /** + * required string chatText = 4; + */ + private void clearChatText() { + bitField0_ = (bitField0_ & ~0x00000008); + chatText_ = getDefaultInstance().getChatText(); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, playerId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeEnum(3, chatType_.getNumber()); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(3, chatType_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBytes(4, getChatTextBytes()); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeString(4, getChatText()); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, gameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, playerId_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, chatType_.getNumber()); + .computeEnumSize(3, chatType_); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, getChatTextBytes()); + .computeStringSize(4, getChatText()); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ChatMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ChatMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ChatMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ChatMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code ChatMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.ChatMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.ChatMessage, Builder> implements // @@protoc_insertion_point(builder_implements:ChatMessage) de.pokerth.protocol.ProtoBuf.ChatMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.ChatMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()) { - bitField0_ |= 0x00000008; - chatText_ = other.chatText_; - - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.ChatMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.ChatMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int gameId_ ; /** * optional uint32 gameId = 1; */ + @java.lang.Override public boolean hasGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasGameId(); } /** * optional uint32 gameId = 1; */ + @java.lang.Override public int getGameId() { - return gameId_; + return instance.getGameId(); } /** * optional uint32 gameId = 1; */ public Builder setGameId(int value) { - bitField0_ |= 0x00000001; - gameId_ = value; - + copyOnWrite(); + instance.setGameId(value); return this; } /** * optional uint32 gameId = 1; */ public Builder clearGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - gameId_ = 0; - + copyOnWrite(); + instance.clearGameId(); return this; } - private int playerId_ ; /** * optional uint32 playerId = 2; */ + @java.lang.Override public boolean hasPlayerId() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasPlayerId(); } /** * optional uint32 playerId = 2; */ + @java.lang.Override public int getPlayerId() { - return playerId_; + return instance.getPlayerId(); } /** * optional uint32 playerId = 2; */ public Builder setPlayerId(int value) { - bitField0_ |= 0x00000002; - playerId_ = value; - + copyOnWrite(); + instance.setPlayerId(value); return this; } /** * optional uint32 playerId = 2; */ public Builder clearPlayerId() { - bitField0_ = (bitField0_ & ~0x00000002); - playerId_ = 0; - + copyOnWrite(); + instance.clearPlayerId(); return this; } - private de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType chatType_ = de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType.chatTypeLobby; /** * required .ChatMessage.ChatType chatType = 3; */ + @java.lang.Override public boolean hasChatType() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasChatType(); } /** * required .ChatMessage.ChatType chatType = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType getChatType() { - return chatType_; + return instance.getChatType(); } /** * required .ChatMessage.ChatType chatType = 3; */ public Builder setChatType(de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - chatType_ = value; - + copyOnWrite(); + instance.setChatType(value); return this; } /** * required .ChatMessage.ChatType chatType = 3; */ public Builder clearChatType() { - bitField0_ = (bitField0_ & ~0x00000004); - chatType_ = de.pokerth.protocol.ProtoBuf.ChatMessage.ChatType.chatTypeLobby; - + copyOnWrite(); + instance.clearChatType(); return this; } - private java.lang.Object chatText_ = ""; /** * required string chatText = 4; */ + @java.lang.Override public boolean hasChatText() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return instance.hasChatText(); } /** * required string chatText = 4; */ + @java.lang.Override public java.lang.String getChatText() { - java.lang.Object ref = chatText_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - chatText_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } + return instance.getChatText(); } /** * required string chatText = 4; */ + @java.lang.Override public com.google.protobuf.ByteString getChatTextBytes() { - java.lang.Object ref = chatText_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - chatText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + return instance.getChatTextBytes(); } /** * required string chatText = 4; */ public Builder setChatText( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - chatText_ = value; - + copyOnWrite(); + instance.setChatText(value); return this; } /** * required string chatText = 4; */ public Builder clearChatText() { - bitField0_ = (bitField0_ & ~0x00000008); - chatText_ = getDefaultInstance().getChatText(); - + copyOnWrite(); + instance.clearChatText(); return this; } /** @@ -45344,24 +44406,170 @@ public final class ProtoBuf { */ public Builder setChatTextBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - chatText_ = value; - + copyOnWrite(); + instance.setChatTextBytes(value); return this; } // @@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; - static { - defaultInstance = new ChatMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface ChatRejectMessageOrBuilder extends @@ -45385,397 +44593,225 @@ public final class ProtoBuf { /** * Protobuf type {@code ChatRejectMessage} */ - public static final class ChatRejectMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class ChatRejectMessage extends + com.google.protobuf.GeneratedMessageLite< + ChatRejectMessage, ChatRejectMessage.Builder> implements // @@protoc_insertion_point(message_implements:ChatRejectMessage) ChatRejectMessageOrBuilder { - // Use ChatRejectMessage.newBuilder() to construct. - private ChatRejectMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private ChatRejectMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final ChatRejectMessage defaultInstance; - public static ChatRejectMessage getDefaultInstance() { - return defaultInstance; - } - - public ChatRejectMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private ChatRejectMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - chatText_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ChatRejectMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ChatRejectMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - public static final int CHATTEXT_FIELD_NUMBER = 1; - private java.lang.Object chatText_; - /** - * required string chatText = 1; - */ - public boolean hasChatText() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string chatText = 1; - */ - public java.lang.String getChatText() { - java.lang.Object ref = chatText_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - chatText_ = s; - } - return s; - } - } - /** - * required string chatText = 1; - */ - public com.google.protobuf.ByteString - getChatTextBytes() { - java.lang.Object ref = chatText_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - chatText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { + private ChatRejectMessage() { chatText_ = ""; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasChatText()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + 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); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getChatTextBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeString(1, getChatText()); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getChatTextBytes()); + .computeStringSize(1, getChatText()); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ChatRejectMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ChatRejectMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code ChatRejectMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.ChatRejectMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.ChatRejectMessage, Builder> implements // @@protoc_insertion_point(builder_implements:ChatRejectMessage) de.pokerth.protocol.ProtoBuf.ChatRejectMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.ChatRejectMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()) { - bitField0_ |= 0x00000001; - chatText_ = other.chatText_; - - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.ChatRejectMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.ChatRejectMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object chatText_ = ""; /** * required string chatText = 1; */ + @java.lang.Override public boolean hasChatText() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasChatText(); } /** * required string chatText = 1; */ + @java.lang.Override public java.lang.String getChatText() { - java.lang.Object ref = chatText_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - chatText_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } + return instance.getChatText(); } /** * required string chatText = 1; */ + @java.lang.Override public com.google.protobuf.ByteString getChatTextBytes() { - java.lang.Object ref = chatText_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - chatText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + return instance.getChatTextBytes(); } /** * required string chatText = 1; */ public Builder setChatText( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - chatText_ = value; - + copyOnWrite(); + instance.setChatText(value); return this; } /** * required string chatText = 1; */ public Builder clearChatText() { - bitField0_ = (bitField0_ & ~0x00000001); - chatText_ = getDefaultInstance().getChatText(); - + copyOnWrite(); + instance.clearChatText(); return this; } /** @@ -45783,24 +44819,138 @@ public final class ProtoBuf { */ public Builder setChatTextBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - chatText_ = value; - + copyOnWrite(); + instance.setChatTextBytes(value); return this; } // @@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; - static { - defaultInstance = new ChatRejectMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface DialogMessageOrBuilder extends @@ -45824,397 +44974,225 @@ public final class ProtoBuf { /** * Protobuf type {@code DialogMessage} */ - public static final class DialogMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class DialogMessage extends + com.google.protobuf.GeneratedMessageLite< + DialogMessage, DialogMessage.Builder> implements // @@protoc_insertion_point(message_implements:DialogMessage) DialogMessageOrBuilder { - // Use DialogMessage.newBuilder() to construct. - private DialogMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); - } - private DialogMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final DialogMessage defaultInstance; - public static DialogMessage getDefaultInstance() { - return defaultInstance; - } - - public DialogMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private DialogMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - notificationText_ = bs; - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public DialogMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DialogMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private int bitField0_; - public static final int NOTIFICATIONTEXT_FIELD_NUMBER = 1; - private java.lang.Object notificationText_; - /** - * required string notificationText = 1; - */ - public boolean hasNotificationText() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - * required string notificationText = 1; - */ - public java.lang.String getNotificationText() { - java.lang.Object ref = notificationText_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - notificationText_ = s; - } - return s; - } - } - /** - * required string notificationText = 1; - */ - public com.google.protobuf.ByteString - getNotificationTextBytes() { - java.lang.Object ref = notificationText_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - notificationText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private void initFields() { + private DialogMessage() { notificationText_ = ""; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasNotificationText()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + 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); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeBytes(1, getNotificationTextBytes()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeString(1, getNotificationText()); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, getNotificationTextBytes()); + .computeStringSize(1, getNotificationText()); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.DialogMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.DialogMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.DialogMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.DialogMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code DialogMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.DialogMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.DialogMessage, Builder> implements // @@protoc_insertion_point(builder_implements:DialogMessage) de.pokerth.protocol.ProtoBuf.DialogMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.DialogMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()) { - bitField0_ |= 0x00000001; - notificationText_ = other.notificationText_; - - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.DialogMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.DialogMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object notificationText_ = ""; /** * required string notificationText = 1; */ + @java.lang.Override public boolean hasNotificationText() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasNotificationText(); } /** * required string notificationText = 1; */ + @java.lang.Override public java.lang.String getNotificationText() { - java.lang.Object ref = notificationText_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - notificationText_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } + return instance.getNotificationText(); } /** * required string notificationText = 1; */ + @java.lang.Override public com.google.protobuf.ByteString getNotificationTextBytes() { - java.lang.Object ref = notificationText_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - notificationText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + return instance.getNotificationTextBytes(); } /** * required string notificationText = 1; */ public Builder setNotificationText( java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - notificationText_ = value; - + copyOnWrite(); + instance.setNotificationText(value); return this; } /** * required string notificationText = 1; */ public Builder clearNotificationText() { - bitField0_ = (bitField0_ & ~0x00000001); - notificationText_ = getDefaultInstance().getNotificationText(); - + copyOnWrite(); + instance.clearNotificationText(); return this; } /** @@ -46222,24 +45200,138 @@ public final class ProtoBuf { */ public Builder setNotificationTextBytes( com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - notificationText_ = value; - + copyOnWrite(); + instance.setNotificationTextBytes(value); return this; } // @@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; - static { - defaultInstance = new DialogMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface TimeoutWarningMessageOrBuilder extends @@ -46267,103 +45359,13 @@ public final class ProtoBuf { /** * Protobuf type {@code TimeoutWarningMessage} */ - public static final class TimeoutWarningMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class TimeoutWarningMessage extends + com.google.protobuf.GeneratedMessageLite< + TimeoutWarningMessage, TimeoutWarningMessage.Builder> implements // @@protoc_insertion_point(message_implements:TimeoutWarningMessage) TimeoutWarningMessageOrBuilder { - // Use TimeoutWarningMessage.newBuilder() to construct. - private TimeoutWarningMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private TimeoutWarningMessage() { } - private TimeoutWarningMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final TimeoutWarningMessage defaultInstance; - public static TimeoutWarningMessage getDefaultInstance() { - return defaultInstance; - } - - public TimeoutWarningMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private TimeoutWarningMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - 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) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000001; - timeoutReason_ = value; - } - break; - } - case 16: { - bitField0_ |= 0x00000002; - remainingSeconds_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public TimeoutWarningMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TimeoutWarningMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - /** * Protobuf enum {@code TimeoutWarningMessage.TimeoutReason} */ @@ -46372,15 +45374,15 @@ public final class ProtoBuf { /** * timeoutNoDataReceived = 0; */ - timeoutNoDataReceived(0, 0), + timeoutNoDataReceived(0), /** * timeoutInactiveGame = 1; */ - timeoutInactiveGame(1, 1), + timeoutInactiveGame(1), /** * timeoutKickAfterAutofold = 2; */ - timeoutKickAfterAutofold(2, 2), + timeoutKickAfterAutofold(2), ; /** @@ -46397,9 +45399,20 @@ public final class ProtoBuf { public static final int timeoutKickAfterAutofold_VALUE = 2; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -46412,17 +45425,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + TimeoutReason> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public TimeoutReason findValueByNumber(int number) { - return TimeoutReason.valueOf(number); + return TimeoutReason.forNumber(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 index, int value) { + private TimeoutReason(int value) { this.value = value; } @@ -46431,18 +45459,38 @@ public final class ProtoBuf { private int bitField0_; public static final int TIMEOUTREASON_FIELD_NUMBER = 1; - private de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason timeoutReason_; + private int timeoutReason_; /** * required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; */ + @java.lang.Override public boolean hasTimeoutReason() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason getTimeoutReason() { - return timeoutReason_; + 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; + } + /** + * 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; } public static final int REMAININGSECONDS_FIELD_NUMBER = 2; @@ -46450,317 +45498,362 @@ public final class ProtoBuf { /** * required uint32 remainingSeconds = 2; */ + @java.lang.Override public boolean hasRemainingSeconds() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required uint32 remainingSeconds = 2; */ + @java.lang.Override public int getRemainingSeconds() { return remainingSeconds_; } - - private void initFields() { - timeoutReason_ = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason.timeoutNoDataReceived; + /** + * required uint32 remainingSeconds = 2; + */ + private void setRemainingSeconds(int value) { + bitField0_ |= 0x00000002; + remainingSeconds_ = value; + } + /** + * required uint32 remainingSeconds = 2; + */ + private void clearRemainingSeconds() { + bitField0_ = (bitField0_ & ~0x00000002); remainingSeconds_ = 0; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasTimeoutReason()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasRemainingSeconds()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, timeoutReason_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, timeoutReason_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, remainingSeconds_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, timeoutReason_.getNumber()); + .computeEnumSize(1, timeoutReason_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, remainingSeconds_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code TimeoutWarningMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage, Builder> implements // @@protoc_insertion_point(builder_implements:TimeoutWarningMessage) de.pokerth.protocol.ProtoBuf.TimeoutWarningMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason timeoutReason_ = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason.timeoutNoDataReceived; /** * required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; */ + @java.lang.Override public boolean hasTimeoutReason() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasTimeoutReason(); } /** * required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason getTimeoutReason() { - return timeoutReason_; + return instance.getTimeoutReason(); } /** * required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; */ public Builder setTimeoutReason(de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - timeoutReason_ = value; - + copyOnWrite(); + instance.setTimeoutReason(value); return this; } /** * required .TimeoutWarningMessage.TimeoutReason timeoutReason = 1; */ public Builder clearTimeoutReason() { - bitField0_ = (bitField0_ & ~0x00000001); - timeoutReason_ = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.TimeoutReason.timeoutNoDataReceived; - + copyOnWrite(); + instance.clearTimeoutReason(); return this; } - private int remainingSeconds_ ; /** * required uint32 remainingSeconds = 2; */ + @java.lang.Override public boolean hasRemainingSeconds() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasRemainingSeconds(); } /** * required uint32 remainingSeconds = 2; */ + @java.lang.Override public int getRemainingSeconds() { - return remainingSeconds_; + return instance.getRemainingSeconds(); } /** * required uint32 remainingSeconds = 2; */ public Builder setRemainingSeconds(int value) { - bitField0_ |= 0x00000002; - remainingSeconds_ = value; - + copyOnWrite(); + instance.setRemainingSeconds(value); return this; } /** * required uint32 remainingSeconds = 2; */ public Builder clearRemainingSeconds() { - bitField0_ = (bitField0_ & ~0x00000002); - remainingSeconds_ = 0; - + copyOnWrite(); + instance.clearRemainingSeconds(); 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; - static { - defaultInstance = new TimeoutWarningMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface ResetTimeoutMessageOrBuilder extends @@ -46770,265 +45863,231 @@ public final class ProtoBuf { /** * Protobuf type {@code ResetTimeoutMessage} */ - public static final class ResetTimeoutMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class ResetTimeoutMessage extends + com.google.protobuf.GeneratedMessageLite< + ResetTimeoutMessage, ResetTimeoutMessage.Builder> implements // @@protoc_insertion_point(message_implements:ResetTimeoutMessage) ResetTimeoutMessageOrBuilder { - // Use ResetTimeoutMessage.newBuilder() to construct. - private ResetTimeoutMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private ResetTimeoutMessage() { } - private ResetTimeoutMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final ResetTimeoutMessage defaultInstance; - public static ResetTimeoutMessage getDefaultInstance() { - return defaultInstance; - } - - public ResetTimeoutMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private ResetTimeoutMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ResetTimeoutMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResetTimeoutMessage(input, extensionRegistry); - } - }; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - private void initFields() { - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code ResetTimeoutMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage, Builder> implements // @@protoc_insertion_point(builder_implements:ResetTimeoutMessage) de.pokerth.protocol.ProtoBuf.ResetTimeoutMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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; - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } // @@protoc_insertion_point(builder_scope:ResetTimeoutMessage) } - - static { - defaultInstance = new ResetTimeoutMessage(true); - defaultInstance.initFields(); + @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(); + } } public interface ReportAvatarMessageOrBuilder extends @@ -47056,428 +46115,405 @@ public final class ProtoBuf { /** * Protobuf type {@code ReportAvatarMessage} */ - public static final class ReportAvatarMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class ReportAvatarMessage extends + com.google.protobuf.GeneratedMessageLite< + ReportAvatarMessage, ReportAvatarMessage.Builder> implements // @@protoc_insertion_point(message_implements:ReportAvatarMessage) ReportAvatarMessageOrBuilder { - // Use ReportAvatarMessage.newBuilder() to construct. - private ReportAvatarMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private ReportAvatarMessage() { + reportedAvatarHash_ = com.google.protobuf.ByteString.EMPTY; } - private ReportAvatarMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final ReportAvatarMessage defaultInstance; - public static ReportAvatarMessage getDefaultInstance() { - return defaultInstance; - } - - public ReportAvatarMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private ReportAvatarMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - reportedPlayerId_ = input.readUInt32(); - break; - } - case 18: { - bitField0_ |= 0x00000002; - reportedAvatarHash_ = input.readBytes(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ReportAvatarMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReportAvatarMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int REPORTEDPLAYERID_FIELD_NUMBER = 1; private int reportedPlayerId_; /** * required uint32 reportedPlayerId = 1; */ + @java.lang.Override public boolean hasReportedPlayerId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } 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) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required bytes reportedAvatarHash = 2; */ + @java.lang.Override public com.google.protobuf.ByteString getReportedAvatarHash() { return reportedAvatarHash_; } - - private void initFields() { - reportedPlayerId_ = 0; - reportedAvatarHash_ = com.google.protobuf.ByteString.EMPTY; + /** + * required bytes reportedAvatarHash = 2; + */ + private void setReportedAvatarHash(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + reportedAvatarHash_ = value; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasReportedPlayerId()) { - memoizedIsInitialized = 0; - return false; - } - if (!hasReportedAvatarHash()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + /** + * required bytes reportedAvatarHash = 2; + */ + private void clearReportedAvatarHash() { + bitField0_ = (bitField0_ & ~0x00000002); + reportedAvatarHash_ = getDefaultInstance().getReportedAvatarHash(); } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, reportedPlayerId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(2, reportedAvatarHash_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, reportedPlayerId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, reportedAvatarHash_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ReportAvatarMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code ReportAvatarMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.ReportAvatarMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.ReportAvatarMessage, Builder> implements // @@protoc_insertion_point(builder_implements:ReportAvatarMessage) de.pokerth.protocol.ProtoBuf.ReportAvatarMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.ReportAvatarMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.ReportAvatarMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int reportedPlayerId_ ; /** * required uint32 reportedPlayerId = 1; */ + @java.lang.Override public boolean hasReportedPlayerId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasReportedPlayerId(); } /** * required uint32 reportedPlayerId = 1; */ + @java.lang.Override public int getReportedPlayerId() { - return reportedPlayerId_; + return instance.getReportedPlayerId(); } /** * required uint32 reportedPlayerId = 1; */ public Builder setReportedPlayerId(int value) { - bitField0_ |= 0x00000001; - reportedPlayerId_ = value; - + copyOnWrite(); + instance.setReportedPlayerId(value); return this; } /** * required uint32 reportedPlayerId = 1; */ public Builder clearReportedPlayerId() { - bitField0_ = (bitField0_ & ~0x00000001); - reportedPlayerId_ = 0; - + copyOnWrite(); + instance.clearReportedPlayerId(); return this; } - private com.google.protobuf.ByteString reportedAvatarHash_ = com.google.protobuf.ByteString.EMPTY; /** * required bytes reportedAvatarHash = 2; */ + @java.lang.Override public boolean hasReportedAvatarHash() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasReportedAvatarHash(); } /** * required bytes reportedAvatarHash = 2; */ + @java.lang.Override public com.google.protobuf.ByteString getReportedAvatarHash() { - return reportedAvatarHash_; + return instance.getReportedAvatarHash(); } /** * required bytes reportedAvatarHash = 2; */ public Builder setReportedAvatarHash(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - reportedAvatarHash_ = value; - + copyOnWrite(); + instance.setReportedAvatarHash(value); return this; } /** * required bytes reportedAvatarHash = 2; */ public Builder clearReportedAvatarHash() { - bitField0_ = (bitField0_ & ~0x00000002); - reportedAvatarHash_ = getDefaultInstance().getReportedAvatarHash(); - + copyOnWrite(); + instance.clearReportedAvatarHash(); 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; - static { - defaultInstance = new ReportAvatarMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface ReportAvatarAckMessageOrBuilder extends @@ -47505,103 +46541,13 @@ public final class ProtoBuf { /** * Protobuf type {@code ReportAvatarAckMessage} */ - public static final class ReportAvatarAckMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class ReportAvatarAckMessage extends + com.google.protobuf.GeneratedMessageLite< + ReportAvatarAckMessage, ReportAvatarAckMessage.Builder> implements // @@protoc_insertion_point(message_implements:ReportAvatarAckMessage) ReportAvatarAckMessageOrBuilder { - // Use ReportAvatarAckMessage.newBuilder() to construct. - private ReportAvatarAckMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private ReportAvatarAckMessage() { } - private ReportAvatarAckMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final ReportAvatarAckMessage defaultInstance; - public static ReportAvatarAckMessage getDefaultInstance() { - return defaultInstance; - } - - public ReportAvatarAckMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private ReportAvatarAckMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000002; - reportAvatarResult_ = value; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ReportAvatarAckMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReportAvatarAckMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - /** * Protobuf enum {@code ReportAvatarAckMessage.ReportAvatarResult} */ @@ -47610,15 +46556,15 @@ public final class ProtoBuf { /** * avatarReportAccepted = 0; */ - avatarReportAccepted(0, 0), + avatarReportAccepted(0), /** * avatarReportDuplicate = 1; */ - avatarReportDuplicate(1, 1), + avatarReportDuplicate(1), /** * avatarReportInvalid = 2; */ - avatarReportInvalid(2, 2), + avatarReportInvalid(2), ; /** @@ -47635,9 +46581,20 @@ public final class ProtoBuf { public static final int avatarReportInvalid_VALUE = 2; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -47650,17 +46607,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + ReportAvatarResult> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public ReportAvatarResult findValueByNumber(int number) { - return ReportAvatarResult.valueOf(number); + return ReportAvatarResult.forNumber(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 index, int value) { + private ReportAvatarResult(int value) { this.value = value; } @@ -47673,332 +46645,397 @@ public final class ProtoBuf { /** * required uint32 reportedPlayerId = 1; */ + @java.lang.Override public boolean hasReportedPlayerId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int REPORTAVATARRESULT_FIELD_NUMBER = 2; - private de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult_; + private int reportAvatarResult_; /** * required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; */ + @java.lang.Override public boolean hasReportAvatarResult() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult getReportAvatarResult() { - return reportAvatarResult_; + 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; } - - 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 true; - if (isInitialized == 0) return false; - - if (!hasReportedPlayerId()) { - memoizedIsInitialized = 0; - return false; + /** + * required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; + */ + private void setReportAvatarResult(de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult value) { + if (value == null) { + throw new NullPointerException(); } - if (!hasReportAvatarResult()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + bitField0_ |= 0x00000002; + reportAvatarResult_ = value.getNumber(); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, reportedPlayerId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, reportAvatarResult_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, reportAvatarResult_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, reportedPlayerId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, reportAvatarResult_.getNumber()); + .computeEnumSize(2, reportAvatarResult_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code ReportAvatarAckMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage, Builder> implements // @@protoc_insertion_point(builder_implements:ReportAvatarAckMessage) de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int reportedPlayerId_ ; /** * required uint32 reportedPlayerId = 1; */ + @java.lang.Override public boolean hasReportedPlayerId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasReportedPlayerId(); } /** * required uint32 reportedPlayerId = 1; */ + @java.lang.Override public int getReportedPlayerId() { - return reportedPlayerId_; + return instance.getReportedPlayerId(); } /** * required uint32 reportedPlayerId = 1; */ public Builder setReportedPlayerId(int value) { - bitField0_ |= 0x00000001; - reportedPlayerId_ = value; - + copyOnWrite(); + instance.setReportedPlayerId(value); return this; } /** * required uint32 reportedPlayerId = 1; */ public Builder clearReportedPlayerId() { - bitField0_ = (bitField0_ & ~0x00000001); - reportedPlayerId_ = 0; - + copyOnWrite(); + instance.clearReportedPlayerId(); return this; } - private de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult_ = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult.avatarReportAccepted; /** * required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; */ + @java.lang.Override public boolean hasReportAvatarResult() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasReportAvatarResult(); } /** * required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult getReportAvatarResult() { - return reportAvatarResult_; + return instance.getReportAvatarResult(); } /** * required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; */ public Builder setReportAvatarResult(de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - reportAvatarResult_ = value; - + copyOnWrite(); + instance.setReportAvatarResult(value); return this; } /** * required .ReportAvatarAckMessage.ReportAvatarResult reportAvatarResult = 2; */ public Builder clearReportAvatarResult() { - bitField0_ = (bitField0_ & ~0x00000002); - reportAvatarResult_ = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.ReportAvatarResult.avatarReportAccepted; - + copyOnWrite(); + instance.clearReportAvatarResult(); 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; - static { - defaultInstance = new ReportAvatarAckMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface ReportGameMessageOrBuilder extends @@ -48017,348 +47054,321 @@ public final class ProtoBuf { /** * Protobuf type {@code ReportGameMessage} */ - public static final class ReportGameMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class ReportGameMessage extends + com.google.protobuf.GeneratedMessageLite< + ReportGameMessage, ReportGameMessage.Builder> implements // @@protoc_insertion_point(message_implements:ReportGameMessage) ReportGameMessageOrBuilder { - // Use ReportGameMessage.newBuilder() to construct. - private ReportGameMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private ReportGameMessage() { } - private ReportGameMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final ReportGameMessage defaultInstance; - public static ReportGameMessage getDefaultInstance() { - return defaultInstance; - } - - public ReportGameMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private ReportGameMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - reportedGameId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ReportGameMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReportGameMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int REPORTEDGAMEID_FIELD_NUMBER = 1; private int reportedGameId_; /** * required uint32 reportedGameId = 1; */ + @java.lang.Override public boolean hasReportedGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required uint32 reportedGameId = 1; */ + @java.lang.Override public int getReportedGameId() { return reportedGameId_; } - - private void initFields() { + /** + * 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; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasReportedGameId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, reportedGameId_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, reportedGameId_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ReportGameMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ReportGameMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code ReportGameMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.ReportGameMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.ReportGameMessage, Builder> implements // @@protoc_insertion_point(builder_implements:ReportGameMessage) de.pokerth.protocol.ProtoBuf.ReportGameMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.ReportGameMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.ReportGameMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.ReportGameMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int reportedGameId_ ; /** * required uint32 reportedGameId = 1; */ + @java.lang.Override public boolean hasReportedGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasReportedGameId(); } /** * required uint32 reportedGameId = 1; */ + @java.lang.Override public int getReportedGameId() { - return reportedGameId_; + return instance.getReportedGameId(); } /** * required uint32 reportedGameId = 1; */ public Builder setReportedGameId(int value) { - bitField0_ |= 0x00000001; - reportedGameId_ = value; - + copyOnWrite(); + instance.setReportedGameId(value); return this; } /** * required uint32 reportedGameId = 1; */ public Builder clearReportedGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - reportedGameId_ = 0; - + copyOnWrite(); + instance.clearReportedGameId(); 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; - static { - defaultInstance = new ReportGameMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface ReportGameAckMessageOrBuilder extends @@ -48386,103 +47396,13 @@ public final class ProtoBuf { /** * Protobuf type {@code ReportGameAckMessage} */ - public static final class ReportGameAckMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class ReportGameAckMessage extends + com.google.protobuf.GeneratedMessageLite< + ReportGameAckMessage, ReportGameAckMessage.Builder> implements // @@protoc_insertion_point(message_implements:ReportGameAckMessage) ReportGameAckMessageOrBuilder { - // Use ReportGameAckMessage.newBuilder() to construct. - private ReportGameAckMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private ReportGameAckMessage() { } - private ReportGameAckMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final ReportGameAckMessage defaultInstance; - public static ReportGameAckMessage getDefaultInstance() { - return defaultInstance; - } - - public ReportGameAckMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private ReportGameAckMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000002; - reportGameResult_ = value; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ReportGameAckMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReportGameAckMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - /** * Protobuf enum {@code ReportGameAckMessage.ReportGameResult} */ @@ -48491,15 +47411,15 @@ public final class ProtoBuf { /** * gameReportAccepted = 0; */ - gameReportAccepted(0, 0), + gameReportAccepted(0), /** * gameReportDuplicate = 1; */ - gameReportDuplicate(1, 1), + gameReportDuplicate(1), /** * gameReportInvalid = 2; */ - gameReportInvalid(2, 2), + gameReportInvalid(2), ; /** @@ -48516,9 +47436,20 @@ public final class ProtoBuf { public static final int gameReportInvalid_VALUE = 2; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -48531,17 +47462,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + ReportGameResult> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public ReportGameResult findValueByNumber(int number) { - return ReportGameResult.valueOf(number); + return ReportGameResult.forNumber(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 index, int value) { + private ReportGameResult(int value) { this.value = value; } @@ -48554,332 +47500,397 @@ public final class ProtoBuf { /** * required uint32 reportedGameId = 1; */ + @java.lang.Override public boolean hasReportedGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int REPORTGAMERESULT_FIELD_NUMBER = 2; - private de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult reportGameResult_; + private int reportGameResult_; /** * required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; */ + @java.lang.Override public boolean hasReportGameResult() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult getReportGameResult() { - return reportGameResult_; + 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; } - - 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 true; - if (isInitialized == 0) return false; - - if (!hasReportedGameId()) { - memoizedIsInitialized = 0; - return false; + /** + * required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; + */ + private void setReportGameResult(de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult value) { + if (value == null) { + throw new NullPointerException(); } - if (!hasReportGameResult()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + bitField0_ |= 0x00000002; + reportGameResult_ = value.getNumber(); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, reportedGameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, reportGameResult_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, reportGameResult_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, reportedGameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, reportGameResult_.getNumber()); + .computeEnumSize(2, reportGameResult_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ReportGameAckMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code ReportGameAckMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.ReportGameAckMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.ReportGameAckMessage, Builder> implements // @@protoc_insertion_point(builder_implements:ReportGameAckMessage) de.pokerth.protocol.ProtoBuf.ReportGameAckMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.ReportGameAckMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.ReportGameAckMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int reportedGameId_ ; /** * required uint32 reportedGameId = 1; */ + @java.lang.Override public boolean hasReportedGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasReportedGameId(); } /** * required uint32 reportedGameId = 1; */ + @java.lang.Override public int getReportedGameId() { - return reportedGameId_; + return instance.getReportedGameId(); } /** * required uint32 reportedGameId = 1; */ public Builder setReportedGameId(int value) { - bitField0_ |= 0x00000001; - reportedGameId_ = value; - + copyOnWrite(); + instance.setReportedGameId(value); return this; } /** * required uint32 reportedGameId = 1; */ public Builder clearReportedGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - reportedGameId_ = 0; - + copyOnWrite(); + instance.clearReportedGameId(); return this; } - private de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult reportGameResult_ = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult.gameReportAccepted; /** * required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; */ + @java.lang.Override public boolean hasReportGameResult() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasReportGameResult(); } /** * required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult getReportGameResult() { - return reportGameResult_; + return instance.getReportGameResult(); } /** * required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; */ public Builder setReportGameResult(de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - reportGameResult_ = value; - + copyOnWrite(); + instance.setReportGameResult(value); return this; } /** * required .ReportGameAckMessage.ReportGameResult reportGameResult = 2; */ public Builder clearReportGameResult() { - bitField0_ = (bitField0_ & ~0x00000002); - reportGameResult_ = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.ReportGameResult.gameReportAccepted; - + copyOnWrite(); + instance.clearReportGameResult(); 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; - static { - defaultInstance = new ReportGameAckMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface ErrorMessageOrBuilder extends @@ -48898,169 +47909,84 @@ public final class ProtoBuf { /** * Protobuf type {@code ErrorMessage} */ - public static final class ErrorMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class ErrorMessage extends + com.google.protobuf.GeneratedMessageLite< + ErrorMessage, ErrorMessage.Builder> implements // @@protoc_insertion_point(message_implements:ErrorMessage) ErrorMessageOrBuilder { - // Use ErrorMessage.newBuilder() to construct. - private ErrorMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private ErrorMessage() { } - private ErrorMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final ErrorMessage defaultInstance; - public static ErrorMessage getDefaultInstance() { - return defaultInstance; - } - - public ErrorMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private ErrorMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - 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) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000001; - errorReason_ = value; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public ErrorMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ErrorMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - /** * Protobuf enum {@code ErrorMessage.ErrorReason} */ public enum ErrorReason implements com.google.protobuf.Internal.EnumLite { /** - * reserved = 0; + * custReserved = 0; */ - reserved(0, 0), + custReserved(0), /** * initVersionNotSupported = 1; */ - initVersionNotSupported(1, 1), + initVersionNotSupported(1), /** * initServerFull = 2; */ - initServerFull(2, 2), + initServerFull(2), /** * initAuthFailure = 3; */ - initAuthFailure(3, 3), + initAuthFailure(3), /** * initPlayerNameInUse = 4; */ - initPlayerNameInUse(4, 4), + initPlayerNameInUse(4), /** * initInvalidPlayerName = 5; */ - initInvalidPlayerName(5, 5), + initInvalidPlayerName(5), /** * initServerMaintenance = 6; */ - initServerMaintenance(6, 6), + initServerMaintenance(6), /** * initBlocked = 7; */ - initBlocked(7, 7), + initBlocked(7), /** * avatarTooLarge = 8; */ - avatarTooLarge(8, 8), + avatarTooLarge(8), /** * invalidPacket = 9; */ - invalidPacket(9, 9), + invalidPacket(9), /** * invalidState = 10; */ - invalidState(10, 10), + invalidState(10), /** * kickedFromServer = 11; */ - kickedFromServer(11, 11), + kickedFromServer(11), /** * bannedFromServer = 12; */ - bannedFromServer(12, 12), + bannedFromServer(12), /** * blockedByServer = 13; */ - blockedByServer(13, 13), + blockedByServer(13), /** * sessionTimeout = 14; */ - sessionTimeout(14, 14), + sessionTimeout(14), ; /** - * reserved = 0; + * custReserved = 0; */ - public static final int reserved_VALUE = 0; + public static final int custReserved_VALUE = 0; /** * initVersionNotSupported = 1; */ @@ -49119,11 +48045,22 @@ public final class ProtoBuf { public static final int sessionTimeout_VALUE = 14; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated public static ErrorReason valueOf(int value) { + return forNumber(value); + } + + public static ErrorReason forNumber(int value) { switch (value) { - case 0: return reserved; + case 0: return custReserved; case 1: return initVersionNotSupported; case 2: return initServerFull; case 3: return initAuthFailure; @@ -49146,17 +48083,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + ErrorReason> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public ErrorReason findValueByNumber(int number) { - return ErrorReason.valueOf(number); + return ErrorReason.forNumber(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 index, int value) { + private ErrorReason(int value) { this.value = value; } @@ -49165,264 +48117,321 @@ public final class ProtoBuf { private int bitField0_; public static final int ERRORREASON_FIELD_NUMBER = 1; - private de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason errorReason_; + private int errorReason_; /** * required .ErrorMessage.ErrorReason errorReason = 1; */ + @java.lang.Override public boolean hasErrorReason() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .ErrorMessage.ErrorReason errorReason = 1; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason getErrorReason() { - return errorReason_; + 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; } - - private void initFields() { - errorReason_ = de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason.reserved; - } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasErrorReason()) { - memoizedIsInitialized = 0; - return false; + /** + * required .ErrorMessage.ErrorReason errorReason = 1; + */ + private void setErrorReason(de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason value) { + if (value == null) { + throw new NullPointerException(); } - memoizedIsInitialized = 1; - return true; + bitField0_ |= 0x00000001; + errorReason_ = value.getNumber(); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, errorReason_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, errorReason_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, errorReason_.getNumber()); + .computeEnumSize(1, errorReason_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.ErrorMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.ErrorMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code ErrorMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.ErrorMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.ErrorMessage, Builder> implements // @@protoc_insertion_point(builder_implements:ErrorMessage) de.pokerth.protocol.ProtoBuf.ErrorMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.ErrorMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - private void maybeForceBuilderInitialization() { - } - private static Builder create() { - return new Builder(); - } - public Builder clear() { - super.clear(); - errorReason_ = de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason.reserved; - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.ErrorMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.ErrorMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason errorReason_ = de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason.reserved; /** * required .ErrorMessage.ErrorReason errorReason = 1; */ + @java.lang.Override public boolean hasErrorReason() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasErrorReason(); } /** * required .ErrorMessage.ErrorReason errorReason = 1; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason getErrorReason() { - return errorReason_; + return instance.getErrorReason(); } /** * required .ErrorMessage.ErrorReason errorReason = 1; */ public Builder setErrorReason(de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - errorReason_ = value; - + copyOnWrite(); + instance.setErrorReason(value); return this; } /** * required .ErrorMessage.ErrorReason errorReason = 1; */ public Builder clearErrorReason() { - bitField0_ = (bitField0_ & ~0x00000001); - errorReason_ = de.pokerth.protocol.ProtoBuf.ErrorMessage.ErrorReason.reserved; - + copyOnWrite(); + instance.clearErrorReason(); 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; - static { - defaultInstance = new ErrorMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface AdminRemoveGameMessageOrBuilder extends @@ -49441,348 +48450,321 @@ public final class ProtoBuf { /** * Protobuf type {@code AdminRemoveGameMessage} */ - public static final class AdminRemoveGameMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class AdminRemoveGameMessage extends + com.google.protobuf.GeneratedMessageLite< + AdminRemoveGameMessage, AdminRemoveGameMessage.Builder> implements // @@protoc_insertion_point(message_implements:AdminRemoveGameMessage) AdminRemoveGameMessageOrBuilder { - // Use AdminRemoveGameMessage.newBuilder() to construct. - private AdminRemoveGameMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private AdminRemoveGameMessage() { } - private AdminRemoveGameMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final AdminRemoveGameMessage defaultInstance; - public static AdminRemoveGameMessage getDefaultInstance() { - return defaultInstance; - } - - public AdminRemoveGameMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private AdminRemoveGameMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - removeGameId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AdminRemoveGameMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AdminRemoveGameMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int REMOVEGAMEID_FIELD_NUMBER = 1; private int removeGameId_; /** * required uint32 removeGameId = 1; */ + @java.lang.Override public boolean hasRemoveGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required uint32 removeGameId = 1; */ + @java.lang.Override public int getRemoveGameId() { return removeGameId_; } - - private void initFields() { + /** + * 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; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasRemoveGameId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, removeGameId_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, removeGameId_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code AdminRemoveGameMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage, Builder> implements // @@protoc_insertion_point(builder_implements:AdminRemoveGameMessage) de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int removeGameId_ ; /** * required uint32 removeGameId = 1; */ + @java.lang.Override public boolean hasRemoveGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasRemoveGameId(); } /** * required uint32 removeGameId = 1; */ + @java.lang.Override public int getRemoveGameId() { - return removeGameId_; + return instance.getRemoveGameId(); } /** * required uint32 removeGameId = 1; */ public Builder setRemoveGameId(int value) { - bitField0_ |= 0x00000001; - removeGameId_ = value; - + copyOnWrite(); + instance.setRemoveGameId(value); return this; } /** * required uint32 removeGameId = 1; */ public Builder clearRemoveGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - removeGameId_ = 0; - + copyOnWrite(); + instance.clearRemoveGameId(); 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; - static { - defaultInstance = new AdminRemoveGameMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface AdminRemoveGameAckMessageOrBuilder extends @@ -49810,103 +48792,13 @@ public final class ProtoBuf { /** * Protobuf type {@code AdminRemoveGameAckMessage} */ - public static final class AdminRemoveGameAckMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class AdminRemoveGameAckMessage extends + com.google.protobuf.GeneratedMessageLite< + AdminRemoveGameAckMessage, AdminRemoveGameAckMessage.Builder> implements // @@protoc_insertion_point(message_implements:AdminRemoveGameAckMessage) AdminRemoveGameAckMessageOrBuilder { - // Use AdminRemoveGameAckMessage.newBuilder() to construct. - private AdminRemoveGameAckMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private AdminRemoveGameAckMessage() { } - private AdminRemoveGameAckMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final AdminRemoveGameAckMessage defaultInstance; - public static AdminRemoveGameAckMessage getDefaultInstance() { - return defaultInstance; - } - - public AdminRemoveGameAckMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private AdminRemoveGameAckMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000002; - removeGameResult_ = value; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AdminRemoveGameAckMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AdminRemoveGameAckMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - /** * Protobuf enum {@code AdminRemoveGameAckMessage.AdminRemoveGameResult} */ @@ -49915,11 +48807,11 @@ public final class ProtoBuf { /** * gameRemoveAccepted = 0; */ - gameRemoveAccepted(0, 0), + gameRemoveAccepted(0), /** * gameRemoveInvalid = 1; */ - gameRemoveInvalid(1, 1), + gameRemoveInvalid(1), ; /** @@ -49932,9 +48824,20 @@ public final class ProtoBuf { public static final int gameRemoveInvalid_VALUE = 1; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -49946,17 +48849,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + AdminRemoveGameResult> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public AdminRemoveGameResult findValueByNumber(int number) { - return AdminRemoveGameResult.valueOf(number); + return AdminRemoveGameResult.forNumber(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 index, int value) { + private AdminRemoveGameResult(int value) { this.value = value; } @@ -49969,332 +48887,397 @@ public final class ProtoBuf { /** * required uint32 removeGameId = 1; */ + @java.lang.Override public boolean hasRemoveGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int REMOVEGAMERESULT_FIELD_NUMBER = 2; - private de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult_; + private int removeGameResult_; /** * required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; */ + @java.lang.Override public boolean hasRemoveGameResult() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult getRemoveGameResult() { - return removeGameResult_; + 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; } - - 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 true; - if (isInitialized == 0) return false; - - if (!hasRemoveGameId()) { - memoizedIsInitialized = 0; - return false; + /** + * required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; + */ + private void setRemoveGameResult(de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult value) { + if (value == null) { + throw new NullPointerException(); } - if (!hasRemoveGameResult()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + bitField0_ |= 0x00000002; + removeGameResult_ = value.getNumber(); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, removeGameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, removeGameResult_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, removeGameResult_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, removeGameId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, removeGameResult_.getNumber()); + .computeEnumSize(2, removeGameResult_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code AdminRemoveGameAckMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage, Builder> implements // @@protoc_insertion_point(builder_implements:AdminRemoveGameAckMessage) de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int removeGameId_ ; /** * required uint32 removeGameId = 1; */ + @java.lang.Override public boolean hasRemoveGameId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasRemoveGameId(); } /** * required uint32 removeGameId = 1; */ + @java.lang.Override public int getRemoveGameId() { - return removeGameId_; + return instance.getRemoveGameId(); } /** * required uint32 removeGameId = 1; */ public Builder setRemoveGameId(int value) { - bitField0_ |= 0x00000001; - removeGameId_ = value; - + copyOnWrite(); + instance.setRemoveGameId(value); return this; } /** * required uint32 removeGameId = 1; */ public Builder clearRemoveGameId() { - bitField0_ = (bitField0_ & ~0x00000001); - removeGameId_ = 0; - + copyOnWrite(); + instance.clearRemoveGameId(); return this; } - private de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult_ = de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult.gameRemoveAccepted; /** * required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; */ + @java.lang.Override public boolean hasRemoveGameResult() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasRemoveGameResult(); } /** * required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult getRemoveGameResult() { - return removeGameResult_; + return instance.getRemoveGameResult(); } /** * required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; */ public Builder setRemoveGameResult(de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - removeGameResult_ = value; - + copyOnWrite(); + instance.setRemoveGameResult(value); return this; } /** * required .AdminRemoveGameAckMessage.AdminRemoveGameResult removeGameResult = 2; */ public Builder clearRemoveGameResult() { - bitField0_ = (bitField0_ & ~0x00000002); - removeGameResult_ = de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.AdminRemoveGameResult.gameRemoveAccepted; - + copyOnWrite(); + instance.clearRemoveGameResult(); 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; - static { - defaultInstance = new AdminRemoveGameAckMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface AdminBanPlayerMessageOrBuilder extends @@ -50313,348 +49296,321 @@ public final class ProtoBuf { /** * Protobuf type {@code AdminBanPlayerMessage} */ - public static final class AdminBanPlayerMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class AdminBanPlayerMessage extends + com.google.protobuf.GeneratedMessageLite< + AdminBanPlayerMessage, AdminBanPlayerMessage.Builder> implements // @@protoc_insertion_point(message_implements:AdminBanPlayerMessage) AdminBanPlayerMessageOrBuilder { - // Use AdminBanPlayerMessage.newBuilder() to construct. - private AdminBanPlayerMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private AdminBanPlayerMessage() { } - private AdminBanPlayerMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final AdminBanPlayerMessage defaultInstance; - public static AdminBanPlayerMessage getDefaultInstance() { - return defaultInstance; - } - - public AdminBanPlayerMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private AdminBanPlayerMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - break; - } - case 8: { - bitField0_ |= 0x00000001; - banPlayerId_ = input.readUInt32(); - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AdminBanPlayerMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AdminBanPlayerMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - private int bitField0_; public static final int BANPLAYERID_FIELD_NUMBER = 1; private int banPlayerId_; /** * required uint32 banPlayerId = 1; */ + @java.lang.Override public boolean hasBanPlayerId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required uint32 banPlayerId = 1; */ + @java.lang.Override public int getBanPlayerId() { return banPlayerId_; } - - private void initFields() { + /** + * 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; } - private byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasBanPlayerId()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, banPlayerId_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, banPlayerId_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code AdminBanPlayerMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage, Builder> implements // @@protoc_insertion_point(builder_implements:AdminBanPlayerMessage) de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int banPlayerId_ ; /** * required uint32 banPlayerId = 1; */ + @java.lang.Override public boolean hasBanPlayerId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasBanPlayerId(); } /** * required uint32 banPlayerId = 1; */ + @java.lang.Override public int getBanPlayerId() { - return banPlayerId_; + return instance.getBanPlayerId(); } /** * required uint32 banPlayerId = 1; */ public Builder setBanPlayerId(int value) { - bitField0_ |= 0x00000001; - banPlayerId_ = value; - + copyOnWrite(); + instance.setBanPlayerId(value); return this; } /** * required uint32 banPlayerId = 1; */ public Builder clearBanPlayerId() { - bitField0_ = (bitField0_ & ~0x00000001); - banPlayerId_ = 0; - + copyOnWrite(); + instance.clearBanPlayerId(); 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; - static { - defaultInstance = new AdminBanPlayerMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface AdminBanPlayerAckMessageOrBuilder extends @@ -50682,103 +49638,13 @@ public final class ProtoBuf { /** * Protobuf type {@code AdminBanPlayerAckMessage} */ - public static final class AdminBanPlayerAckMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class AdminBanPlayerAckMessage extends + com.google.protobuf.GeneratedMessageLite< + AdminBanPlayerAckMessage, AdminBanPlayerAckMessage.Builder> implements // @@protoc_insertion_point(message_implements:AdminBanPlayerAckMessage) AdminBanPlayerAckMessageOrBuilder { - // Use AdminBanPlayerAckMessage.newBuilder() to construct. - private AdminBanPlayerAckMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private AdminBanPlayerAckMessage() { } - private AdminBanPlayerAckMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final AdminBanPlayerAckMessage defaultInstance; - public static AdminBanPlayerAckMessage getDefaultInstance() { - return defaultInstance; - } - - public AdminBanPlayerAckMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private AdminBanPlayerAckMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - 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.valueOf(rawValue); - if (value == null) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000002; - banPlayerResult_ = value; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public AdminBanPlayerAckMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AdminBanPlayerAckMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - /** * Protobuf enum {@code AdminBanPlayerAckMessage.AdminBanPlayerResult} */ @@ -50787,23 +49653,23 @@ public final class ProtoBuf { /** * banPlayerAccepted = 0; */ - banPlayerAccepted(0, 0), + banPlayerAccepted(0), /** * banPlayerPending = 1; */ - banPlayerPending(1, 1), + banPlayerPending(1), /** * banPlayerNoDB = 2; */ - banPlayerNoDB(2, 2), + banPlayerNoDB(2), /** * banPlayerDBError = 3; */ - banPlayerDBError(3, 3), + banPlayerDBError(3), /** * banPlayerInvalid = 4; */ - banPlayerInvalid(4, 4), + banPlayerInvalid(4), ; /** @@ -50828,9 +49694,20 @@ public final class ProtoBuf { public static final int banPlayerInvalid_VALUE = 4; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -50845,17 +49722,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + AdminBanPlayerResult> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public AdminBanPlayerResult findValueByNumber(int number) { - return AdminBanPlayerResult.valueOf(number); + return AdminBanPlayerResult.forNumber(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 index, int value) { + private AdminBanPlayerResult(int value) { this.value = value; } @@ -50868,332 +49760,397 @@ public final class ProtoBuf { /** * required uint32 banPlayerId = 1; */ + @java.lang.Override public boolean hasBanPlayerId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * 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; + } public static final int BANPLAYERRESULT_FIELD_NUMBER = 2; - private de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult_; + private int banPlayerResult_; /** * required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; */ + @java.lang.Override public boolean hasBanPlayerResult() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult getBanPlayerResult() { - return banPlayerResult_; + 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; } - - 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 true; - if (isInitialized == 0) return false; - - if (!hasBanPlayerId()) { - memoizedIsInitialized = 0; - return false; + /** + * required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; + */ + private void setBanPlayerResult(de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult value) { + if (value == null) { + throw new NullPointerException(); } - if (!hasBanPlayerResult()) { - memoizedIsInitialized = 0; - return false; - } - memoizedIsInitialized = 1; - return true; + bitField0_ |= 0x00000002; + banPlayerResult_ = value.getNumber(); + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, banPlayerId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeEnum(2, banPlayerResult_.getNumber()); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, banPlayerResult_); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, banPlayerId_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, banPlayerResult_.getNumber()); + .computeEnumSize(2, banPlayerResult_); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code AdminBanPlayerAckMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage, Builder> implements // @@protoc_insertion_point(builder_implements:AdminBanPlayerAckMessage) de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - 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; - } - - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int banPlayerId_ ; /** * required uint32 banPlayerId = 1; */ + @java.lang.Override public boolean hasBanPlayerId() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasBanPlayerId(); } /** * required uint32 banPlayerId = 1; */ + @java.lang.Override public int getBanPlayerId() { - return banPlayerId_; + return instance.getBanPlayerId(); } /** * required uint32 banPlayerId = 1; */ public Builder setBanPlayerId(int value) { - bitField0_ |= 0x00000001; - banPlayerId_ = value; - + copyOnWrite(); + instance.setBanPlayerId(value); return this; } /** * required uint32 banPlayerId = 1; */ public Builder clearBanPlayerId() { - bitField0_ = (bitField0_ & ~0x00000001); - banPlayerId_ = 0; - + copyOnWrite(); + instance.clearBanPlayerId(); return this; } - private de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult_ = de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult.banPlayerAccepted; /** * required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; */ + @java.lang.Override public boolean hasBanPlayerResult() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasBanPlayerResult(); } /** * required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult getBanPlayerResult() { - return banPlayerResult_; + return instance.getBanPlayerResult(); } /** * required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; */ public Builder setBanPlayerResult(de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - banPlayerResult_ = value; - + copyOnWrite(); + instance.setBanPlayerResult(value); return this; } /** * required .AdminBanPlayerAckMessage.AdminBanPlayerResult banPlayerResult = 2; */ public Builder clearBanPlayerResult() { - bitField0_ = (bitField0_ & ~0x00000002); - banPlayerResult_ = de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.AdminBanPlayerResult.banPlayerAccepted; - + copyOnWrite(); + instance.clearBanPlayerResult(); 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; - static { - defaultInstance = new AdminBanPlayerAckMessage(true); - defaultInstance.initFields(); + 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(); + } } public interface PokerTHMessageOrBuilder extends @@ -51941,1153 +50898,14 @@ public final class ProtoBuf { /** * Protobuf type {@code PokerTHMessage} */ - public static final class PokerTHMessage extends - com.google.protobuf.GeneratedMessageLite implements + public static final class PokerTHMessage extends + com.google.protobuf.GeneratedMessageLite< + PokerTHMessage, PokerTHMessage.Builder> implements // @@protoc_insertion_point(message_implements:PokerTHMessage) PokerTHMessageOrBuilder { - // Use PokerTHMessage.newBuilder() to construct. - private PokerTHMessage(com.google.protobuf.GeneratedMessageLite.Builder builder) { - super(builder); - this.unknownFields = builder.getUnknownFields(); + private PokerTHMessage() { + messageType_ = 1; } - private PokerTHMessage(boolean noInit) { this.unknownFields = com.google.protobuf.ByteString.EMPTY;} - - private static final PokerTHMessage defaultInstance; - public static PokerTHMessage getDefaultInstance() { - return defaultInstance; - } - - public PokerTHMessage getDefaultInstanceForType() { - return defaultInstance; - } - - private final com.google.protobuf.ByteString unknownFields; - private PokerTHMessage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - initFields(); - int mutable_bitField0_ = 0; - int mutable_bitField1_ = 0; - int mutable_bitField2_ = 0; - com.google.protobuf.ByteString.Output unknownFieldsOutput = - com.google.protobuf.ByteString.newOutput(); - com.google.protobuf.CodedOutputStream unknownFieldsCodedOutput = - com.google.protobuf.CodedOutputStream.newInstance( - unknownFieldsOutput); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField(input, unknownFieldsCodedOutput, - extensionRegistry, tag)) { - done = true; - } - 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) { - unknownFieldsCodedOutput.writeRawVarint32(tag); - unknownFieldsCodedOutput.writeRawVarint32(rawValue); - } else { - bitField0_ |= 0x00000001; - messageType_ = value; - } - break; - } - case 18: { - de.pokerth.protocol.ProtoBuf.AnnounceMessage.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - 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) == 0x00000004)) { - 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) == 0x00000008)) { - 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) == 0x00000010)) { - 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) == 0x00000020)) { - 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) == 0x00000040)) { - 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) == 0x00000080)) { - 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) == 0x00000100)) { - 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) == 0x00000200)) { - 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) == 0x00000400)) { - 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) == 0x00000800)) { - 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) == 0x00001000)) { - 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) == 0x00002000)) { - 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) == 0x00004000)) { - 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) == 0x00008000)) { - 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) == 0x00010000)) { - 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) == 0x00020000)) { - 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) == 0x00040000)) { - 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) == 0x00080000)) { - 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) == 0x00100000)) { - 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) == 0x00200000)) { - 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) == 0x00400000)) { - 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) == 0x00800000)) { - 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) == 0x01000000)) { - 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) == 0x02000000)) { - 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) == 0x04000000)) { - 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) == 0x08000000)) { - 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) == 0x10000000)) { - 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) == 0x20000000)) { - 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) == 0x40000000)) { - 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) == 0x80000000)) { - 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) == 0x00000001)) { - 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) == 0x00000002)) { - 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) == 0x00000004)) { - 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) == 0x00000008)) { - 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) == 0x00000010)) { - 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) == 0x00000020)) { - 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) == 0x00000040)) { - 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) == 0x00000080)) { - 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) == 0x00000100)) { - 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) == 0x00000200)) { - 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) == 0x00000400)) { - 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) == 0x00000800)) { - 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) == 0x00001000)) { - 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) == 0x00002000)) { - 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) == 0x00004000)) { - 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) == 0x00008000)) { - 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) == 0x00010000)) { - 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) == 0x00020000)) { - 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) == 0x00040000)) { - 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) == 0x00080000)) { - 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) == 0x00100000)) { - 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) == 0x00200000)) { - 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) == 0x00400000)) { - 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) == 0x00800000)) { - 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) == 0x01000000)) { - 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) == 0x02000000)) { - 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) == 0x04000000)) { - 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) == 0x08000000)) { - 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) == 0x10000000)) { - 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) == 0x20000000)) { - 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) == 0x40000000)) { - 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) == 0x80000000)) { - 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) == 0x00000001)) { - 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) == 0x00000002)) { - 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) == 0x00000004)) { - 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) == 0x00000008)) { - 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) == 0x00000010)) { - 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) == 0x00000020)) { - 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) == 0x00000040)) { - 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) == 0x00000080)) { - 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) == 0x00000100)) { - 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) == 0x00000200)) { - 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) == 0x00000400)) { - 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) == 0x00000800)) { - 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) == 0x00001000)) { - 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) == 0x00002000)) { - 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) == 0x00004000)) { - 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) == 0x00008000)) { - 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) == 0x00010000)) { - 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) == 0x00020000)) { - 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; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e.getMessage()).setUnfinishedMessage(this); - } finally { - try { - unknownFieldsCodedOutput.flush(); - } catch (java.io.IOException e) { - // Should not happen - } finally { - unknownFields = unknownFieldsOutput.toByteString(); - } - makeExtensionsImmutable(); - } - } - public static com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - public PokerTHMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PokerTHMessage(input, extensionRegistry); - } - }; - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - /** * Protobuf enum {@code PokerTHMessage.PokerTHMessageType} */ @@ -53096,327 +50914,327 @@ public final class ProtoBuf { /** * Type_AnnounceMessage = 1; */ - Type_AnnounceMessage(0, 1), + Type_AnnounceMessage(1), /** * Type_InitMessage = 2; */ - Type_InitMessage(1, 2), + Type_InitMessage(2), /** * Type_AuthServerChallengeMessage = 3; */ - Type_AuthServerChallengeMessage(2, 3), + Type_AuthServerChallengeMessage(3), /** * Type_AuthClientResponseMessage = 4; */ - Type_AuthClientResponseMessage(3, 4), + Type_AuthClientResponseMessage(4), /** * Type_AuthServerVerificationMessage = 5; */ - Type_AuthServerVerificationMessage(4, 5), + Type_AuthServerVerificationMessage(5), /** * Type_InitAckMessage = 6; */ - Type_InitAckMessage(5, 6), + Type_InitAckMessage(6), /** * Type_AvatarRequestMessage = 7; */ - Type_AvatarRequestMessage(6, 7), + Type_AvatarRequestMessage(7), /** * Type_AvatarHeaderMessage = 8; */ - Type_AvatarHeaderMessage(7, 8), + Type_AvatarHeaderMessage(8), /** * Type_AvatarDataMessage = 9; */ - Type_AvatarDataMessage(8, 9), + Type_AvatarDataMessage(9), /** * Type_AvatarEndMessage = 10; */ - Type_AvatarEndMessage(9, 10), + Type_AvatarEndMessage(10), /** * Type_UnknownAvatarMessage = 11; */ - Type_UnknownAvatarMessage(10, 11), + Type_UnknownAvatarMessage(11), /** * Type_PlayerListMessage = 12; */ - Type_PlayerListMessage(11, 12), + Type_PlayerListMessage(12), /** * Type_GameListNewMessage = 13; */ - Type_GameListNewMessage(12, 13), + Type_GameListNewMessage(13), /** * Type_GameListUpdateMessage = 14; */ - Type_GameListUpdateMessage(13, 14), + Type_GameListUpdateMessage(14), /** * Type_GameListPlayerJoinedMessage = 15; */ - Type_GameListPlayerJoinedMessage(14, 15), + Type_GameListPlayerJoinedMessage(15), /** * Type_GameListPlayerLeftMessage = 16; */ - Type_GameListPlayerLeftMessage(15, 16), + Type_GameListPlayerLeftMessage(16), /** * Type_GameListAdminChangedMessage = 17; */ - Type_GameListAdminChangedMessage(16, 17), + Type_GameListAdminChangedMessage(17), /** * Type_PlayerInfoRequestMessage = 18; */ - Type_PlayerInfoRequestMessage(17, 18), + Type_PlayerInfoRequestMessage(18), /** * Type_PlayerInfoReplyMessage = 19; */ - Type_PlayerInfoReplyMessage(18, 19), + Type_PlayerInfoReplyMessage(19), /** * Type_SubscriptionRequestMessage = 20; */ - Type_SubscriptionRequestMessage(19, 20), + Type_SubscriptionRequestMessage(20), /** * Type_JoinExistingGameMessage = 21; */ - Type_JoinExistingGameMessage(20, 21), + Type_JoinExistingGameMessage(21), /** * Type_JoinNewGameMessage = 22; */ - Type_JoinNewGameMessage(21, 22), + Type_JoinNewGameMessage(22), /** * Type_RejoinExistingGameMessage = 23; */ - Type_RejoinExistingGameMessage(22, 23), + Type_RejoinExistingGameMessage(23), /** * Type_JoinGameAckMessage = 24; */ - Type_JoinGameAckMessage(23, 24), + Type_JoinGameAckMessage(24), /** * Type_JoinGameFailedMessage = 25; */ - Type_JoinGameFailedMessage(24, 25), + Type_JoinGameFailedMessage(25), /** * Type_GamePlayerJoinedMessage = 26; */ - Type_GamePlayerJoinedMessage(25, 26), + Type_GamePlayerJoinedMessage(26), /** * Type_GamePlayerLeftMessage = 27; */ - Type_GamePlayerLeftMessage(26, 27), + Type_GamePlayerLeftMessage(27), /** * Type_GameAdminChangedMessage = 28; */ - Type_GameAdminChangedMessage(27, 28), + Type_GameAdminChangedMessage(28), /** * Type_RemovedFromGameMessage = 29; */ - Type_RemovedFromGameMessage(28, 29), + Type_RemovedFromGameMessage(29), /** * Type_KickPlayerRequestMessage = 30; */ - Type_KickPlayerRequestMessage(29, 30), + Type_KickPlayerRequestMessage(30), /** * Type_LeaveGameRequestMessage = 31; */ - Type_LeaveGameRequestMessage(30, 31), + Type_LeaveGameRequestMessage(31), /** * Type_InvitePlayerToGameMessage = 32; */ - Type_InvitePlayerToGameMessage(31, 32), + Type_InvitePlayerToGameMessage(32), /** * Type_InviteNotifyMessage = 33; */ - Type_InviteNotifyMessage(32, 33), + Type_InviteNotifyMessage(33), /** * Type_RejectGameInvitationMessage = 34; */ - Type_RejectGameInvitationMessage(33, 34), + Type_RejectGameInvitationMessage(34), /** * Type_RejectInvNotifyMessage = 35; */ - Type_RejectInvNotifyMessage(34, 35), + Type_RejectInvNotifyMessage(35), /** * Type_StartEventMessage = 36; */ - Type_StartEventMessage(35, 36), + Type_StartEventMessage(36), /** * Type_StartEventAckMessage = 37; */ - Type_StartEventAckMessage(36, 37), + Type_StartEventAckMessage(37), /** * Type_GameStartInitialMessage = 38; */ - Type_GameStartInitialMessage(37, 38), + Type_GameStartInitialMessage(38), /** * Type_GameStartRejoinMessage = 39; */ - Type_GameStartRejoinMessage(38, 39), + Type_GameStartRejoinMessage(39), /** * Type_HandStartMessage = 40; */ - Type_HandStartMessage(39, 40), + Type_HandStartMessage(40), /** * Type_PlayersTurnMessage = 41; */ - Type_PlayersTurnMessage(40, 41), + Type_PlayersTurnMessage(41), /** * Type_MyActionRequestMessage = 42; */ - Type_MyActionRequestMessage(41, 42), + Type_MyActionRequestMessage(42), /** * Type_YourActionRejectedMessage = 43; */ - Type_YourActionRejectedMessage(42, 43), + Type_YourActionRejectedMessage(43), /** * Type_PlayersActionDoneMessage = 44; */ - Type_PlayersActionDoneMessage(43, 44), + Type_PlayersActionDoneMessage(44), /** * Type_DealFlopCardsMessage = 45; */ - Type_DealFlopCardsMessage(44, 45), + Type_DealFlopCardsMessage(45), /** * Type_DealTurnCardMessage = 46; */ - Type_DealTurnCardMessage(45, 46), + Type_DealTurnCardMessage(46), /** * Type_DealRiverCardMessage = 47; */ - Type_DealRiverCardMessage(46, 47), + Type_DealRiverCardMessage(47), /** * Type_AllInShowCardsMessage = 48; */ - Type_AllInShowCardsMessage(47, 48), + Type_AllInShowCardsMessage(48), /** * Type_EndOfHandShowCardsMessage = 49; */ - Type_EndOfHandShowCardsMessage(48, 49), + Type_EndOfHandShowCardsMessage(49), /** * Type_EndOfHandHideCardsMessage = 50; */ - Type_EndOfHandHideCardsMessage(49, 50), + Type_EndOfHandHideCardsMessage(50), /** * Type_ShowMyCardsRequestMessage = 51; */ - Type_ShowMyCardsRequestMessage(50, 51), + Type_ShowMyCardsRequestMessage(51), /** * Type_AfterHandShowCardsMessage = 52; */ - Type_AfterHandShowCardsMessage(51, 52), + Type_AfterHandShowCardsMessage(52), /** * Type_EndOfGameMessage = 53; */ - Type_EndOfGameMessage(52, 53), + Type_EndOfGameMessage(53), /** * Type_PlayerIdChangedMessage = 54; */ - Type_PlayerIdChangedMessage(53, 54), + Type_PlayerIdChangedMessage(54), /** * Type_AskKickPlayerMessage = 55; */ - Type_AskKickPlayerMessage(54, 55), + Type_AskKickPlayerMessage(55), /** * Type_AskKickDeniedMessage = 56; */ - Type_AskKickDeniedMessage(55, 56), + Type_AskKickDeniedMessage(56), /** * Type_StartKickPetitionMessage = 57; */ - Type_StartKickPetitionMessage(56, 57), + Type_StartKickPetitionMessage(57), /** * Type_VoteKickRequestMessage = 58; */ - Type_VoteKickRequestMessage(57, 58), + Type_VoteKickRequestMessage(58), /** * Type_VoteKickReplyMessage = 59; */ - Type_VoteKickReplyMessage(58, 59), + Type_VoteKickReplyMessage(59), /** * Type_KickPetitionUpdateMessage = 60; */ - Type_KickPetitionUpdateMessage(59, 60), + Type_KickPetitionUpdateMessage(60), /** * Type_EndKickPetitionMessage = 61; */ - Type_EndKickPetitionMessage(60, 61), + Type_EndKickPetitionMessage(61), /** * Type_StatisticsMessage = 62; */ - Type_StatisticsMessage(61, 62), + Type_StatisticsMessage(62), /** * Type_ChatRequestMessage = 63; */ - Type_ChatRequestMessage(62, 63), + Type_ChatRequestMessage(63), /** * Type_ChatMessage = 64; */ - Type_ChatMessage(63, 64), + Type_ChatMessage(64), /** * Type_ChatRejectMessage = 65; */ - Type_ChatRejectMessage(64, 65), + Type_ChatRejectMessage(65), /** * Type_DialogMessage = 66; */ - Type_DialogMessage(65, 66), + Type_DialogMessage(66), /** * Type_TimeoutWarningMessage = 67; */ - Type_TimeoutWarningMessage(66, 67), + Type_TimeoutWarningMessage(67), /** * Type_ResetTimeoutMessage = 68; */ - Type_ResetTimeoutMessage(67, 68), + Type_ResetTimeoutMessage(68), /** * Type_ReportAvatarMessage = 69; */ - Type_ReportAvatarMessage(68, 69), + Type_ReportAvatarMessage(69), /** * Type_ReportAvatarAckMessage = 70; */ - Type_ReportAvatarAckMessage(69, 70), + Type_ReportAvatarAckMessage(70), /** * Type_ReportGameMessage = 71; */ - Type_ReportGameMessage(70, 71), + Type_ReportGameMessage(71), /** * Type_ReportGameAckMessage = 72; */ - Type_ReportGameAckMessage(71, 72), + Type_ReportGameAckMessage(72), /** * Type_ErrorMessage = 73; */ - Type_ErrorMessage(72, 73), + Type_ErrorMessage(73), /** * Type_AdminRemoveGameMessage = 74; */ - Type_AdminRemoveGameMessage(73, 74), + Type_AdminRemoveGameMessage(74), /** * Type_AdminRemoveGameAckMessage = 75; */ - Type_AdminRemoveGameAckMessage(74, 75), + Type_AdminRemoveGameAckMessage(75), /** * Type_AdminBanPlayerMessage = 76; */ - Type_AdminBanPlayerMessage(75, 76), + Type_AdminBanPlayerMessage(76), /** * Type_AdminBanPlayerAckMessage = 77; */ - Type_AdminBanPlayerAckMessage(76, 77), + Type_AdminBanPlayerAckMessage(77), /** * Type_GameListSpectatorJoinedMessage = 78; */ - Type_GameListSpectatorJoinedMessage(77, 78), + Type_GameListSpectatorJoinedMessage(78), /** * Type_GameListSpectatorLeftMessage = 79; */ - Type_GameListSpectatorLeftMessage(78, 79), + Type_GameListSpectatorLeftMessage(79), /** * Type_GameSpectatorJoinedMessage = 80; */ - Type_GameSpectatorJoinedMessage(79, 80), + Type_GameSpectatorJoinedMessage(80), /** * Type_GameSpectatorLeftMessage = 81; */ - Type_GameSpectatorLeftMessage(80, 81), + Type_GameSpectatorLeftMessage(81), ; /** @@ -53745,9 +51563,20 @@ public final class ProtoBuf { public static final int Type_GameSpectatorLeftMessage_VALUE = 81; - public final int getNumber() { return value; } + @java.lang.Override + public final int getNumber() { + return value; + } + /** + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated 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; @@ -53838,17 +51667,32 @@ public final class ProtoBuf { internalGetValueMap() { return internalValueMap; } - private static com.google.protobuf.Internal.EnumLiteMap - internalValueMap = + private static final com.google.protobuf.Internal.EnumLiteMap< + PokerTHMessageType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { + @java.lang.Override public PokerTHMessageType findValueByNumber(int number) { - return PokerTHMessageType.valueOf(number); + return PokerTHMessageType.forNumber(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 index, int value) { + private PokerTHMessageType(int value) { this.value = value; } @@ -53859,18 +51703,38 @@ public final class ProtoBuf { private int bitField1_; private int bitField2_; public static final int MESSAGETYPE_FIELD_NUMBER = 1; - private de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType messageType_; + private int messageType_; /** * required .PokerTHMessage.PokerTHMessageType messageType = 1; */ + @java.lang.Override public boolean hasMessageType() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return ((bitField0_ & 0x00000001) != 0); } /** * required .PokerTHMessage.PokerTHMessageType messageType = 1; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType getMessageType() { - return messageType_; + 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; + } + /** + * 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; } public static final int ANNOUNCEMESSAGE_FIELD_NUMBER = 2; @@ -53878,14 +51742,57 @@ public final class ProtoBuf { /** * optional .AnnounceMessage announceMessage = 2; */ + @java.lang.Override public boolean hasAnnounceMessage() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return ((bitField0_ & 0x00000002) != 0); } /** * optional .AnnounceMessage announceMessage = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AnnounceMessage getAnnounceMessage() { - return announceMessage_; + return announceMessage_ == null ? de.pokerth.protocol.ProtoBuf.AnnounceMessage.getDefaultInstance() : 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); } public static final int INITMESSAGE_FIELD_NUMBER = 3; @@ -53893,14 +51800,57 @@ public final class ProtoBuf { /** * optional .InitMessage initMessage = 3; */ + @java.lang.Override public boolean hasInitMessage() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return ((bitField0_ & 0x00000004) != 0); } /** * optional .InitMessage initMessage = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.InitMessage getInitMessage() { - return initMessage_; + return initMessage_ == null ? de.pokerth.protocol.ProtoBuf.InitMessage.getDefaultInstance() : 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); } public static final int AUTHSERVERCHALLENGEMESSAGE_FIELD_NUMBER = 4; @@ -53908,14 +51858,57 @@ public final class ProtoBuf { /** * optional .AuthServerChallengeMessage authServerChallengeMessage = 4; */ + @java.lang.Override public boolean hasAuthServerChallengeMessage() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return ((bitField0_ & 0x00000008) != 0); } /** * optional .AuthServerChallengeMessage authServerChallengeMessage = 4; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage getAuthServerChallengeMessage() { - return authServerChallengeMessage_; + return authServerChallengeMessage_ == null ? de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.getDefaultInstance() : 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); } public static final int AUTHCLIENTRESPONSEMESSAGE_FIELD_NUMBER = 5; @@ -53923,14 +51916,57 @@ public final class ProtoBuf { /** * optional .AuthClientResponseMessage authClientResponseMessage = 5; */ + @java.lang.Override public boolean hasAuthClientResponseMessage() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return ((bitField0_ & 0x00000010) != 0); } /** * optional .AuthClientResponseMessage authClientResponseMessage = 5; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage getAuthClientResponseMessage() { - return authClientResponseMessage_; + return authClientResponseMessage_ == null ? de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.getDefaultInstance() : 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); } public static final int AUTHSERVERVERIFICATIONMESSAGE_FIELD_NUMBER = 6; @@ -53938,14 +51974,57 @@ public final class ProtoBuf { /** * optional .AuthServerVerificationMessage authServerVerificationMessage = 6; */ + @java.lang.Override public boolean hasAuthServerVerificationMessage() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return ((bitField0_ & 0x00000020) != 0); } /** * optional .AuthServerVerificationMessage authServerVerificationMessage = 6; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage getAuthServerVerificationMessage() { - return authServerVerificationMessage_; + return authServerVerificationMessage_ == null ? de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.getDefaultInstance() : 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); } public static final int INITACKMESSAGE_FIELD_NUMBER = 7; @@ -53953,14 +52032,57 @@ public final class ProtoBuf { /** * optional .InitAckMessage initAckMessage = 7; */ + @java.lang.Override public boolean hasInitAckMessage() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return ((bitField0_ & 0x00000040) != 0); } /** * optional .InitAckMessage initAckMessage = 7; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.InitAckMessage getInitAckMessage() { - return initAckMessage_; + return initAckMessage_ == null ? de.pokerth.protocol.ProtoBuf.InitAckMessage.getDefaultInstance() : 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); } public static final int AVATARREQUESTMESSAGE_FIELD_NUMBER = 8; @@ -53968,14 +52090,57 @@ public final class ProtoBuf { /** * optional .AvatarRequestMessage avatarRequestMessage = 8; */ + @java.lang.Override public boolean hasAvatarRequestMessage() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return ((bitField0_ & 0x00000080) != 0); } /** * optional .AvatarRequestMessage avatarRequestMessage = 8; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AvatarRequestMessage getAvatarRequestMessage() { - return avatarRequestMessage_; + return avatarRequestMessage_ == null ? de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.getDefaultInstance() : 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); } public static final int AVATARHEADERMESSAGE_FIELD_NUMBER = 9; @@ -53983,14 +52148,57 @@ public final class ProtoBuf { /** * optional .AvatarHeaderMessage avatarHeaderMessage = 9; */ + @java.lang.Override public boolean hasAvatarHeaderMessage() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return ((bitField0_ & 0x00000100) != 0); } /** * optional .AvatarHeaderMessage avatarHeaderMessage = 9; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage getAvatarHeaderMessage() { - return avatarHeaderMessage_; + return avatarHeaderMessage_ == null ? de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.getDefaultInstance() : 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); } public static final int AVATARDATAMESSAGE_FIELD_NUMBER = 10; @@ -53998,14 +52206,57 @@ public final class ProtoBuf { /** * optional .AvatarDataMessage avatarDataMessage = 10; */ + @java.lang.Override public boolean hasAvatarDataMessage() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return ((bitField0_ & 0x00000200) != 0); } /** * optional .AvatarDataMessage avatarDataMessage = 10; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AvatarDataMessage getAvatarDataMessage() { - return avatarDataMessage_; + return avatarDataMessage_ == null ? de.pokerth.protocol.ProtoBuf.AvatarDataMessage.getDefaultInstance() : 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); } public static final int AVATARENDMESSAGE_FIELD_NUMBER = 11; @@ -54013,14 +52264,57 @@ public final class ProtoBuf { /** * optional .AvatarEndMessage avatarEndMessage = 11; */ + @java.lang.Override public boolean hasAvatarEndMessage() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return ((bitField0_ & 0x00000400) != 0); } /** * optional .AvatarEndMessage avatarEndMessage = 11; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AvatarEndMessage getAvatarEndMessage() { - return avatarEndMessage_; + return avatarEndMessage_ == null ? de.pokerth.protocol.ProtoBuf.AvatarEndMessage.getDefaultInstance() : 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); } public static final int UNKNOWNAVATARMESSAGE_FIELD_NUMBER = 12; @@ -54028,14 +52322,57 @@ public final class ProtoBuf { /** * optional .UnknownAvatarMessage unknownAvatarMessage = 12; */ + @java.lang.Override public boolean hasUnknownAvatarMessage() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return ((bitField0_ & 0x00000800) != 0); } /** * optional .UnknownAvatarMessage unknownAvatarMessage = 12; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage getUnknownAvatarMessage() { - return unknownAvatarMessage_; + return unknownAvatarMessage_ == null ? de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.getDefaultInstance() : 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); } public static final int PLAYERLISTMESSAGE_FIELD_NUMBER = 13; @@ -54043,14 +52380,57 @@ public final class ProtoBuf { /** * optional .PlayerListMessage playerListMessage = 13; */ + @java.lang.Override public boolean hasPlayerListMessage() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return ((bitField0_ & 0x00001000) != 0); } /** * optional .PlayerListMessage playerListMessage = 13; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerListMessage getPlayerListMessage() { - return playerListMessage_; + return playerListMessage_ == null ? de.pokerth.protocol.ProtoBuf.PlayerListMessage.getDefaultInstance() : 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); } public static final int GAMELISTNEWMESSAGE_FIELD_NUMBER = 14; @@ -54058,14 +52438,57 @@ public final class ProtoBuf { /** * optional .GameListNewMessage gameListNewMessage = 14; */ + @java.lang.Override public boolean hasGameListNewMessage() { - return ((bitField0_ & 0x00002000) == 0x00002000); + return ((bitField0_ & 0x00002000) != 0); } /** * optional .GameListNewMessage gameListNewMessage = 14; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameListNewMessage getGameListNewMessage() { - return gameListNewMessage_; + return gameListNewMessage_ == null ? de.pokerth.protocol.ProtoBuf.GameListNewMessage.getDefaultInstance() : 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); } public static final int GAMELISTUPDATEMESSAGE_FIELD_NUMBER = 15; @@ -54073,14 +52496,57 @@ public final class ProtoBuf { /** * optional .GameListUpdateMessage gameListUpdateMessage = 15; */ + @java.lang.Override public boolean hasGameListUpdateMessage() { - return ((bitField0_ & 0x00004000) == 0x00004000); + return ((bitField0_ & 0x00004000) != 0); } /** * optional .GameListUpdateMessage gameListUpdateMessage = 15; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameListUpdateMessage getGameListUpdateMessage() { - return gameListUpdateMessage_; + return gameListUpdateMessage_ == null ? de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.getDefaultInstance() : 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); } public static final int GAMELISTPLAYERJOINEDMESSAGE_FIELD_NUMBER = 16; @@ -54088,14 +52554,57 @@ public final class ProtoBuf { /** * optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; */ + @java.lang.Override public boolean hasGameListPlayerJoinedMessage() { - return ((bitField0_ & 0x00008000) == 0x00008000); + return ((bitField0_ & 0x00008000) != 0); } /** * optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage getGameListPlayerJoinedMessage() { - return gameListPlayerJoinedMessage_; + return gameListPlayerJoinedMessage_ == null ? de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.getDefaultInstance() : 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); } public static final int GAMELISTPLAYERLEFTMESSAGE_FIELD_NUMBER = 17; @@ -54103,14 +52612,57 @@ public final class ProtoBuf { /** * optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; */ + @java.lang.Override public boolean hasGameListPlayerLeftMessage() { - return ((bitField0_ & 0x00010000) == 0x00010000); + return ((bitField0_ & 0x00010000) != 0); } /** * optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage getGameListPlayerLeftMessage() { - return gameListPlayerLeftMessage_; + return gameListPlayerLeftMessage_ == null ? de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.getDefaultInstance() : 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); } public static final int GAMELISTADMINCHANGEDMESSAGE_FIELD_NUMBER = 18; @@ -54118,14 +52670,57 @@ public final class ProtoBuf { /** * optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; */ + @java.lang.Override public boolean hasGameListAdminChangedMessage() { - return ((bitField0_ & 0x00020000) == 0x00020000); + return ((bitField0_ & 0x00020000) != 0); } /** * optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage getGameListAdminChangedMessage() { - return gameListAdminChangedMessage_; + return gameListAdminChangedMessage_ == null ? de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.getDefaultInstance() : 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); } public static final int PLAYERINFOREQUESTMESSAGE_FIELD_NUMBER = 19; @@ -54133,14 +52728,57 @@ public final class ProtoBuf { /** * optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; */ + @java.lang.Override public boolean hasPlayerInfoRequestMessage() { - return ((bitField0_ & 0x00040000) == 0x00040000); + return ((bitField0_ & 0x00040000) != 0); } /** * optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage getPlayerInfoRequestMessage() { - return playerInfoRequestMessage_; + return playerInfoRequestMessage_ == null ? de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.getDefaultInstance() : 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); } public static final int PLAYERINFOREPLYMESSAGE_FIELD_NUMBER = 20; @@ -54148,14 +52786,57 @@ public final class ProtoBuf { /** * optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; */ + @java.lang.Override public boolean hasPlayerInfoReplyMessage() { - return ((bitField0_ & 0x00080000) == 0x00080000); + return ((bitField0_ & 0x00080000) != 0); } /** * optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage getPlayerInfoReplyMessage() { - return playerInfoReplyMessage_; + return playerInfoReplyMessage_ == null ? de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.getDefaultInstance() : 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); } public static final int SUBSCRIPTIONREQUESTMESSAGE_FIELD_NUMBER = 21; @@ -54163,14 +52844,57 @@ public final class ProtoBuf { /** * optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; */ + @java.lang.Override public boolean hasSubscriptionRequestMessage() { - return ((bitField0_ & 0x00100000) == 0x00100000); + return ((bitField0_ & 0x00100000) != 0); } /** * optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage getSubscriptionRequestMessage() { - return subscriptionRequestMessage_; + return subscriptionRequestMessage_ == null ? de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.getDefaultInstance() : 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); } public static final int JOINEXISTINGGAMEMESSAGE_FIELD_NUMBER = 22; @@ -54178,14 +52902,57 @@ public final class ProtoBuf { /** * optional .JoinExistingGameMessage joinExistingGameMessage = 22; */ + @java.lang.Override public boolean hasJoinExistingGameMessage() { - return ((bitField0_ & 0x00200000) == 0x00200000); + return ((bitField0_ & 0x00200000) != 0); } /** * optional .JoinExistingGameMessage joinExistingGameMessage = 22; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage getJoinExistingGameMessage() { - return joinExistingGameMessage_; + return joinExistingGameMessage_ == null ? de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.getDefaultInstance() : 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); } public static final int JOINNEWGAMEMESSAGE_FIELD_NUMBER = 23; @@ -54193,14 +52960,57 @@ public final class ProtoBuf { /** * optional .JoinNewGameMessage joinNewGameMessage = 23; */ + @java.lang.Override public boolean hasJoinNewGameMessage() { - return ((bitField0_ & 0x00400000) == 0x00400000); + return ((bitField0_ & 0x00400000) != 0); } /** * optional .JoinNewGameMessage joinNewGameMessage = 23; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.JoinNewGameMessage getJoinNewGameMessage() { - return joinNewGameMessage_; + return joinNewGameMessage_ == null ? de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.getDefaultInstance() : 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); } public static final int REJOINEXISTINGGAMEMESSAGE_FIELD_NUMBER = 24; @@ -54208,14 +53018,57 @@ public final class ProtoBuf { /** * optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; */ + @java.lang.Override public boolean hasRejoinExistingGameMessage() { - return ((bitField0_ & 0x00800000) == 0x00800000); + return ((bitField0_ & 0x00800000) != 0); } /** * optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage getRejoinExistingGameMessage() { - return rejoinExistingGameMessage_; + return rejoinExistingGameMessage_ == null ? de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.getDefaultInstance() : 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); } public static final int JOINGAMEACKMESSAGE_FIELD_NUMBER = 25; @@ -54223,14 +53076,57 @@ public final class ProtoBuf { /** * optional .JoinGameAckMessage joinGameAckMessage = 25; */ + @java.lang.Override public boolean hasJoinGameAckMessage() { - return ((bitField0_ & 0x01000000) == 0x01000000); + return ((bitField0_ & 0x01000000) != 0); } /** * optional .JoinGameAckMessage joinGameAckMessage = 25; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.JoinGameAckMessage getJoinGameAckMessage() { - return joinGameAckMessage_; + return joinGameAckMessage_ == null ? de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.getDefaultInstance() : 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); } public static final int JOINGAMEFAILEDMESSAGE_FIELD_NUMBER = 26; @@ -54238,14 +53134,57 @@ public final class ProtoBuf { /** * optional .JoinGameFailedMessage joinGameFailedMessage = 26; */ + @java.lang.Override public boolean hasJoinGameFailedMessage() { - return ((bitField0_ & 0x02000000) == 0x02000000); + return ((bitField0_ & 0x02000000) != 0); } /** * optional .JoinGameFailedMessage joinGameFailedMessage = 26; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage getJoinGameFailedMessage() { - return joinGameFailedMessage_; + return joinGameFailedMessage_ == null ? de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.getDefaultInstance() : 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); } public static final int GAMEPLAYERJOINEDMESSAGE_FIELD_NUMBER = 27; @@ -54253,14 +53192,57 @@ public final class ProtoBuf { /** * optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; */ + @java.lang.Override public boolean hasGamePlayerJoinedMessage() { - return ((bitField0_ & 0x04000000) == 0x04000000); + return ((bitField0_ & 0x04000000) != 0); } /** * optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage getGamePlayerJoinedMessage() { - return gamePlayerJoinedMessage_; + return gamePlayerJoinedMessage_ == null ? de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.getDefaultInstance() : 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); } public static final int GAMEPLAYERLEFTMESSAGE_FIELD_NUMBER = 28; @@ -54268,14 +53250,57 @@ public final class ProtoBuf { /** * optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; */ + @java.lang.Override public boolean hasGamePlayerLeftMessage() { - return ((bitField0_ & 0x08000000) == 0x08000000); + return ((bitField0_ & 0x08000000) != 0); } /** * optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage getGamePlayerLeftMessage() { - return gamePlayerLeftMessage_; + return gamePlayerLeftMessage_ == null ? de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.getDefaultInstance() : 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); } public static final int GAMEADMINCHANGEDMESSAGE_FIELD_NUMBER = 29; @@ -54283,14 +53308,57 @@ public final class ProtoBuf { /** * optional .GameAdminChangedMessage gameAdminChangedMessage = 29; */ + @java.lang.Override public boolean hasGameAdminChangedMessage() { - return ((bitField0_ & 0x10000000) == 0x10000000); + return ((bitField0_ & 0x10000000) != 0); } /** * optional .GameAdminChangedMessage gameAdminChangedMessage = 29; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage getGameAdminChangedMessage() { - return gameAdminChangedMessage_; + return gameAdminChangedMessage_ == null ? de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.getDefaultInstance() : 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); } public static final int REMOVEDFROMGAMEMESSAGE_FIELD_NUMBER = 30; @@ -54298,14 +53366,57 @@ public final class ProtoBuf { /** * optional .RemovedFromGameMessage removedFromGameMessage = 30; */ + @java.lang.Override public boolean hasRemovedFromGameMessage() { - return ((bitField0_ & 0x20000000) == 0x20000000); + return ((bitField0_ & 0x20000000) != 0); } /** * optional .RemovedFromGameMessage removedFromGameMessage = 30; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage getRemovedFromGameMessage() { - return removedFromGameMessage_; + return removedFromGameMessage_ == null ? de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.getDefaultInstance() : 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); } public static final int KICKPLAYERREQUESTMESSAGE_FIELD_NUMBER = 31; @@ -54313,14 +53424,57 @@ public final class ProtoBuf { /** * optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; */ + @java.lang.Override public boolean hasKickPlayerRequestMessage() { - return ((bitField0_ & 0x40000000) == 0x40000000); + return ((bitField0_ & 0x40000000) != 0); } /** * optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage getKickPlayerRequestMessage() { - return kickPlayerRequestMessage_; + return kickPlayerRequestMessage_ == null ? de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.getDefaultInstance() : 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); } public static final int LEAVEGAMEREQUESTMESSAGE_FIELD_NUMBER = 32; @@ -54328,14 +53482,57 @@ public final class ProtoBuf { /** * optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; */ + @java.lang.Override public boolean hasLeaveGameRequestMessage() { - return ((bitField0_ & 0x80000000) == 0x80000000); + return ((bitField0_ & 0x80000000) != 0); } /** * optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage getLeaveGameRequestMessage() { - return leaveGameRequestMessage_; + return leaveGameRequestMessage_ == null ? de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.getDefaultInstance() : 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); } public static final int INVITEPLAYERTOGAMEMESSAGE_FIELD_NUMBER = 33; @@ -54343,14 +53540,57 @@ public final class ProtoBuf { /** * optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; */ + @java.lang.Override public boolean hasInvitePlayerToGameMessage() { - return ((bitField1_ & 0x00000001) == 0x00000001); + return ((bitField1_ & 0x00000001) != 0); } /** * optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage getInvitePlayerToGameMessage() { - return invitePlayerToGameMessage_; + return invitePlayerToGameMessage_ == null ? de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.getDefaultInstance() : 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); } public static final int INVITENOTIFYMESSAGE_FIELD_NUMBER = 34; @@ -54358,14 +53598,57 @@ public final class ProtoBuf { /** * optional .InviteNotifyMessage inviteNotifyMessage = 34; */ + @java.lang.Override public boolean hasInviteNotifyMessage() { - return ((bitField1_ & 0x00000002) == 0x00000002); + return ((bitField1_ & 0x00000002) != 0); } /** * optional .InviteNotifyMessage inviteNotifyMessage = 34; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.InviteNotifyMessage getInviteNotifyMessage() { - return inviteNotifyMessage_; + return inviteNotifyMessage_ == null ? de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.getDefaultInstance() : 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); } public static final int REJECTGAMEINVITATIONMESSAGE_FIELD_NUMBER = 35; @@ -54373,14 +53656,57 @@ public final class ProtoBuf { /** * optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; */ + @java.lang.Override public boolean hasRejectGameInvitationMessage() { - return ((bitField1_ & 0x00000004) == 0x00000004); + return ((bitField1_ & 0x00000004) != 0); } /** * optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage getRejectGameInvitationMessage() { - return rejectGameInvitationMessage_; + return rejectGameInvitationMessage_ == null ? de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.getDefaultInstance() : 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); } public static final int REJECTINVNOTIFYMESSAGE_FIELD_NUMBER = 36; @@ -54388,14 +53714,57 @@ public final class ProtoBuf { /** * optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; */ + @java.lang.Override public boolean hasRejectInvNotifyMessage() { - return ((bitField1_ & 0x00000008) == 0x00000008); + return ((bitField1_ & 0x00000008) != 0); } /** * optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage getRejectInvNotifyMessage() { - return rejectInvNotifyMessage_; + return rejectInvNotifyMessage_ == null ? de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.getDefaultInstance() : 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); } public static final int STARTEVENTMESSAGE_FIELD_NUMBER = 37; @@ -54403,14 +53772,57 @@ public final class ProtoBuf { /** * optional .StartEventMessage startEventMessage = 37; */ + @java.lang.Override public boolean hasStartEventMessage() { - return ((bitField1_ & 0x00000010) == 0x00000010); + return ((bitField1_ & 0x00000010) != 0); } /** * optional .StartEventMessage startEventMessage = 37; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.StartEventMessage getStartEventMessage() { - return startEventMessage_; + return startEventMessage_ == null ? de.pokerth.protocol.ProtoBuf.StartEventMessage.getDefaultInstance() : 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); } public static final int STARTEVENTACKMESSAGE_FIELD_NUMBER = 38; @@ -54418,14 +53830,57 @@ public final class ProtoBuf { /** * optional .StartEventAckMessage startEventAckMessage = 38; */ + @java.lang.Override public boolean hasStartEventAckMessage() { - return ((bitField1_ & 0x00000020) == 0x00000020); + return ((bitField1_ & 0x00000020) != 0); } /** * optional .StartEventAckMessage startEventAckMessage = 38; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.StartEventAckMessage getStartEventAckMessage() { - return startEventAckMessage_; + return startEventAckMessage_ == null ? de.pokerth.protocol.ProtoBuf.StartEventAckMessage.getDefaultInstance() : 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); } public static final int GAMESTARTINITIALMESSAGE_FIELD_NUMBER = 39; @@ -54433,14 +53888,57 @@ public final class ProtoBuf { /** * optional .GameStartInitialMessage gameStartInitialMessage = 39; */ + @java.lang.Override public boolean hasGameStartInitialMessage() { - return ((bitField1_ & 0x00000040) == 0x00000040); + return ((bitField1_ & 0x00000040) != 0); } /** * optional .GameStartInitialMessage gameStartInitialMessage = 39; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameStartInitialMessage getGameStartInitialMessage() { - return gameStartInitialMessage_; + return gameStartInitialMessage_ == null ? de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.getDefaultInstance() : 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); } public static final int GAMESTARTREJOINMESSAGE_FIELD_NUMBER = 40; @@ -54448,14 +53946,57 @@ public final class ProtoBuf { /** * optional .GameStartRejoinMessage gameStartRejoinMessage = 40; */ + @java.lang.Override public boolean hasGameStartRejoinMessage() { - return ((bitField1_ & 0x00000080) == 0x00000080); + return ((bitField1_ & 0x00000080) != 0); } /** * optional .GameStartRejoinMessage gameStartRejoinMessage = 40; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage getGameStartRejoinMessage() { - return gameStartRejoinMessage_; + return gameStartRejoinMessage_ == null ? de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.getDefaultInstance() : 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); } public static final int HANDSTARTMESSAGE_FIELD_NUMBER = 41; @@ -54463,14 +54004,57 @@ public final class ProtoBuf { /** * optional .HandStartMessage handStartMessage = 41; */ + @java.lang.Override public boolean hasHandStartMessage() { - return ((bitField1_ & 0x00000100) == 0x00000100); + return ((bitField1_ & 0x00000100) != 0); } /** * optional .HandStartMessage handStartMessage = 41; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.HandStartMessage getHandStartMessage() { - return handStartMessage_; + return handStartMessage_ == null ? de.pokerth.protocol.ProtoBuf.HandStartMessage.getDefaultInstance() : 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); } public static final int PLAYERSTURNMESSAGE_FIELD_NUMBER = 42; @@ -54478,14 +54062,57 @@ public final class ProtoBuf { /** * optional .PlayersTurnMessage playersTurnMessage = 42; */ + @java.lang.Override public boolean hasPlayersTurnMessage() { - return ((bitField1_ & 0x00000200) == 0x00000200); + return ((bitField1_ & 0x00000200) != 0); } /** * optional .PlayersTurnMessage playersTurnMessage = 42; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayersTurnMessage getPlayersTurnMessage() { - return playersTurnMessage_; + return playersTurnMessage_ == null ? de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.getDefaultInstance() : 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); } public static final int MYACTIONREQUESTMESSAGE_FIELD_NUMBER = 43; @@ -54493,14 +54120,57 @@ public final class ProtoBuf { /** * optional .MyActionRequestMessage myActionRequestMessage = 43; */ + @java.lang.Override public boolean hasMyActionRequestMessage() { - return ((bitField1_ & 0x00000400) == 0x00000400); + return ((bitField1_ & 0x00000400) != 0); } /** * optional .MyActionRequestMessage myActionRequestMessage = 43; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.MyActionRequestMessage getMyActionRequestMessage() { - return myActionRequestMessage_; + return myActionRequestMessage_ == null ? de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.getDefaultInstance() : 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); } public static final int YOURACTIONREJECTEDMESSAGE_FIELD_NUMBER = 44; @@ -54508,14 +54178,57 @@ public final class ProtoBuf { /** * optional .YourActionRejectedMessage yourActionRejectedMessage = 44; */ + @java.lang.Override public boolean hasYourActionRejectedMessage() { - return ((bitField1_ & 0x00000800) == 0x00000800); + return ((bitField1_ & 0x00000800) != 0); } /** * optional .YourActionRejectedMessage yourActionRejectedMessage = 44; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage getYourActionRejectedMessage() { - return yourActionRejectedMessage_; + return yourActionRejectedMessage_ == null ? de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.getDefaultInstance() : 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); } public static final int PLAYERSACTIONDONEMESSAGE_FIELD_NUMBER = 45; @@ -54523,14 +54236,57 @@ public final class ProtoBuf { /** * optional .PlayersActionDoneMessage playersActionDoneMessage = 45; */ + @java.lang.Override public boolean hasPlayersActionDoneMessage() { - return ((bitField1_ & 0x00001000) == 0x00001000); + return ((bitField1_ & 0x00001000) != 0); } /** * optional .PlayersActionDoneMessage playersActionDoneMessage = 45; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage getPlayersActionDoneMessage() { - return playersActionDoneMessage_; + return playersActionDoneMessage_ == null ? de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.getDefaultInstance() : 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); } public static final int DEALFLOPCARDSMESSAGE_FIELD_NUMBER = 46; @@ -54538,14 +54294,57 @@ public final class ProtoBuf { /** * optional .DealFlopCardsMessage dealFlopCardsMessage = 46; */ + @java.lang.Override public boolean hasDealFlopCardsMessage() { - return ((bitField1_ & 0x00002000) == 0x00002000); + return ((bitField1_ & 0x00002000) != 0); } /** * optional .DealFlopCardsMessage dealFlopCardsMessage = 46; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage getDealFlopCardsMessage() { - return dealFlopCardsMessage_; + return dealFlopCardsMessage_ == null ? de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.getDefaultInstance() : 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); } public static final int DEALTURNCARDMESSAGE_FIELD_NUMBER = 47; @@ -54553,14 +54352,57 @@ public final class ProtoBuf { /** * optional .DealTurnCardMessage dealTurnCardMessage = 47; */ + @java.lang.Override public boolean hasDealTurnCardMessage() { - return ((bitField1_ & 0x00004000) == 0x00004000); + return ((bitField1_ & 0x00004000) != 0); } /** * optional .DealTurnCardMessage dealTurnCardMessage = 47; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.DealTurnCardMessage getDealTurnCardMessage() { - return dealTurnCardMessage_; + return dealTurnCardMessage_ == null ? de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.getDefaultInstance() : 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); } public static final int DEALRIVERCARDMESSAGE_FIELD_NUMBER = 48; @@ -54568,14 +54410,57 @@ public final class ProtoBuf { /** * optional .DealRiverCardMessage dealRiverCardMessage = 48; */ + @java.lang.Override public boolean hasDealRiverCardMessage() { - return ((bitField1_ & 0x00008000) == 0x00008000); + return ((bitField1_ & 0x00008000) != 0); } /** * optional .DealRiverCardMessage dealRiverCardMessage = 48; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.DealRiverCardMessage getDealRiverCardMessage() { - return dealRiverCardMessage_; + return dealRiverCardMessage_ == null ? de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.getDefaultInstance() : 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); } public static final int ALLINSHOWCARDSMESSAGE_FIELD_NUMBER = 49; @@ -54583,14 +54468,57 @@ public final class ProtoBuf { /** * optional .AllInShowCardsMessage allInShowCardsMessage = 49; */ + @java.lang.Override public boolean hasAllInShowCardsMessage() { - return ((bitField1_ & 0x00010000) == 0x00010000); + return ((bitField1_ & 0x00010000) != 0); } /** * optional .AllInShowCardsMessage allInShowCardsMessage = 49; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage getAllInShowCardsMessage() { - return allInShowCardsMessage_; + return allInShowCardsMessage_ == null ? de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.getDefaultInstance() : 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); } public static final int ENDOFHANDSHOWCARDSMESSAGE_FIELD_NUMBER = 50; @@ -54598,14 +54526,57 @@ public final class ProtoBuf { /** * optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; */ + @java.lang.Override public boolean hasEndOfHandShowCardsMessage() { - return ((bitField1_ & 0x00020000) == 0x00020000); + return ((bitField1_ & 0x00020000) != 0); } /** * optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage getEndOfHandShowCardsMessage() { - return endOfHandShowCardsMessage_; + return endOfHandShowCardsMessage_ == null ? de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.getDefaultInstance() : 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); } public static final int ENDOFHANDHIDECARDSMESSAGE_FIELD_NUMBER = 51; @@ -54613,14 +54584,57 @@ public final class ProtoBuf { /** * optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; */ + @java.lang.Override public boolean hasEndOfHandHideCardsMessage() { - return ((bitField1_ & 0x00040000) == 0x00040000); + return ((bitField1_ & 0x00040000) != 0); } /** * optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage getEndOfHandHideCardsMessage() { - return endOfHandHideCardsMessage_; + return endOfHandHideCardsMessage_ == null ? de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.getDefaultInstance() : 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); } public static final int SHOWMYCARDSREQUESTMESSAGE_FIELD_NUMBER = 52; @@ -54628,14 +54642,57 @@ public final class ProtoBuf { /** * optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; */ + @java.lang.Override public boolean hasShowMyCardsRequestMessage() { - return ((bitField1_ & 0x00080000) == 0x00080000); + return ((bitField1_ & 0x00080000) != 0); } /** * optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage getShowMyCardsRequestMessage() { - return showMyCardsRequestMessage_; + return showMyCardsRequestMessage_ == null ? de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.getDefaultInstance() : 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); } public static final int AFTERHANDSHOWCARDSMESSAGE_FIELD_NUMBER = 53; @@ -54643,14 +54700,57 @@ public final class ProtoBuf { /** * optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; */ + @java.lang.Override public boolean hasAfterHandShowCardsMessage() { - return ((bitField1_ & 0x00100000) == 0x00100000); + return ((bitField1_ & 0x00100000) != 0); } /** * optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage getAfterHandShowCardsMessage() { - return afterHandShowCardsMessage_; + return afterHandShowCardsMessage_ == null ? de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.getDefaultInstance() : 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); } public static final int ENDOFGAMEMESSAGE_FIELD_NUMBER = 54; @@ -54658,14 +54758,57 @@ public final class ProtoBuf { /** * optional .EndOfGameMessage endOfGameMessage = 54; */ + @java.lang.Override public boolean hasEndOfGameMessage() { - return ((bitField1_ & 0x00200000) == 0x00200000); + return ((bitField1_ & 0x00200000) != 0); } /** * optional .EndOfGameMessage endOfGameMessage = 54; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.EndOfGameMessage getEndOfGameMessage() { - return endOfGameMessage_; + return endOfGameMessage_ == null ? de.pokerth.protocol.ProtoBuf.EndOfGameMessage.getDefaultInstance() : 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); } public static final int PLAYERIDCHANGEDMESSAGE_FIELD_NUMBER = 55; @@ -54673,14 +54816,57 @@ public final class ProtoBuf { /** * optional .PlayerIdChangedMessage playerIdChangedMessage = 55; */ + @java.lang.Override public boolean hasPlayerIdChangedMessage() { - return ((bitField1_ & 0x00400000) == 0x00400000); + return ((bitField1_ & 0x00400000) != 0); } /** * optional .PlayerIdChangedMessage playerIdChangedMessage = 55; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage getPlayerIdChangedMessage() { - return playerIdChangedMessage_; + return playerIdChangedMessage_ == null ? de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.getDefaultInstance() : 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); } public static final int ASKKICKPLAYERMESSAGE_FIELD_NUMBER = 56; @@ -54688,14 +54874,57 @@ public final class ProtoBuf { /** * optional .AskKickPlayerMessage askKickPlayerMessage = 56; */ + @java.lang.Override public boolean hasAskKickPlayerMessage() { - return ((bitField1_ & 0x00800000) == 0x00800000); + return ((bitField1_ & 0x00800000) != 0); } /** * optional .AskKickPlayerMessage askKickPlayerMessage = 56; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage getAskKickPlayerMessage() { - return askKickPlayerMessage_; + return askKickPlayerMessage_ == null ? de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.getDefaultInstance() : 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); } public static final int ASKKICKDENIEDMESSAGE_FIELD_NUMBER = 57; @@ -54703,14 +54932,57 @@ public final class ProtoBuf { /** * optional .AskKickDeniedMessage askKickDeniedMessage = 57; */ + @java.lang.Override public boolean hasAskKickDeniedMessage() { - return ((bitField1_ & 0x01000000) == 0x01000000); + return ((bitField1_ & 0x01000000) != 0); } /** * optional .AskKickDeniedMessage askKickDeniedMessage = 57; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage getAskKickDeniedMessage() { - return askKickDeniedMessage_; + return askKickDeniedMessage_ == null ? de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.getDefaultInstance() : 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); } public static final int STARTKICKPETITIONMESSAGE_FIELD_NUMBER = 58; @@ -54718,14 +54990,57 @@ public final class ProtoBuf { /** * optional .StartKickPetitionMessage startKickPetitionMessage = 58; */ + @java.lang.Override public boolean hasStartKickPetitionMessage() { - return ((bitField1_ & 0x02000000) == 0x02000000); + return ((bitField1_ & 0x02000000) != 0); } /** * optional .StartKickPetitionMessage startKickPetitionMessage = 58; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage getStartKickPetitionMessage() { - return startKickPetitionMessage_; + return startKickPetitionMessage_ == null ? de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.getDefaultInstance() : 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); } public static final int VOTEKICKREQUESTMESSAGE_FIELD_NUMBER = 59; @@ -54733,14 +55048,57 @@ public final class ProtoBuf { /** * optional .VoteKickRequestMessage voteKickRequestMessage = 59; */ + @java.lang.Override public boolean hasVoteKickRequestMessage() { - return ((bitField1_ & 0x04000000) == 0x04000000); + return ((bitField1_ & 0x04000000) != 0); } /** * optional .VoteKickRequestMessage voteKickRequestMessage = 59; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage getVoteKickRequestMessage() { - return voteKickRequestMessage_; + return voteKickRequestMessage_ == null ? de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.getDefaultInstance() : 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); } public static final int VOTEKICKREPLYMESSAGE_FIELD_NUMBER = 60; @@ -54748,14 +55106,57 @@ public final class ProtoBuf { /** * optional .VoteKickReplyMessage voteKickReplyMessage = 60; */ + @java.lang.Override public boolean hasVoteKickReplyMessage() { - return ((bitField1_ & 0x08000000) == 0x08000000); + return ((bitField1_ & 0x08000000) != 0); } /** * optional .VoteKickReplyMessage voteKickReplyMessage = 60; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage getVoteKickReplyMessage() { - return voteKickReplyMessage_; + return voteKickReplyMessage_ == null ? de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.getDefaultInstance() : 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); } public static final int KICKPETITIONUPDATEMESSAGE_FIELD_NUMBER = 61; @@ -54763,14 +55164,57 @@ public final class ProtoBuf { /** * optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; */ + @java.lang.Override public boolean hasKickPetitionUpdateMessage() { - return ((bitField1_ & 0x10000000) == 0x10000000); + return ((bitField1_ & 0x10000000) != 0); } /** * optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage getKickPetitionUpdateMessage() { - return kickPetitionUpdateMessage_; + return kickPetitionUpdateMessage_ == null ? de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.getDefaultInstance() : 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); } public static final int ENDKICKPETITIONMESSAGE_FIELD_NUMBER = 62; @@ -54778,14 +55222,57 @@ public final class ProtoBuf { /** * optional .EndKickPetitionMessage endKickPetitionMessage = 62; */ + @java.lang.Override public boolean hasEndKickPetitionMessage() { - return ((bitField1_ & 0x20000000) == 0x20000000); + return ((bitField1_ & 0x20000000) != 0); } /** * optional .EndKickPetitionMessage endKickPetitionMessage = 62; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage getEndKickPetitionMessage() { - return endKickPetitionMessage_; + return endKickPetitionMessage_ == null ? de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.getDefaultInstance() : 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); } public static final int STATISTICSMESSAGE_FIELD_NUMBER = 63; @@ -54793,14 +55280,57 @@ public final class ProtoBuf { /** * optional .StatisticsMessage statisticsMessage = 63; */ + @java.lang.Override public boolean hasStatisticsMessage() { - return ((bitField1_ & 0x40000000) == 0x40000000); + return ((bitField1_ & 0x40000000) != 0); } /** * optional .StatisticsMessage statisticsMessage = 63; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.StatisticsMessage getStatisticsMessage() { - return statisticsMessage_; + return statisticsMessage_ == null ? de.pokerth.protocol.ProtoBuf.StatisticsMessage.getDefaultInstance() : 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); } public static final int CHATREQUESTMESSAGE_FIELD_NUMBER = 64; @@ -54808,14 +55338,57 @@ public final class ProtoBuf { /** * optional .ChatRequestMessage chatRequestMessage = 64; */ + @java.lang.Override public boolean hasChatRequestMessage() { - return ((bitField1_ & 0x80000000) == 0x80000000); + return ((bitField1_ & 0x80000000) != 0); } /** * optional .ChatRequestMessage chatRequestMessage = 64; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ChatRequestMessage getChatRequestMessage() { - return chatRequestMessage_; + return chatRequestMessage_ == null ? de.pokerth.protocol.ProtoBuf.ChatRequestMessage.getDefaultInstance() : 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); } public static final int CHATMESSAGE_FIELD_NUMBER = 65; @@ -54823,14 +55396,57 @@ public final class ProtoBuf { /** * optional .ChatMessage chatMessage = 65; */ + @java.lang.Override public boolean hasChatMessage() { - return ((bitField2_ & 0x00000001) == 0x00000001); + return ((bitField2_ & 0x00000001) != 0); } /** * optional .ChatMessage chatMessage = 65; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ChatMessage getChatMessage() { - return chatMessage_; + return chatMessage_ == null ? de.pokerth.protocol.ProtoBuf.ChatMessage.getDefaultInstance() : 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); } public static final int CHATREJECTMESSAGE_FIELD_NUMBER = 66; @@ -54838,14 +55454,57 @@ public final class ProtoBuf { /** * optional .ChatRejectMessage chatRejectMessage = 66; */ + @java.lang.Override public boolean hasChatRejectMessage() { - return ((bitField2_ & 0x00000002) == 0x00000002); + return ((bitField2_ & 0x00000002) != 0); } /** * optional .ChatRejectMessage chatRejectMessage = 66; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ChatRejectMessage getChatRejectMessage() { - return chatRejectMessage_; + return chatRejectMessage_ == null ? de.pokerth.protocol.ProtoBuf.ChatRejectMessage.getDefaultInstance() : 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); } public static final int DIALOGMESSAGE_FIELD_NUMBER = 67; @@ -54853,14 +55512,57 @@ public final class ProtoBuf { /** * optional .DialogMessage dialogMessage = 67; */ + @java.lang.Override public boolean hasDialogMessage() { - return ((bitField2_ & 0x00000004) == 0x00000004); + return ((bitField2_ & 0x00000004) != 0); } /** * optional .DialogMessage dialogMessage = 67; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.DialogMessage getDialogMessage() { - return dialogMessage_; + return dialogMessage_ == null ? de.pokerth.protocol.ProtoBuf.DialogMessage.getDefaultInstance() : 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); } public static final int TIMEOUTWARNINGMESSAGE_FIELD_NUMBER = 68; @@ -54868,14 +55570,57 @@ public final class ProtoBuf { /** * optional .TimeoutWarningMessage timeoutWarningMessage = 68; */ + @java.lang.Override public boolean hasTimeoutWarningMessage() { - return ((bitField2_ & 0x00000008) == 0x00000008); + return ((bitField2_ & 0x00000008) != 0); } /** * optional .TimeoutWarningMessage timeoutWarningMessage = 68; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage getTimeoutWarningMessage() { - return timeoutWarningMessage_; + return timeoutWarningMessage_ == null ? de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.getDefaultInstance() : 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); } public static final int RESETTIMEOUTMESSAGE_FIELD_NUMBER = 69; @@ -54883,14 +55628,57 @@ public final class ProtoBuf { /** * optional .ResetTimeoutMessage resetTimeoutMessage = 69; */ + @java.lang.Override public boolean hasResetTimeoutMessage() { - return ((bitField2_ & 0x00000010) == 0x00000010); + return ((bitField2_ & 0x00000010) != 0); } /** * optional .ResetTimeoutMessage resetTimeoutMessage = 69; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage getResetTimeoutMessage() { - return resetTimeoutMessage_; + return resetTimeoutMessage_ == null ? de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.getDefaultInstance() : 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); } public static final int REPORTAVATARMESSAGE_FIELD_NUMBER = 70; @@ -54898,14 +55686,57 @@ public final class ProtoBuf { /** * optional .ReportAvatarMessage reportAvatarMessage = 70; */ + @java.lang.Override public boolean hasReportAvatarMessage() { - return ((bitField2_ & 0x00000020) == 0x00000020); + return ((bitField2_ & 0x00000020) != 0); } /** * optional .ReportAvatarMessage reportAvatarMessage = 70; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ReportAvatarMessage getReportAvatarMessage() { - return reportAvatarMessage_; + return reportAvatarMessage_ == null ? de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.getDefaultInstance() : 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); } public static final int REPORTAVATARACKMESSAGE_FIELD_NUMBER = 71; @@ -54913,14 +55744,57 @@ public final class ProtoBuf { /** * optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; */ + @java.lang.Override public boolean hasReportAvatarAckMessage() { - return ((bitField2_ & 0x00000040) == 0x00000040); + return ((bitField2_ & 0x00000040) != 0); } /** * optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage getReportAvatarAckMessage() { - return reportAvatarAckMessage_; + return reportAvatarAckMessage_ == null ? de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.getDefaultInstance() : 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); } public static final int REPORTGAMEMESSAGE_FIELD_NUMBER = 72; @@ -54928,14 +55802,57 @@ public final class ProtoBuf { /** * optional .ReportGameMessage reportGameMessage = 72; */ + @java.lang.Override public boolean hasReportGameMessage() { - return ((bitField2_ & 0x00000080) == 0x00000080); + return ((bitField2_ & 0x00000080) != 0); } /** * optional .ReportGameMessage reportGameMessage = 72; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ReportGameMessage getReportGameMessage() { - return reportGameMessage_; + return reportGameMessage_ == null ? de.pokerth.protocol.ProtoBuf.ReportGameMessage.getDefaultInstance() : 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); } public static final int REPORTGAMEACKMESSAGE_FIELD_NUMBER = 73; @@ -54943,14 +55860,57 @@ public final class ProtoBuf { /** * optional .ReportGameAckMessage reportGameAckMessage = 73; */ + @java.lang.Override public boolean hasReportGameAckMessage() { - return ((bitField2_ & 0x00000100) == 0x00000100); + return ((bitField2_ & 0x00000100) != 0); } /** * optional .ReportGameAckMessage reportGameAckMessage = 73; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ReportGameAckMessage getReportGameAckMessage() { - return reportGameAckMessage_; + return reportGameAckMessage_ == null ? de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.getDefaultInstance() : 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); } public static final int ERRORMESSAGE_FIELD_NUMBER = 74; @@ -54958,14 +55918,57 @@ public final class ProtoBuf { /** * optional .ErrorMessage errorMessage = 74; */ + @java.lang.Override public boolean hasErrorMessage() { - return ((bitField2_ & 0x00000200) == 0x00000200); + return ((bitField2_ & 0x00000200) != 0); } /** * optional .ErrorMessage errorMessage = 74; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ErrorMessage getErrorMessage() { - return errorMessage_; + return errorMessage_ == null ? de.pokerth.protocol.ProtoBuf.ErrorMessage.getDefaultInstance() : 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); } public static final int ADMINREMOVEGAMEMESSAGE_FIELD_NUMBER = 75; @@ -54973,14 +55976,57 @@ public final class ProtoBuf { /** * optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; */ + @java.lang.Override public boolean hasAdminRemoveGameMessage() { - return ((bitField2_ & 0x00000400) == 0x00000400); + return ((bitField2_ & 0x00000400) != 0); } /** * optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage getAdminRemoveGameMessage() { - return adminRemoveGameMessage_; + return adminRemoveGameMessage_ == null ? de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage.getDefaultInstance() : 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); } public static final int ADMINREMOVEGAMEACKMESSAGE_FIELD_NUMBER = 76; @@ -54988,14 +56034,57 @@ public final class ProtoBuf { /** * optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; */ + @java.lang.Override public boolean hasAdminRemoveGameAckMessage() { - return ((bitField2_ & 0x00000800) == 0x00000800); + return ((bitField2_ & 0x00000800) != 0); } /** * optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage getAdminRemoveGameAckMessage() { - return adminRemoveGameAckMessage_; + return adminRemoveGameAckMessage_ == null ? de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.getDefaultInstance() : 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); } public static final int ADMINBANPLAYERMESSAGE_FIELD_NUMBER = 77; @@ -55003,14 +56092,57 @@ public final class ProtoBuf { /** * optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; */ + @java.lang.Override public boolean hasAdminBanPlayerMessage() { - return ((bitField2_ & 0x00001000) == 0x00001000); + return ((bitField2_ & 0x00001000) != 0); } /** * optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage getAdminBanPlayerMessage() { - return adminBanPlayerMessage_; + return adminBanPlayerMessage_ == null ? de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage.getDefaultInstance() : 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); } public static final int ADMINBANPLAYERACKMESSAGE_FIELD_NUMBER = 78; @@ -55018,14 +56150,57 @@ public final class ProtoBuf { /** * optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; */ + @java.lang.Override public boolean hasAdminBanPlayerAckMessage() { - return ((bitField2_ & 0x00002000) == 0x00002000); + return ((bitField2_ & 0x00002000) != 0); } /** * optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage getAdminBanPlayerAckMessage() { - return adminBanPlayerAckMessage_; + return adminBanPlayerAckMessage_ == null ? de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.getDefaultInstance() : 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); } public static final int GAMELISTSPECTATORJOINEDMESSAGE_FIELD_NUMBER = 79; @@ -55033,14 +56208,57 @@ public final class ProtoBuf { /** * optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; */ + @java.lang.Override public boolean hasGameListSpectatorJoinedMessage() { - return ((bitField2_ & 0x00004000) == 0x00004000); + return ((bitField2_ & 0x00004000) != 0); } /** * optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage getGameListSpectatorJoinedMessage() { - return gameListSpectatorJoinedMessage_; + return gameListSpectatorJoinedMessage_ == null ? de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage.getDefaultInstance() : 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); } public static final int GAMELISTSPECTATORLEFTMESSAGE_FIELD_NUMBER = 80; @@ -55048,14 +56266,57 @@ public final class ProtoBuf { /** * optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; */ + @java.lang.Override public boolean hasGameListSpectatorLeftMessage() { - return ((bitField2_ & 0x00008000) == 0x00008000); + return ((bitField2_ & 0x00008000) != 0); } /** * optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage getGameListSpectatorLeftMessage() { - return gameListSpectatorLeftMessage_; + return gameListSpectatorLeftMessage_ == null ? de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage.getDefaultInstance() : 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); } public static final int GAMESPECTATORJOINEDMESSAGE_FIELD_NUMBER = 81; @@ -55063,14 +56324,57 @@ public final class ProtoBuf { /** * optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; */ + @java.lang.Override public boolean hasGameSpectatorJoinedMessage() { - return ((bitField2_ & 0x00010000) == 0x00010000); + return ((bitField2_ & 0x00010000) != 0); } /** * optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage getGameSpectatorJoinedMessage() { - return gameSpectatorJoinedMessage_; + return gameSpectatorJoinedMessage_ == null ? de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage.getDefaultInstance() : 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); } public static final int GAMESPECTATORLEFTMESSAGE_FIELD_NUMBER = 82; @@ -55078,7441 +56382,6240 @@ public final class ProtoBuf { /** * optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; */ + @java.lang.Override public boolean hasGameSpectatorLeftMessage() { - return ((bitField2_ & 0x00020000) == 0x00020000); + return ((bitField2_ & 0x00020000) != 0); } /** * optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage getGameSpectatorLeftMessage() { - return gameSpectatorLeftMessage_; + return gameSpectatorLeftMessage_ == null ? de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.getDefaultInstance() : gameSpectatorLeftMessage_; } - - 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; + */ + 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 byte memoizedIsInitialized = -1; - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - if (!hasMessageType()) { - memoizedIsInitialized = 0; - return false; - } - if (hasAnnounceMessage()) { - if (!getAnnounceMessage().isInitialized()) { - memoizedIsInitialized = 0; - return false; - } - } - 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; + */ + @java.lang.SuppressWarnings({"ReferenceEquality"}) + private void mergeGameSpectatorLeftMessage(de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage value) { + if (value == null) { + throw new NullPointerException(); + } + if (gameSpectatorLeftMessage_ != null && + gameSpectatorLeftMessage_ != de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.getDefaultInstance()) { + gameSpectatorLeftMessage_ = + de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.newBuilder(gameSpectatorLeftMessage_).mergeFrom(value).buildPartial(); + } else { + gameSpectatorLeftMessage_ = value; + } + bitField2_ |= 0x00020000; + } + /** + * 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 { - getSerializedSize(); - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeEnum(1, messageType_.getNumber()); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, messageType_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, announceMessage_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getAnnounceMessage()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, initMessage_); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getInitMessage()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, authServerChallengeMessage_); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getAuthServerChallengeMessage()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - output.writeMessage(5, authClientResponseMessage_); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(5, getAuthClientResponseMessage()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - output.writeMessage(6, authServerVerificationMessage_); + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(6, getAuthServerVerificationMessage()); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { - output.writeMessage(7, initAckMessage_); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(7, getInitAckMessage()); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { - output.writeMessage(8, avatarRequestMessage_); + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(8, getAvatarRequestMessage()); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { - output.writeMessage(9, avatarHeaderMessage_); + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(9, getAvatarHeaderMessage()); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { - output.writeMessage(10, avatarDataMessage_); + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(10, getAvatarDataMessage()); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { - output.writeMessage(11, avatarEndMessage_); + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(11, getAvatarEndMessage()); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { - output.writeMessage(12, unknownAvatarMessage_); + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(12, getUnknownAvatarMessage()); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { - output.writeMessage(13, playerListMessage_); + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(13, getPlayerListMessage()); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { - output.writeMessage(14, gameListNewMessage_); + if (((bitField0_ & 0x00002000) != 0)) { + output.writeMessage(14, getGameListNewMessage()); } - if (((bitField0_ & 0x00004000) == 0x00004000)) { - output.writeMessage(15, gameListUpdateMessage_); + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(15, getGameListUpdateMessage()); } - if (((bitField0_ & 0x00008000) == 0x00008000)) { - output.writeMessage(16, gameListPlayerJoinedMessage_); + if (((bitField0_ & 0x00008000) != 0)) { + output.writeMessage(16, getGameListPlayerJoinedMessage()); } - if (((bitField0_ & 0x00010000) == 0x00010000)) { - output.writeMessage(17, gameListPlayerLeftMessage_); + if (((bitField0_ & 0x00010000) != 0)) { + output.writeMessage(17, getGameListPlayerLeftMessage()); } - if (((bitField0_ & 0x00020000) == 0x00020000)) { - output.writeMessage(18, gameListAdminChangedMessage_); + if (((bitField0_ & 0x00020000) != 0)) { + output.writeMessage(18, getGameListAdminChangedMessage()); } - if (((bitField0_ & 0x00040000) == 0x00040000)) { - output.writeMessage(19, playerInfoRequestMessage_); + if (((bitField0_ & 0x00040000) != 0)) { + output.writeMessage(19, getPlayerInfoRequestMessage()); } - if (((bitField0_ & 0x00080000) == 0x00080000)) { - output.writeMessage(20, playerInfoReplyMessage_); + if (((bitField0_ & 0x00080000) != 0)) { + output.writeMessage(20, getPlayerInfoReplyMessage()); } - if (((bitField0_ & 0x00100000) == 0x00100000)) { - output.writeMessage(21, subscriptionRequestMessage_); + if (((bitField0_ & 0x00100000) != 0)) { + output.writeMessage(21, getSubscriptionRequestMessage()); } - if (((bitField0_ & 0x00200000) == 0x00200000)) { - output.writeMessage(22, joinExistingGameMessage_); + if (((bitField0_ & 0x00200000) != 0)) { + output.writeMessage(22, getJoinExistingGameMessage()); } - if (((bitField0_ & 0x00400000) == 0x00400000)) { - output.writeMessage(23, joinNewGameMessage_); + if (((bitField0_ & 0x00400000) != 0)) { + output.writeMessage(23, getJoinNewGameMessage()); } - if (((bitField0_ & 0x00800000) == 0x00800000)) { - output.writeMessage(24, rejoinExistingGameMessage_); + if (((bitField0_ & 0x00800000) != 0)) { + output.writeMessage(24, getRejoinExistingGameMessage()); } - if (((bitField0_ & 0x01000000) == 0x01000000)) { - output.writeMessage(25, joinGameAckMessage_); + if (((bitField0_ & 0x01000000) != 0)) { + output.writeMessage(25, getJoinGameAckMessage()); } - if (((bitField0_ & 0x02000000) == 0x02000000)) { - output.writeMessage(26, joinGameFailedMessage_); + if (((bitField0_ & 0x02000000) != 0)) { + output.writeMessage(26, getJoinGameFailedMessage()); } - if (((bitField0_ & 0x04000000) == 0x04000000)) { - output.writeMessage(27, gamePlayerJoinedMessage_); + if (((bitField0_ & 0x04000000) != 0)) { + output.writeMessage(27, getGamePlayerJoinedMessage()); } - if (((bitField0_ & 0x08000000) == 0x08000000)) { - output.writeMessage(28, gamePlayerLeftMessage_); + if (((bitField0_ & 0x08000000) != 0)) { + output.writeMessage(28, getGamePlayerLeftMessage()); } - if (((bitField0_ & 0x10000000) == 0x10000000)) { - output.writeMessage(29, gameAdminChangedMessage_); + if (((bitField0_ & 0x10000000) != 0)) { + output.writeMessage(29, getGameAdminChangedMessage()); } - if (((bitField0_ & 0x20000000) == 0x20000000)) { - output.writeMessage(30, removedFromGameMessage_); + if (((bitField0_ & 0x20000000) != 0)) { + output.writeMessage(30, getRemovedFromGameMessage()); } - if (((bitField0_ & 0x40000000) == 0x40000000)) { - output.writeMessage(31, kickPlayerRequestMessage_); + if (((bitField0_ & 0x40000000) != 0)) { + output.writeMessage(31, getKickPlayerRequestMessage()); } - if (((bitField0_ & 0x80000000) == 0x80000000)) { - output.writeMessage(32, leaveGameRequestMessage_); + if (((bitField0_ & 0x80000000) != 0)) { + output.writeMessage(32, getLeaveGameRequestMessage()); } - if (((bitField1_ & 0x00000001) == 0x00000001)) { - output.writeMessage(33, invitePlayerToGameMessage_); + if (((bitField1_ & 0x00000001) != 0)) { + output.writeMessage(33, getInvitePlayerToGameMessage()); } - if (((bitField1_ & 0x00000002) == 0x00000002)) { - output.writeMessage(34, inviteNotifyMessage_); + if (((bitField1_ & 0x00000002) != 0)) { + output.writeMessage(34, getInviteNotifyMessage()); } - if (((bitField1_ & 0x00000004) == 0x00000004)) { - output.writeMessage(35, rejectGameInvitationMessage_); + if (((bitField1_ & 0x00000004) != 0)) { + output.writeMessage(35, getRejectGameInvitationMessage()); } - if (((bitField1_ & 0x00000008) == 0x00000008)) { - output.writeMessage(36, rejectInvNotifyMessage_); + if (((bitField1_ & 0x00000008) != 0)) { + output.writeMessage(36, getRejectInvNotifyMessage()); } - if (((bitField1_ & 0x00000010) == 0x00000010)) { - output.writeMessage(37, startEventMessage_); + if (((bitField1_ & 0x00000010) != 0)) { + output.writeMessage(37, getStartEventMessage()); } - if (((bitField1_ & 0x00000020) == 0x00000020)) { - output.writeMessage(38, startEventAckMessage_); + if (((bitField1_ & 0x00000020) != 0)) { + output.writeMessage(38, getStartEventAckMessage()); } - if (((bitField1_ & 0x00000040) == 0x00000040)) { - output.writeMessage(39, gameStartInitialMessage_); + if (((bitField1_ & 0x00000040) != 0)) { + output.writeMessage(39, getGameStartInitialMessage()); } - if (((bitField1_ & 0x00000080) == 0x00000080)) { - output.writeMessage(40, gameStartRejoinMessage_); + if (((bitField1_ & 0x00000080) != 0)) { + output.writeMessage(40, getGameStartRejoinMessage()); } - if (((bitField1_ & 0x00000100) == 0x00000100)) { - output.writeMessage(41, handStartMessage_); + if (((bitField1_ & 0x00000100) != 0)) { + output.writeMessage(41, getHandStartMessage()); } - if (((bitField1_ & 0x00000200) == 0x00000200)) { - output.writeMessage(42, playersTurnMessage_); + if (((bitField1_ & 0x00000200) != 0)) { + output.writeMessage(42, getPlayersTurnMessage()); } - if (((bitField1_ & 0x00000400) == 0x00000400)) { - output.writeMessage(43, myActionRequestMessage_); + if (((bitField1_ & 0x00000400) != 0)) { + output.writeMessage(43, getMyActionRequestMessage()); } - if (((bitField1_ & 0x00000800) == 0x00000800)) { - output.writeMessage(44, yourActionRejectedMessage_); + if (((bitField1_ & 0x00000800) != 0)) { + output.writeMessage(44, getYourActionRejectedMessage()); } - if (((bitField1_ & 0x00001000) == 0x00001000)) { - output.writeMessage(45, playersActionDoneMessage_); + if (((bitField1_ & 0x00001000) != 0)) { + output.writeMessage(45, getPlayersActionDoneMessage()); } - if (((bitField1_ & 0x00002000) == 0x00002000)) { - output.writeMessage(46, dealFlopCardsMessage_); + if (((bitField1_ & 0x00002000) != 0)) { + output.writeMessage(46, getDealFlopCardsMessage()); } - if (((bitField1_ & 0x00004000) == 0x00004000)) { - output.writeMessage(47, dealTurnCardMessage_); + if (((bitField1_ & 0x00004000) != 0)) { + output.writeMessage(47, getDealTurnCardMessage()); } - if (((bitField1_ & 0x00008000) == 0x00008000)) { - output.writeMessage(48, dealRiverCardMessage_); + if (((bitField1_ & 0x00008000) != 0)) { + output.writeMessage(48, getDealRiverCardMessage()); } - if (((bitField1_ & 0x00010000) == 0x00010000)) { - output.writeMessage(49, allInShowCardsMessage_); + if (((bitField1_ & 0x00010000) != 0)) { + output.writeMessage(49, getAllInShowCardsMessage()); } - if (((bitField1_ & 0x00020000) == 0x00020000)) { - output.writeMessage(50, endOfHandShowCardsMessage_); + if (((bitField1_ & 0x00020000) != 0)) { + output.writeMessage(50, getEndOfHandShowCardsMessage()); } - if (((bitField1_ & 0x00040000) == 0x00040000)) { - output.writeMessage(51, endOfHandHideCardsMessage_); + if (((bitField1_ & 0x00040000) != 0)) { + output.writeMessage(51, getEndOfHandHideCardsMessage()); } - if (((bitField1_ & 0x00080000) == 0x00080000)) { - output.writeMessage(52, showMyCardsRequestMessage_); + if (((bitField1_ & 0x00080000) != 0)) { + output.writeMessage(52, getShowMyCardsRequestMessage()); } - if (((bitField1_ & 0x00100000) == 0x00100000)) { - output.writeMessage(53, afterHandShowCardsMessage_); + if (((bitField1_ & 0x00100000) != 0)) { + output.writeMessage(53, getAfterHandShowCardsMessage()); } - if (((bitField1_ & 0x00200000) == 0x00200000)) { - output.writeMessage(54, endOfGameMessage_); + if (((bitField1_ & 0x00200000) != 0)) { + output.writeMessage(54, getEndOfGameMessage()); } - if (((bitField1_ & 0x00400000) == 0x00400000)) { - output.writeMessage(55, playerIdChangedMessage_); + if (((bitField1_ & 0x00400000) != 0)) { + output.writeMessage(55, getPlayerIdChangedMessage()); } - if (((bitField1_ & 0x00800000) == 0x00800000)) { - output.writeMessage(56, askKickPlayerMessage_); + if (((bitField1_ & 0x00800000) != 0)) { + output.writeMessage(56, getAskKickPlayerMessage()); } - if (((bitField1_ & 0x01000000) == 0x01000000)) { - output.writeMessage(57, askKickDeniedMessage_); + if (((bitField1_ & 0x01000000) != 0)) { + output.writeMessage(57, getAskKickDeniedMessage()); } - if (((bitField1_ & 0x02000000) == 0x02000000)) { - output.writeMessage(58, startKickPetitionMessage_); + if (((bitField1_ & 0x02000000) != 0)) { + output.writeMessage(58, getStartKickPetitionMessage()); } - if (((bitField1_ & 0x04000000) == 0x04000000)) { - output.writeMessage(59, voteKickRequestMessage_); + if (((bitField1_ & 0x04000000) != 0)) { + output.writeMessage(59, getVoteKickRequestMessage()); } - if (((bitField1_ & 0x08000000) == 0x08000000)) { - output.writeMessage(60, voteKickReplyMessage_); + if (((bitField1_ & 0x08000000) != 0)) { + output.writeMessage(60, getVoteKickReplyMessage()); } - if (((bitField1_ & 0x10000000) == 0x10000000)) { - output.writeMessage(61, kickPetitionUpdateMessage_); + if (((bitField1_ & 0x10000000) != 0)) { + output.writeMessage(61, getKickPetitionUpdateMessage()); } - if (((bitField1_ & 0x20000000) == 0x20000000)) { - output.writeMessage(62, endKickPetitionMessage_); + if (((bitField1_ & 0x20000000) != 0)) { + output.writeMessage(62, getEndKickPetitionMessage()); } - if (((bitField1_ & 0x40000000) == 0x40000000)) { - output.writeMessage(63, statisticsMessage_); + if (((bitField1_ & 0x40000000) != 0)) { + output.writeMessage(63, getStatisticsMessage()); } - if (((bitField1_ & 0x80000000) == 0x80000000)) { - output.writeMessage(64, chatRequestMessage_); + if (((bitField1_ & 0x80000000) != 0)) { + output.writeMessage(64, getChatRequestMessage()); } - if (((bitField2_ & 0x00000001) == 0x00000001)) { - output.writeMessage(65, chatMessage_); + if (((bitField2_ & 0x00000001) != 0)) { + output.writeMessage(65, getChatMessage()); } - if (((bitField2_ & 0x00000002) == 0x00000002)) { - output.writeMessage(66, chatRejectMessage_); + if (((bitField2_ & 0x00000002) != 0)) { + output.writeMessage(66, getChatRejectMessage()); } - if (((bitField2_ & 0x00000004) == 0x00000004)) { - output.writeMessage(67, dialogMessage_); + if (((bitField2_ & 0x00000004) != 0)) { + output.writeMessage(67, getDialogMessage()); } - if (((bitField2_ & 0x00000008) == 0x00000008)) { - output.writeMessage(68, timeoutWarningMessage_); + if (((bitField2_ & 0x00000008) != 0)) { + output.writeMessage(68, getTimeoutWarningMessage()); } - if (((bitField2_ & 0x00000010) == 0x00000010)) { - output.writeMessage(69, resetTimeoutMessage_); + if (((bitField2_ & 0x00000010) != 0)) { + output.writeMessage(69, getResetTimeoutMessage()); } - if (((bitField2_ & 0x00000020) == 0x00000020)) { - output.writeMessage(70, reportAvatarMessage_); + if (((bitField2_ & 0x00000020) != 0)) { + output.writeMessage(70, getReportAvatarMessage()); } - if (((bitField2_ & 0x00000040) == 0x00000040)) { - output.writeMessage(71, reportAvatarAckMessage_); + if (((bitField2_ & 0x00000040) != 0)) { + output.writeMessage(71, getReportAvatarAckMessage()); } - if (((bitField2_ & 0x00000080) == 0x00000080)) { - output.writeMessage(72, reportGameMessage_); + if (((bitField2_ & 0x00000080) != 0)) { + output.writeMessage(72, getReportGameMessage()); } - if (((bitField2_ & 0x00000100) == 0x00000100)) { - output.writeMessage(73, reportGameAckMessage_); + if (((bitField2_ & 0x00000100) != 0)) { + output.writeMessage(73, getReportGameAckMessage()); } - if (((bitField2_ & 0x00000200) == 0x00000200)) { - output.writeMessage(74, errorMessage_); + if (((bitField2_ & 0x00000200) != 0)) { + output.writeMessage(74, getErrorMessage()); } - if (((bitField2_ & 0x00000400) == 0x00000400)) { - output.writeMessage(75, adminRemoveGameMessage_); + if (((bitField2_ & 0x00000400) != 0)) { + output.writeMessage(75, getAdminRemoveGameMessage()); } - if (((bitField2_ & 0x00000800) == 0x00000800)) { - output.writeMessage(76, adminRemoveGameAckMessage_); + if (((bitField2_ & 0x00000800) != 0)) { + output.writeMessage(76, getAdminRemoveGameAckMessage()); } - if (((bitField2_ & 0x00001000) == 0x00001000)) { - output.writeMessage(77, adminBanPlayerMessage_); + if (((bitField2_ & 0x00001000) != 0)) { + output.writeMessage(77, getAdminBanPlayerMessage()); } - if (((bitField2_ & 0x00002000) == 0x00002000)) { - output.writeMessage(78, adminBanPlayerAckMessage_); + if (((bitField2_ & 0x00002000) != 0)) { + output.writeMessage(78, getAdminBanPlayerAckMessage()); } - if (((bitField2_ & 0x00004000) == 0x00004000)) { - output.writeMessage(79, gameListSpectatorJoinedMessage_); + if (((bitField2_ & 0x00004000) != 0)) { + output.writeMessage(79, getGameListSpectatorJoinedMessage()); } - if (((bitField2_ & 0x00008000) == 0x00008000)) { - output.writeMessage(80, gameListSpectatorLeftMessage_); + if (((bitField2_ & 0x00008000) != 0)) { + output.writeMessage(80, getGameListSpectatorLeftMessage()); } - if (((bitField2_ & 0x00010000) == 0x00010000)) { - output.writeMessage(81, gameSpectatorJoinedMessage_); + if (((bitField2_ & 0x00010000) != 0)) { + output.writeMessage(81, getGameSpectatorJoinedMessage()); } - if (((bitField2_ & 0x00020000) == 0x00020000)) { - output.writeMessage(82, gameSpectatorLeftMessage_); + if (((bitField2_ & 0x00020000) != 0)) { + output.writeMessage(82, getGameSpectatorLeftMessage()); } - output.writeRawBytes(unknownFields); + unknownFields.writeTo(output); } - private int memoizedSerializedSize = -1; + @java.lang.Override public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, messageType_.getNumber()); + .computeEnumSize(1, messageType_); } - if (((bitField0_ & 0x00000002) == 0x00000002)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, announceMessage_); + .computeMessageSize(2, getAnnounceMessage()); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, initMessage_); + .computeMessageSize(3, getInitMessage()); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, authServerChallengeMessage_); + .computeMessageSize(4, getAuthServerChallengeMessage()); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, authClientResponseMessage_); + .computeMessageSize(5, getAuthClientResponseMessage()); } - if (((bitField0_ & 0x00000020) == 0x00000020)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, authServerVerificationMessage_); + .computeMessageSize(6, getAuthServerVerificationMessage()); } - if (((bitField0_ & 0x00000040) == 0x00000040)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, initAckMessage_); + .computeMessageSize(7, getInitAckMessage()); } - if (((bitField0_ & 0x00000080) == 0x00000080)) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, avatarRequestMessage_); + .computeMessageSize(8, getAvatarRequestMessage()); } - if (((bitField0_ & 0x00000100) == 0x00000100)) { + if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, avatarHeaderMessage_); + .computeMessageSize(9, getAvatarHeaderMessage()); } - if (((bitField0_ & 0x00000200) == 0x00000200)) { + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, avatarDataMessage_); + .computeMessageSize(10, getAvatarDataMessage()); } - if (((bitField0_ & 0x00000400) == 0x00000400)) { + if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, avatarEndMessage_); + .computeMessageSize(11, getAvatarEndMessage()); } - if (((bitField0_ & 0x00000800) == 0x00000800)) { + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, unknownAvatarMessage_); + .computeMessageSize(12, getUnknownAvatarMessage()); } - if (((bitField0_ & 0x00001000) == 0x00001000)) { + if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, playerListMessage_); + .computeMessageSize(13, getPlayerListMessage()); } - if (((bitField0_ & 0x00002000) == 0x00002000)) { + if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, gameListNewMessage_); + .computeMessageSize(14, getGameListNewMessage()); } - if (((bitField0_ & 0x00004000) == 0x00004000)) { + if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, gameListUpdateMessage_); + .computeMessageSize(15, getGameListUpdateMessage()); } - if (((bitField0_ & 0x00008000) == 0x00008000)) { + if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, gameListPlayerJoinedMessage_); + .computeMessageSize(16, getGameListPlayerJoinedMessage()); } - if (((bitField0_ & 0x00010000) == 0x00010000)) { + if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, gameListPlayerLeftMessage_); + .computeMessageSize(17, getGameListPlayerLeftMessage()); } - if (((bitField0_ & 0x00020000) == 0x00020000)) { + if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, gameListAdminChangedMessage_); + .computeMessageSize(18, getGameListAdminChangedMessage()); } - if (((bitField0_ & 0x00040000) == 0x00040000)) { + if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, playerInfoRequestMessage_); + .computeMessageSize(19, getPlayerInfoRequestMessage()); } - if (((bitField0_ & 0x00080000) == 0x00080000)) { + if (((bitField0_ & 0x00080000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, playerInfoReplyMessage_); + .computeMessageSize(20, getPlayerInfoReplyMessage()); } - if (((bitField0_ & 0x00100000) == 0x00100000)) { + if (((bitField0_ & 0x00100000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, subscriptionRequestMessage_); + .computeMessageSize(21, getSubscriptionRequestMessage()); } - if (((bitField0_ & 0x00200000) == 0x00200000)) { + if (((bitField0_ & 0x00200000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, joinExistingGameMessage_); + .computeMessageSize(22, getJoinExistingGameMessage()); } - if (((bitField0_ & 0x00400000) == 0x00400000)) { + if (((bitField0_ & 0x00400000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, joinNewGameMessage_); + .computeMessageSize(23, getJoinNewGameMessage()); } - if (((bitField0_ & 0x00800000) == 0x00800000)) { + if (((bitField0_ & 0x00800000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, rejoinExistingGameMessage_); + .computeMessageSize(24, getRejoinExistingGameMessage()); } - if (((bitField0_ & 0x01000000) == 0x01000000)) { + if (((bitField0_ & 0x01000000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(25, joinGameAckMessage_); + .computeMessageSize(25, getJoinGameAckMessage()); } - if (((bitField0_ & 0x02000000) == 0x02000000)) { + if (((bitField0_ & 0x02000000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(26, joinGameFailedMessage_); + .computeMessageSize(26, getJoinGameFailedMessage()); } - if (((bitField0_ & 0x04000000) == 0x04000000)) { + if (((bitField0_ & 0x04000000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(27, gamePlayerJoinedMessage_); + .computeMessageSize(27, getGamePlayerJoinedMessage()); } - if (((bitField0_ & 0x08000000) == 0x08000000)) { + if (((bitField0_ & 0x08000000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(28, gamePlayerLeftMessage_); + .computeMessageSize(28, getGamePlayerLeftMessage()); } - if (((bitField0_ & 0x10000000) == 0x10000000)) { + if (((bitField0_ & 0x10000000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(29, gameAdminChangedMessage_); + .computeMessageSize(29, getGameAdminChangedMessage()); } - if (((bitField0_ & 0x20000000) == 0x20000000)) { + if (((bitField0_ & 0x20000000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(30, removedFromGameMessage_); + .computeMessageSize(30, getRemovedFromGameMessage()); } - if (((bitField0_ & 0x40000000) == 0x40000000)) { + if (((bitField0_ & 0x40000000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(31, kickPlayerRequestMessage_); + .computeMessageSize(31, getKickPlayerRequestMessage()); } - if (((bitField0_ & 0x80000000) == 0x80000000)) { + if (((bitField0_ & 0x80000000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(32, leaveGameRequestMessage_); + .computeMessageSize(32, getLeaveGameRequestMessage()); } - if (((bitField1_ & 0x00000001) == 0x00000001)) { + if (((bitField1_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(33, invitePlayerToGameMessage_); + .computeMessageSize(33, getInvitePlayerToGameMessage()); } - if (((bitField1_ & 0x00000002) == 0x00000002)) { + if (((bitField1_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(34, inviteNotifyMessage_); + .computeMessageSize(34, getInviteNotifyMessage()); } - if (((bitField1_ & 0x00000004) == 0x00000004)) { + if (((bitField1_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(35, rejectGameInvitationMessage_); + .computeMessageSize(35, getRejectGameInvitationMessage()); } - if (((bitField1_ & 0x00000008) == 0x00000008)) { + if (((bitField1_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(36, rejectInvNotifyMessage_); + .computeMessageSize(36, getRejectInvNotifyMessage()); } - if (((bitField1_ & 0x00000010) == 0x00000010)) { + if (((bitField1_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(37, startEventMessage_); + .computeMessageSize(37, getStartEventMessage()); } - if (((bitField1_ & 0x00000020) == 0x00000020)) { + if (((bitField1_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(38, startEventAckMessage_); + .computeMessageSize(38, getStartEventAckMessage()); } - if (((bitField1_ & 0x00000040) == 0x00000040)) { + if (((bitField1_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(39, gameStartInitialMessage_); + .computeMessageSize(39, getGameStartInitialMessage()); } - if (((bitField1_ & 0x00000080) == 0x00000080)) { + if (((bitField1_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(40, gameStartRejoinMessage_); + .computeMessageSize(40, getGameStartRejoinMessage()); } - if (((bitField1_ & 0x00000100) == 0x00000100)) { + if (((bitField1_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(41, handStartMessage_); + .computeMessageSize(41, getHandStartMessage()); } - if (((bitField1_ & 0x00000200) == 0x00000200)) { + if (((bitField1_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(42, playersTurnMessage_); + .computeMessageSize(42, getPlayersTurnMessage()); } - if (((bitField1_ & 0x00000400) == 0x00000400)) { + if (((bitField1_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(43, myActionRequestMessage_); + .computeMessageSize(43, getMyActionRequestMessage()); } - if (((bitField1_ & 0x00000800) == 0x00000800)) { + if (((bitField1_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(44, yourActionRejectedMessage_); + .computeMessageSize(44, getYourActionRejectedMessage()); } - if (((bitField1_ & 0x00001000) == 0x00001000)) { + if (((bitField1_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(45, playersActionDoneMessage_); + .computeMessageSize(45, getPlayersActionDoneMessage()); } - if (((bitField1_ & 0x00002000) == 0x00002000)) { + if (((bitField1_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(46, dealFlopCardsMessage_); + .computeMessageSize(46, getDealFlopCardsMessage()); } - if (((bitField1_ & 0x00004000) == 0x00004000)) { + if (((bitField1_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(47, dealTurnCardMessage_); + .computeMessageSize(47, getDealTurnCardMessage()); } - if (((bitField1_ & 0x00008000) == 0x00008000)) { + if (((bitField1_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(48, dealRiverCardMessage_); + .computeMessageSize(48, getDealRiverCardMessage()); } - if (((bitField1_ & 0x00010000) == 0x00010000)) { + if (((bitField1_ & 0x00010000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(49, allInShowCardsMessage_); + .computeMessageSize(49, getAllInShowCardsMessage()); } - if (((bitField1_ & 0x00020000) == 0x00020000)) { + if (((bitField1_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(50, endOfHandShowCardsMessage_); + .computeMessageSize(50, getEndOfHandShowCardsMessage()); } - if (((bitField1_ & 0x00040000) == 0x00040000)) { + if (((bitField1_ & 0x00040000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(51, endOfHandHideCardsMessage_); + .computeMessageSize(51, getEndOfHandHideCardsMessage()); } - if (((bitField1_ & 0x00080000) == 0x00080000)) { + if (((bitField1_ & 0x00080000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(52, showMyCardsRequestMessage_); + .computeMessageSize(52, getShowMyCardsRequestMessage()); } - if (((bitField1_ & 0x00100000) == 0x00100000)) { + if (((bitField1_ & 0x00100000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(53, afterHandShowCardsMessage_); + .computeMessageSize(53, getAfterHandShowCardsMessage()); } - if (((bitField1_ & 0x00200000) == 0x00200000)) { + if (((bitField1_ & 0x00200000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(54, endOfGameMessage_); + .computeMessageSize(54, getEndOfGameMessage()); } - if (((bitField1_ & 0x00400000) == 0x00400000)) { + if (((bitField1_ & 0x00400000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(55, playerIdChangedMessage_); + .computeMessageSize(55, getPlayerIdChangedMessage()); } - if (((bitField1_ & 0x00800000) == 0x00800000)) { + if (((bitField1_ & 0x00800000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(56, askKickPlayerMessage_); + .computeMessageSize(56, getAskKickPlayerMessage()); } - if (((bitField1_ & 0x01000000) == 0x01000000)) { + if (((bitField1_ & 0x01000000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(57, askKickDeniedMessage_); + .computeMessageSize(57, getAskKickDeniedMessage()); } - if (((bitField1_ & 0x02000000) == 0x02000000)) { + if (((bitField1_ & 0x02000000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(58, startKickPetitionMessage_); + .computeMessageSize(58, getStartKickPetitionMessage()); } - if (((bitField1_ & 0x04000000) == 0x04000000)) { + if (((bitField1_ & 0x04000000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(59, voteKickRequestMessage_); + .computeMessageSize(59, getVoteKickRequestMessage()); } - if (((bitField1_ & 0x08000000) == 0x08000000)) { + if (((bitField1_ & 0x08000000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(60, voteKickReplyMessage_); + .computeMessageSize(60, getVoteKickReplyMessage()); } - if (((bitField1_ & 0x10000000) == 0x10000000)) { + if (((bitField1_ & 0x10000000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(61, kickPetitionUpdateMessage_); + .computeMessageSize(61, getKickPetitionUpdateMessage()); } - if (((bitField1_ & 0x20000000) == 0x20000000)) { + if (((bitField1_ & 0x20000000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(62, endKickPetitionMessage_); + .computeMessageSize(62, getEndKickPetitionMessage()); } - if (((bitField1_ & 0x40000000) == 0x40000000)) { + if (((bitField1_ & 0x40000000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(63, statisticsMessage_); + .computeMessageSize(63, getStatisticsMessage()); } - if (((bitField1_ & 0x80000000) == 0x80000000)) { + if (((bitField1_ & 0x80000000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(64, chatRequestMessage_); + .computeMessageSize(64, getChatRequestMessage()); } - if (((bitField2_ & 0x00000001) == 0x00000001)) { + if (((bitField2_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(65, chatMessage_); + .computeMessageSize(65, getChatMessage()); } - if (((bitField2_ & 0x00000002) == 0x00000002)) { + if (((bitField2_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(66, chatRejectMessage_); + .computeMessageSize(66, getChatRejectMessage()); } - if (((bitField2_ & 0x00000004) == 0x00000004)) { + if (((bitField2_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(67, dialogMessage_); + .computeMessageSize(67, getDialogMessage()); } - if (((bitField2_ & 0x00000008) == 0x00000008)) { + if (((bitField2_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(68, timeoutWarningMessage_); + .computeMessageSize(68, getTimeoutWarningMessage()); } - if (((bitField2_ & 0x00000010) == 0x00000010)) { + if (((bitField2_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(69, resetTimeoutMessage_); + .computeMessageSize(69, getResetTimeoutMessage()); } - if (((bitField2_ & 0x00000020) == 0x00000020)) { + if (((bitField2_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(70, reportAvatarMessage_); + .computeMessageSize(70, getReportAvatarMessage()); } - if (((bitField2_ & 0x00000040) == 0x00000040)) { + if (((bitField2_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(71, reportAvatarAckMessage_); + .computeMessageSize(71, getReportAvatarAckMessage()); } - if (((bitField2_ & 0x00000080) == 0x00000080)) { + if (((bitField2_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(72, reportGameMessage_); + .computeMessageSize(72, getReportGameMessage()); } - if (((bitField2_ & 0x00000100) == 0x00000100)) { + if (((bitField2_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(73, reportGameAckMessage_); + .computeMessageSize(73, getReportGameAckMessage()); } - if (((bitField2_ & 0x00000200) == 0x00000200)) { + if (((bitField2_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(74, errorMessage_); + .computeMessageSize(74, getErrorMessage()); } - if (((bitField2_ & 0x00000400) == 0x00000400)) { + if (((bitField2_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(75, adminRemoveGameMessage_); + .computeMessageSize(75, getAdminRemoveGameMessage()); } - if (((bitField2_ & 0x00000800) == 0x00000800)) { + if (((bitField2_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(76, adminRemoveGameAckMessage_); + .computeMessageSize(76, getAdminRemoveGameAckMessage()); } - if (((bitField2_ & 0x00001000) == 0x00001000)) { + if (((bitField2_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(77, adminBanPlayerMessage_); + .computeMessageSize(77, getAdminBanPlayerMessage()); } - if (((bitField2_ & 0x00002000) == 0x00002000)) { + if (((bitField2_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(78, adminBanPlayerAckMessage_); + .computeMessageSize(78, getAdminBanPlayerAckMessage()); } - if (((bitField2_ & 0x00004000) == 0x00004000)) { + if (((bitField2_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(79, gameListSpectatorJoinedMessage_); + .computeMessageSize(79, getGameListSpectatorJoinedMessage()); } - if (((bitField2_ & 0x00008000) == 0x00008000)) { + if (((bitField2_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(80, gameListSpectatorLeftMessage_); + .computeMessageSize(80, getGameListSpectatorLeftMessage()); } - if (((bitField2_ & 0x00010000) == 0x00010000)) { + if (((bitField2_ & 0x00010000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(81, gameSpectatorJoinedMessage_); + .computeMessageSize(81, getGameSpectatorJoinedMessage()); } - if (((bitField2_ & 0x00020000) == 0x00020000)) { + if (((bitField2_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(82, gameSpectatorLeftMessage_); + .computeMessageSize(82, getGameSpectatorLeftMessage()); } - size += unknownFields.size(); + size += unknownFields.getSerializedSize(); memoizedSerializedSize = size; return size; } - 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( + 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); } - public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data); } public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, data, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input); + return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseDelimitedFrom(input, extensionRegistry); + return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return PARSER.parseFrom(input); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input); } public static de.pokerth.protocol.ProtoBuf.PokerTHMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return PARSER.parseFrom(input, extensionRegistry); + return com.google.protobuf.GeneratedMessageLite.parseFrom( + DEFAULT_INSTANCE, input, extensionRegistry); } - public static Builder newBuilder() { return Builder.create(); } - public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return (Builder) DEFAULT_INSTANCE.createBuilder(); + } public static Builder newBuilder(de.pokerth.protocol.ProtoBuf.PokerTHMessage prototype) { - return newBuilder().mergeFrom(prototype); + return (Builder) DEFAULT_INSTANCE.createBuilder(prototype); } - public Builder toBuilder() { return newBuilder(this); } /** * Protobuf type {@code PokerTHMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< - de.pokerth.protocol.ProtoBuf.PokerTHMessage, Builder> - implements + de.pokerth.protocol.ProtoBuf.PokerTHMessage, Builder> implements // @@protoc_insertion_point(builder_implements:PokerTHMessage) de.pokerth.protocol.ProtoBuf.PokerTHMessageOrBuilder { // Construct using de.pokerth.protocol.ProtoBuf.PokerTHMessage.newBuilder() private Builder() { - maybeForceBuilderInitialization(); + super(DEFAULT_INSTANCE); } - private void maybeForceBuilderInitialization() { - } - private static Builder create() { - return new Builder(); - } - 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; - } - - public Builder clone() { - return create().mergeFrom(buildPartial()); - } - - public de.pokerth.protocol.ProtoBuf.PokerTHMessage getDefaultInstanceForType() { - return de.pokerth.protocol.ProtoBuf.PokerTHMessage.getDefaultInstance(); - } - - public de.pokerth.protocol.ProtoBuf.PokerTHMessage build() { - de.pokerth.protocol.ProtoBuf.PokerTHMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - 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()); - } - setUnknownFields( - getUnknownFields().concat(other.unknownFields)); - 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 { - de.pokerth.protocol.ProtoBuf.PokerTHMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (de.pokerth.protocol.ProtoBuf.PokerTHMessage) e.getUnfinishedMessage(); - throw e; - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - private int bitField1_; - private int bitField2_; - - private de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType messageType_ = de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType.Type_AnnounceMessage; /** * required .PokerTHMessage.PokerTHMessageType messageType = 1; */ + @java.lang.Override public boolean hasMessageType() { - return ((bitField0_ & 0x00000001) == 0x00000001); + return instance.hasMessageType(); } /** * required .PokerTHMessage.PokerTHMessageType messageType = 1; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType getMessageType() { - return messageType_; + return instance.getMessageType(); } /** * required .PokerTHMessage.PokerTHMessageType messageType = 1; */ public Builder setMessageType(de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - messageType_ = value; - + copyOnWrite(); + instance.setMessageType(value); return this; } /** * required .PokerTHMessage.PokerTHMessageType messageType = 1; */ public Builder clearMessageType() { - bitField0_ = (bitField0_ & ~0x00000001); - messageType_ = de.pokerth.protocol.ProtoBuf.PokerTHMessage.PokerTHMessageType.Type_AnnounceMessage; - + copyOnWrite(); + instance.clearMessageType(); return this; } - private de.pokerth.protocol.ProtoBuf.AnnounceMessage announceMessage_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.getDefaultInstance(); /** * optional .AnnounceMessage announceMessage = 2; */ + @java.lang.Override public boolean hasAnnounceMessage() { - return ((bitField0_ & 0x00000002) == 0x00000002); + return instance.hasAnnounceMessage(); } /** * optional .AnnounceMessage announceMessage = 2; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AnnounceMessage getAnnounceMessage() { - return announceMessage_; + return instance.getAnnounceMessage(); } /** * optional .AnnounceMessage announceMessage = 2; */ public Builder setAnnounceMessage(de.pokerth.protocol.ProtoBuf.AnnounceMessage value) { - if (value == null) { - throw new NullPointerException(); - } - announceMessage_ = value; - - bitField0_ |= 0x00000002; + copyOnWrite(); + instance.setAnnounceMessage(value); return this; - } + } /** * optional .AnnounceMessage announceMessage = 2; */ public Builder setAnnounceMessage( de.pokerth.protocol.ProtoBuf.AnnounceMessage.Builder builderForValue) { - announceMessage_ = builderForValue.build(); - - bitField0_ |= 0x00000002; + copyOnWrite(); + instance.setAnnounceMessage(builderForValue); return this; } /** * optional .AnnounceMessage announceMessage = 2; */ public Builder mergeAnnounceMessage(de.pokerth.protocol.ProtoBuf.AnnounceMessage value) { - 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; - } - - bitField0_ |= 0x00000002; + copyOnWrite(); + instance.mergeAnnounceMessage(value); return this; } /** * optional .AnnounceMessage announceMessage = 2; */ - public Builder clearAnnounceMessage() { - announceMessage_ = de.pokerth.protocol.ProtoBuf.AnnounceMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00000002); + public Builder clearAnnounceMessage() { copyOnWrite(); + instance.clearAnnounceMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.InitMessage initMessage_ = de.pokerth.protocol.ProtoBuf.InitMessage.getDefaultInstance(); /** * optional .InitMessage initMessage = 3; */ + @java.lang.Override public boolean hasInitMessage() { - return ((bitField0_ & 0x00000004) == 0x00000004); + return instance.hasInitMessage(); } /** * optional .InitMessage initMessage = 3; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.InitMessage getInitMessage() { - return initMessage_; + return instance.getInitMessage(); } /** * optional .InitMessage initMessage = 3; */ public Builder setInitMessage(de.pokerth.protocol.ProtoBuf.InitMessage value) { - if (value == null) { - throw new NullPointerException(); - } - initMessage_ = value; - - bitField0_ |= 0x00000004; + copyOnWrite(); + instance.setInitMessage(value); return this; - } + } /** * optional .InitMessage initMessage = 3; */ public Builder setInitMessage( de.pokerth.protocol.ProtoBuf.InitMessage.Builder builderForValue) { - initMessage_ = builderForValue.build(); - - bitField0_ |= 0x00000004; + copyOnWrite(); + instance.setInitMessage(builderForValue); return this; } /** * optional .InitMessage initMessage = 3; */ public Builder mergeInitMessage(de.pokerth.protocol.ProtoBuf.InitMessage value) { - 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; - } - - bitField0_ |= 0x00000004; + copyOnWrite(); + instance.mergeInitMessage(value); return this; } /** * optional .InitMessage initMessage = 3; */ - public Builder clearInitMessage() { - initMessage_ = de.pokerth.protocol.ProtoBuf.InitMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00000004); + public Builder clearInitMessage() { copyOnWrite(); + instance.clearInitMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage authServerChallengeMessage_ = de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.getDefaultInstance(); /** * optional .AuthServerChallengeMessage authServerChallengeMessage = 4; */ + @java.lang.Override public boolean hasAuthServerChallengeMessage() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return instance.hasAuthServerChallengeMessage(); } /** * optional .AuthServerChallengeMessage authServerChallengeMessage = 4; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage getAuthServerChallengeMessage() { - return authServerChallengeMessage_; + return instance.getAuthServerChallengeMessage(); } /** * optional .AuthServerChallengeMessage authServerChallengeMessage = 4; */ public Builder setAuthServerChallengeMessage(de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage value) { - if (value == null) { - throw new NullPointerException(); - } - authServerChallengeMessage_ = value; - - bitField0_ |= 0x00000008; + copyOnWrite(); + instance.setAuthServerChallengeMessage(value); return this; - } + } /** * optional .AuthServerChallengeMessage authServerChallengeMessage = 4; */ public Builder setAuthServerChallengeMessage( de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.Builder builderForValue) { - authServerChallengeMessage_ = builderForValue.build(); - - bitField0_ |= 0x00000008; + copyOnWrite(); + instance.setAuthServerChallengeMessage(builderForValue); return this; } /** * optional .AuthServerChallengeMessage authServerChallengeMessage = 4; */ public Builder mergeAuthServerChallengeMessage(de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage value) { - 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; - } - - bitField0_ |= 0x00000008; + copyOnWrite(); + instance.mergeAuthServerChallengeMessage(value); return this; } /** * optional .AuthServerChallengeMessage authServerChallengeMessage = 4; */ - public Builder clearAuthServerChallengeMessage() { - authServerChallengeMessage_ = de.pokerth.protocol.ProtoBuf.AuthServerChallengeMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00000008); + public Builder clearAuthServerChallengeMessage() { copyOnWrite(); + instance.clearAuthServerChallengeMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage authClientResponseMessage_ = de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.getDefaultInstance(); /** * optional .AuthClientResponseMessage authClientResponseMessage = 5; */ + @java.lang.Override public boolean hasAuthClientResponseMessage() { - return ((bitField0_ & 0x00000010) == 0x00000010); + return instance.hasAuthClientResponseMessage(); } /** * optional .AuthClientResponseMessage authClientResponseMessage = 5; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage getAuthClientResponseMessage() { - return authClientResponseMessage_; + return instance.getAuthClientResponseMessage(); } /** * optional .AuthClientResponseMessage authClientResponseMessage = 5; */ public Builder setAuthClientResponseMessage(de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage value) { - if (value == null) { - throw new NullPointerException(); - } - authClientResponseMessage_ = value; - - bitField0_ |= 0x00000010; + copyOnWrite(); + instance.setAuthClientResponseMessage(value); return this; - } + } /** * optional .AuthClientResponseMessage authClientResponseMessage = 5; */ public Builder setAuthClientResponseMessage( de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.Builder builderForValue) { - authClientResponseMessage_ = builderForValue.build(); - - bitField0_ |= 0x00000010; + copyOnWrite(); + instance.setAuthClientResponseMessage(builderForValue); return this; } /** * optional .AuthClientResponseMessage authClientResponseMessage = 5; */ public Builder mergeAuthClientResponseMessage(de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage value) { - 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; - } - - bitField0_ |= 0x00000010; + copyOnWrite(); + instance.mergeAuthClientResponseMessage(value); return this; } /** * optional .AuthClientResponseMessage authClientResponseMessage = 5; */ - public Builder clearAuthClientResponseMessage() { - authClientResponseMessage_ = de.pokerth.protocol.ProtoBuf.AuthClientResponseMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00000010); + public Builder clearAuthClientResponseMessage() { copyOnWrite(); + instance.clearAuthClientResponseMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage authServerVerificationMessage_ = de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.getDefaultInstance(); /** * optional .AuthServerVerificationMessage authServerVerificationMessage = 6; */ + @java.lang.Override public boolean hasAuthServerVerificationMessage() { - return ((bitField0_ & 0x00000020) == 0x00000020); + return instance.hasAuthServerVerificationMessage(); } /** * optional .AuthServerVerificationMessage authServerVerificationMessage = 6; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage getAuthServerVerificationMessage() { - return authServerVerificationMessage_; + return instance.getAuthServerVerificationMessage(); } /** * optional .AuthServerVerificationMessage authServerVerificationMessage = 6; */ public Builder setAuthServerVerificationMessage(de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage value) { - if (value == null) { - throw new NullPointerException(); - } - authServerVerificationMessage_ = value; - - bitField0_ |= 0x00000020; + copyOnWrite(); + instance.setAuthServerVerificationMessage(value); return this; - } + } /** * optional .AuthServerVerificationMessage authServerVerificationMessage = 6; */ public Builder setAuthServerVerificationMessage( de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.Builder builderForValue) { - authServerVerificationMessage_ = builderForValue.build(); - - bitField0_ |= 0x00000020; + copyOnWrite(); + instance.setAuthServerVerificationMessage(builderForValue); return this; } /** * optional .AuthServerVerificationMessage authServerVerificationMessage = 6; */ public Builder mergeAuthServerVerificationMessage(de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage value) { - 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; - } - - bitField0_ |= 0x00000020; + copyOnWrite(); + instance.mergeAuthServerVerificationMessage(value); return this; } /** * optional .AuthServerVerificationMessage authServerVerificationMessage = 6; */ - public Builder clearAuthServerVerificationMessage() { - authServerVerificationMessage_ = de.pokerth.protocol.ProtoBuf.AuthServerVerificationMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00000020); + public Builder clearAuthServerVerificationMessage() { copyOnWrite(); + instance.clearAuthServerVerificationMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.InitAckMessage initAckMessage_ = de.pokerth.protocol.ProtoBuf.InitAckMessage.getDefaultInstance(); /** * optional .InitAckMessage initAckMessage = 7; */ + @java.lang.Override public boolean hasInitAckMessage() { - return ((bitField0_ & 0x00000040) == 0x00000040); + return instance.hasInitAckMessage(); } /** * optional .InitAckMessage initAckMessage = 7; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.InitAckMessage getInitAckMessage() { - return initAckMessage_; + return instance.getInitAckMessage(); } /** * optional .InitAckMessage initAckMessage = 7; */ public Builder setInitAckMessage(de.pokerth.protocol.ProtoBuf.InitAckMessage value) { - if (value == null) { - throw new NullPointerException(); - } - initAckMessage_ = value; - - bitField0_ |= 0x00000040; + copyOnWrite(); + instance.setInitAckMessage(value); return this; - } + } /** * optional .InitAckMessage initAckMessage = 7; */ public Builder setInitAckMessage( de.pokerth.protocol.ProtoBuf.InitAckMessage.Builder builderForValue) { - initAckMessage_ = builderForValue.build(); - - bitField0_ |= 0x00000040; + copyOnWrite(); + instance.setInitAckMessage(builderForValue); return this; } /** * optional .InitAckMessage initAckMessage = 7; */ public Builder mergeInitAckMessage(de.pokerth.protocol.ProtoBuf.InitAckMessage value) { - 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; - } - - bitField0_ |= 0x00000040; + copyOnWrite(); + instance.mergeInitAckMessage(value); return this; } /** * optional .InitAckMessage initAckMessage = 7; */ - public Builder clearInitAckMessage() { - initAckMessage_ = de.pokerth.protocol.ProtoBuf.InitAckMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00000040); + public Builder clearInitAckMessage() { copyOnWrite(); + instance.clearInitAckMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.AvatarRequestMessage avatarRequestMessage_ = de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.getDefaultInstance(); /** * optional .AvatarRequestMessage avatarRequestMessage = 8; */ + @java.lang.Override public boolean hasAvatarRequestMessage() { - return ((bitField0_ & 0x00000080) == 0x00000080); + return instance.hasAvatarRequestMessage(); } /** * optional .AvatarRequestMessage avatarRequestMessage = 8; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AvatarRequestMessage getAvatarRequestMessage() { - return avatarRequestMessage_; + return instance.getAvatarRequestMessage(); } /** * optional .AvatarRequestMessage avatarRequestMessage = 8; */ public Builder setAvatarRequestMessage(de.pokerth.protocol.ProtoBuf.AvatarRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - avatarRequestMessage_ = value; - - bitField0_ |= 0x00000080; + copyOnWrite(); + instance.setAvatarRequestMessage(value); return this; - } + } /** * optional .AvatarRequestMessage avatarRequestMessage = 8; */ public Builder setAvatarRequestMessage( de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.Builder builderForValue) { - avatarRequestMessage_ = builderForValue.build(); - - bitField0_ |= 0x00000080; + copyOnWrite(); + instance.setAvatarRequestMessage(builderForValue); return this; } /** * optional .AvatarRequestMessage avatarRequestMessage = 8; */ public Builder mergeAvatarRequestMessage(de.pokerth.protocol.ProtoBuf.AvatarRequestMessage value) { - 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; - } - - bitField0_ |= 0x00000080; + copyOnWrite(); + instance.mergeAvatarRequestMessage(value); return this; } /** * optional .AvatarRequestMessage avatarRequestMessage = 8; */ - public Builder clearAvatarRequestMessage() { - avatarRequestMessage_ = de.pokerth.protocol.ProtoBuf.AvatarRequestMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00000080); + public Builder clearAvatarRequestMessage() { copyOnWrite(); + instance.clearAvatarRequestMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage avatarHeaderMessage_ = de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.getDefaultInstance(); /** * optional .AvatarHeaderMessage avatarHeaderMessage = 9; */ + @java.lang.Override public boolean hasAvatarHeaderMessage() { - return ((bitField0_ & 0x00000100) == 0x00000100); + return instance.hasAvatarHeaderMessage(); } /** * optional .AvatarHeaderMessage avatarHeaderMessage = 9; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage getAvatarHeaderMessage() { - return avatarHeaderMessage_; + return instance.getAvatarHeaderMessage(); } /** * optional .AvatarHeaderMessage avatarHeaderMessage = 9; */ public Builder setAvatarHeaderMessage(de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage value) { - if (value == null) { - throw new NullPointerException(); - } - avatarHeaderMessage_ = value; - - bitField0_ |= 0x00000100; + copyOnWrite(); + instance.setAvatarHeaderMessage(value); return this; - } + } /** * optional .AvatarHeaderMessage avatarHeaderMessage = 9; */ public Builder setAvatarHeaderMessage( de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.Builder builderForValue) { - avatarHeaderMessage_ = builderForValue.build(); - - bitField0_ |= 0x00000100; + copyOnWrite(); + instance.setAvatarHeaderMessage(builderForValue); return this; } /** * optional .AvatarHeaderMessage avatarHeaderMessage = 9; */ public Builder mergeAvatarHeaderMessage(de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage value) { - 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; - } - - bitField0_ |= 0x00000100; + copyOnWrite(); + instance.mergeAvatarHeaderMessage(value); return this; } /** * optional .AvatarHeaderMessage avatarHeaderMessage = 9; */ - public Builder clearAvatarHeaderMessage() { - avatarHeaderMessage_ = de.pokerth.protocol.ProtoBuf.AvatarHeaderMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00000100); + public Builder clearAvatarHeaderMessage() { copyOnWrite(); + instance.clearAvatarHeaderMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.AvatarDataMessage avatarDataMessage_ = de.pokerth.protocol.ProtoBuf.AvatarDataMessage.getDefaultInstance(); /** * optional .AvatarDataMessage avatarDataMessage = 10; */ + @java.lang.Override public boolean hasAvatarDataMessage() { - return ((bitField0_ & 0x00000200) == 0x00000200); + return instance.hasAvatarDataMessage(); } /** * optional .AvatarDataMessage avatarDataMessage = 10; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AvatarDataMessage getAvatarDataMessage() { - return avatarDataMessage_; + return instance.getAvatarDataMessage(); } /** * optional .AvatarDataMessage avatarDataMessage = 10; */ public Builder setAvatarDataMessage(de.pokerth.protocol.ProtoBuf.AvatarDataMessage value) { - if (value == null) { - throw new NullPointerException(); - } - avatarDataMessage_ = value; - - bitField0_ |= 0x00000200; + copyOnWrite(); + instance.setAvatarDataMessage(value); return this; - } + } /** * optional .AvatarDataMessage avatarDataMessage = 10; */ public Builder setAvatarDataMessage( de.pokerth.protocol.ProtoBuf.AvatarDataMessage.Builder builderForValue) { - avatarDataMessage_ = builderForValue.build(); - - bitField0_ |= 0x00000200; + copyOnWrite(); + instance.setAvatarDataMessage(builderForValue); return this; } /** * optional .AvatarDataMessage avatarDataMessage = 10; */ public Builder mergeAvatarDataMessage(de.pokerth.protocol.ProtoBuf.AvatarDataMessage value) { - 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; - } - - bitField0_ |= 0x00000200; + copyOnWrite(); + instance.mergeAvatarDataMessage(value); return this; } /** * optional .AvatarDataMessage avatarDataMessage = 10; */ - public Builder clearAvatarDataMessage() { - avatarDataMessage_ = de.pokerth.protocol.ProtoBuf.AvatarDataMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00000200); + public Builder clearAvatarDataMessage() { copyOnWrite(); + instance.clearAvatarDataMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.AvatarEndMessage avatarEndMessage_ = de.pokerth.protocol.ProtoBuf.AvatarEndMessage.getDefaultInstance(); /** * optional .AvatarEndMessage avatarEndMessage = 11; */ + @java.lang.Override public boolean hasAvatarEndMessage() { - return ((bitField0_ & 0x00000400) == 0x00000400); + return instance.hasAvatarEndMessage(); } /** * optional .AvatarEndMessage avatarEndMessage = 11; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AvatarEndMessage getAvatarEndMessage() { - return avatarEndMessage_; + return instance.getAvatarEndMessage(); } /** * optional .AvatarEndMessage avatarEndMessage = 11; */ public Builder setAvatarEndMessage(de.pokerth.protocol.ProtoBuf.AvatarEndMessage value) { - if (value == null) { - throw new NullPointerException(); - } - avatarEndMessage_ = value; - - bitField0_ |= 0x00000400; + copyOnWrite(); + instance.setAvatarEndMessage(value); return this; - } + } /** * optional .AvatarEndMessage avatarEndMessage = 11; */ public Builder setAvatarEndMessage( de.pokerth.protocol.ProtoBuf.AvatarEndMessage.Builder builderForValue) { - avatarEndMessage_ = builderForValue.build(); - - bitField0_ |= 0x00000400; + copyOnWrite(); + instance.setAvatarEndMessage(builderForValue); return this; } /** * optional .AvatarEndMessage avatarEndMessage = 11; */ public Builder mergeAvatarEndMessage(de.pokerth.protocol.ProtoBuf.AvatarEndMessage value) { - 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; - } - - bitField0_ |= 0x00000400; + copyOnWrite(); + instance.mergeAvatarEndMessage(value); return this; } /** * optional .AvatarEndMessage avatarEndMessage = 11; */ - public Builder clearAvatarEndMessage() { - avatarEndMessage_ = de.pokerth.protocol.ProtoBuf.AvatarEndMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00000400); + public Builder clearAvatarEndMessage() { copyOnWrite(); + instance.clearAvatarEndMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage unknownAvatarMessage_ = de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.getDefaultInstance(); /** * optional .UnknownAvatarMessage unknownAvatarMessage = 12; */ + @java.lang.Override public boolean hasUnknownAvatarMessage() { - return ((bitField0_ & 0x00000800) == 0x00000800); + return instance.hasUnknownAvatarMessage(); } /** * optional .UnknownAvatarMessage unknownAvatarMessage = 12; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage getUnknownAvatarMessage() { - return unknownAvatarMessage_; + return instance.getUnknownAvatarMessage(); } /** * optional .UnknownAvatarMessage unknownAvatarMessage = 12; */ public Builder setUnknownAvatarMessage(de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage value) { - if (value == null) { - throw new NullPointerException(); - } - unknownAvatarMessage_ = value; - - bitField0_ |= 0x00000800; + copyOnWrite(); + instance.setUnknownAvatarMessage(value); return this; - } + } /** * optional .UnknownAvatarMessage unknownAvatarMessage = 12; */ public Builder setUnknownAvatarMessage( de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.Builder builderForValue) { - unknownAvatarMessage_ = builderForValue.build(); - - bitField0_ |= 0x00000800; + copyOnWrite(); + instance.setUnknownAvatarMessage(builderForValue); return this; } /** * optional .UnknownAvatarMessage unknownAvatarMessage = 12; */ public Builder mergeUnknownAvatarMessage(de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage value) { - 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; - } - - bitField0_ |= 0x00000800; + copyOnWrite(); + instance.mergeUnknownAvatarMessage(value); return this; } /** * optional .UnknownAvatarMessage unknownAvatarMessage = 12; */ - public Builder clearUnknownAvatarMessage() { - unknownAvatarMessage_ = de.pokerth.protocol.ProtoBuf.UnknownAvatarMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00000800); + public Builder clearUnknownAvatarMessage() { copyOnWrite(); + instance.clearUnknownAvatarMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.PlayerListMessage playerListMessage_ = de.pokerth.protocol.ProtoBuf.PlayerListMessage.getDefaultInstance(); /** * optional .PlayerListMessage playerListMessage = 13; */ + @java.lang.Override public boolean hasPlayerListMessage() { - return ((bitField0_ & 0x00001000) == 0x00001000); + return instance.hasPlayerListMessage(); } /** * optional .PlayerListMessage playerListMessage = 13; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerListMessage getPlayerListMessage() { - return playerListMessage_; + return instance.getPlayerListMessage(); } /** * optional .PlayerListMessage playerListMessage = 13; */ public Builder setPlayerListMessage(de.pokerth.protocol.ProtoBuf.PlayerListMessage value) { - if (value == null) { - throw new NullPointerException(); - } - playerListMessage_ = value; - - bitField0_ |= 0x00001000; + copyOnWrite(); + instance.setPlayerListMessage(value); return this; - } + } /** * optional .PlayerListMessage playerListMessage = 13; */ public Builder setPlayerListMessage( de.pokerth.protocol.ProtoBuf.PlayerListMessage.Builder builderForValue) { - playerListMessage_ = builderForValue.build(); - - bitField0_ |= 0x00001000; + copyOnWrite(); + instance.setPlayerListMessage(builderForValue); return this; } /** * optional .PlayerListMessage playerListMessage = 13; */ public Builder mergePlayerListMessage(de.pokerth.protocol.ProtoBuf.PlayerListMessage value) { - 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; - } - - bitField0_ |= 0x00001000; + copyOnWrite(); + instance.mergePlayerListMessage(value); return this; } /** * optional .PlayerListMessage playerListMessage = 13; */ - public Builder clearPlayerListMessage() { - playerListMessage_ = de.pokerth.protocol.ProtoBuf.PlayerListMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00001000); + public Builder clearPlayerListMessage() { copyOnWrite(); + instance.clearPlayerListMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.GameListNewMessage gameListNewMessage_ = de.pokerth.protocol.ProtoBuf.GameListNewMessage.getDefaultInstance(); /** * optional .GameListNewMessage gameListNewMessage = 14; */ + @java.lang.Override public boolean hasGameListNewMessage() { - return ((bitField0_ & 0x00002000) == 0x00002000); + return instance.hasGameListNewMessage(); } /** * optional .GameListNewMessage gameListNewMessage = 14; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameListNewMessage getGameListNewMessage() { - return gameListNewMessage_; + return instance.getGameListNewMessage(); } /** * optional .GameListNewMessage gameListNewMessage = 14; */ public Builder setGameListNewMessage(de.pokerth.protocol.ProtoBuf.GameListNewMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gameListNewMessage_ = value; - - bitField0_ |= 0x00002000; + copyOnWrite(); + instance.setGameListNewMessage(value); return this; - } + } /** * optional .GameListNewMessage gameListNewMessage = 14; */ public Builder setGameListNewMessage( de.pokerth.protocol.ProtoBuf.GameListNewMessage.Builder builderForValue) { - gameListNewMessage_ = builderForValue.build(); - - bitField0_ |= 0x00002000; + copyOnWrite(); + instance.setGameListNewMessage(builderForValue); return this; } /** * optional .GameListNewMessage gameListNewMessage = 14; */ public Builder mergeGameListNewMessage(de.pokerth.protocol.ProtoBuf.GameListNewMessage value) { - 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; - } - - bitField0_ |= 0x00002000; + copyOnWrite(); + instance.mergeGameListNewMessage(value); return this; } /** * optional .GameListNewMessage gameListNewMessage = 14; */ - public Builder clearGameListNewMessage() { - gameListNewMessage_ = de.pokerth.protocol.ProtoBuf.GameListNewMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00002000); + public Builder clearGameListNewMessage() { copyOnWrite(); + instance.clearGameListNewMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.GameListUpdateMessage gameListUpdateMessage_ = de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.getDefaultInstance(); /** * optional .GameListUpdateMessage gameListUpdateMessage = 15; */ + @java.lang.Override public boolean hasGameListUpdateMessage() { - return ((bitField0_ & 0x00004000) == 0x00004000); + return instance.hasGameListUpdateMessage(); } /** * optional .GameListUpdateMessage gameListUpdateMessage = 15; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameListUpdateMessage getGameListUpdateMessage() { - return gameListUpdateMessage_; + return instance.getGameListUpdateMessage(); } /** * optional .GameListUpdateMessage gameListUpdateMessage = 15; */ public Builder setGameListUpdateMessage(de.pokerth.protocol.ProtoBuf.GameListUpdateMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gameListUpdateMessage_ = value; - - bitField0_ |= 0x00004000; + copyOnWrite(); + instance.setGameListUpdateMessage(value); return this; - } + } /** * optional .GameListUpdateMessage gameListUpdateMessage = 15; */ public Builder setGameListUpdateMessage( de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.Builder builderForValue) { - gameListUpdateMessage_ = builderForValue.build(); - - bitField0_ |= 0x00004000; + copyOnWrite(); + instance.setGameListUpdateMessage(builderForValue); return this; } /** * optional .GameListUpdateMessage gameListUpdateMessage = 15; */ public Builder mergeGameListUpdateMessage(de.pokerth.protocol.ProtoBuf.GameListUpdateMessage value) { - 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; - } - - bitField0_ |= 0x00004000; + copyOnWrite(); + instance.mergeGameListUpdateMessage(value); return this; } /** * optional .GameListUpdateMessage gameListUpdateMessage = 15; */ - public Builder clearGameListUpdateMessage() { - gameListUpdateMessage_ = de.pokerth.protocol.ProtoBuf.GameListUpdateMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00004000); + public Builder clearGameListUpdateMessage() { copyOnWrite(); + instance.clearGameListUpdateMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage gameListPlayerJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.getDefaultInstance(); /** * optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; */ + @java.lang.Override public boolean hasGameListPlayerJoinedMessage() { - return ((bitField0_ & 0x00008000) == 0x00008000); + return instance.hasGameListPlayerJoinedMessage(); } /** * optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage getGameListPlayerJoinedMessage() { - return gameListPlayerJoinedMessage_; + return instance.getGameListPlayerJoinedMessage(); } /** * optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; */ public Builder setGameListPlayerJoinedMessage(de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gameListPlayerJoinedMessage_ = value; - - bitField0_ |= 0x00008000; + copyOnWrite(); + instance.setGameListPlayerJoinedMessage(value); return this; - } + } /** * optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; */ public Builder setGameListPlayerJoinedMessage( de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.Builder builderForValue) { - gameListPlayerJoinedMessage_ = builderForValue.build(); - - bitField0_ |= 0x00008000; + copyOnWrite(); + instance.setGameListPlayerJoinedMessage(builderForValue); return this; } /** * optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; */ public Builder mergeGameListPlayerJoinedMessage(de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage value) { - 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; - } - - bitField0_ |= 0x00008000; + copyOnWrite(); + instance.mergeGameListPlayerJoinedMessage(value); return this; } /** * optional .GameListPlayerJoinedMessage gameListPlayerJoinedMessage = 16; */ - public Builder clearGameListPlayerJoinedMessage() { - gameListPlayerJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GameListPlayerJoinedMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00008000); + public Builder clearGameListPlayerJoinedMessage() { copyOnWrite(); + instance.clearGameListPlayerJoinedMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage gameListPlayerLeftMessage_ = de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.getDefaultInstance(); /** * optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; */ + @java.lang.Override public boolean hasGameListPlayerLeftMessage() { - return ((bitField0_ & 0x00010000) == 0x00010000); + return instance.hasGameListPlayerLeftMessage(); } /** * optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage getGameListPlayerLeftMessage() { - return gameListPlayerLeftMessage_; + return instance.getGameListPlayerLeftMessage(); } /** * optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; */ public Builder setGameListPlayerLeftMessage(de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gameListPlayerLeftMessage_ = value; - - bitField0_ |= 0x00010000; + copyOnWrite(); + instance.setGameListPlayerLeftMessage(value); return this; - } + } /** * optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; */ public Builder setGameListPlayerLeftMessage( de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.Builder builderForValue) { - gameListPlayerLeftMessage_ = builderForValue.build(); - - bitField0_ |= 0x00010000; + copyOnWrite(); + instance.setGameListPlayerLeftMessage(builderForValue); return this; } /** * optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; */ public Builder mergeGameListPlayerLeftMessage(de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage value) { - 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; - } - - bitField0_ |= 0x00010000; + copyOnWrite(); + instance.mergeGameListPlayerLeftMessage(value); return this; } /** * optional .GameListPlayerLeftMessage gameListPlayerLeftMessage = 17; */ - public Builder clearGameListPlayerLeftMessage() { - gameListPlayerLeftMessage_ = de.pokerth.protocol.ProtoBuf.GameListPlayerLeftMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00010000); + public Builder clearGameListPlayerLeftMessage() { copyOnWrite(); + instance.clearGameListPlayerLeftMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage gameListAdminChangedMessage_ = de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.getDefaultInstance(); /** * optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; */ + @java.lang.Override public boolean hasGameListAdminChangedMessage() { - return ((bitField0_ & 0x00020000) == 0x00020000); + return instance.hasGameListAdminChangedMessage(); } /** * optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage getGameListAdminChangedMessage() { - return gameListAdminChangedMessage_; + return instance.getGameListAdminChangedMessage(); } /** * optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; */ public Builder setGameListAdminChangedMessage(de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gameListAdminChangedMessage_ = value; - - bitField0_ |= 0x00020000; + copyOnWrite(); + instance.setGameListAdminChangedMessage(value); return this; - } + } /** * optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; */ public Builder setGameListAdminChangedMessage( de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.Builder builderForValue) { - gameListAdminChangedMessage_ = builderForValue.build(); - - bitField0_ |= 0x00020000; + copyOnWrite(); + instance.setGameListAdminChangedMessage(builderForValue); return this; } /** * optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; */ public Builder mergeGameListAdminChangedMessage(de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage value) { - 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; - } - - bitField0_ |= 0x00020000; + copyOnWrite(); + instance.mergeGameListAdminChangedMessage(value); return this; } /** * optional .GameListAdminChangedMessage gameListAdminChangedMessage = 18; */ - public Builder clearGameListAdminChangedMessage() { - gameListAdminChangedMessage_ = de.pokerth.protocol.ProtoBuf.GameListAdminChangedMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00020000); + public Builder clearGameListAdminChangedMessage() { copyOnWrite(); + instance.clearGameListAdminChangedMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage playerInfoRequestMessage_ = de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.getDefaultInstance(); /** * optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; */ + @java.lang.Override public boolean hasPlayerInfoRequestMessage() { - return ((bitField0_ & 0x00040000) == 0x00040000); + return instance.hasPlayerInfoRequestMessage(); } /** * optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage getPlayerInfoRequestMessage() { - return playerInfoRequestMessage_; + return instance.getPlayerInfoRequestMessage(); } /** * optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; */ public Builder setPlayerInfoRequestMessage(de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - playerInfoRequestMessage_ = value; - - bitField0_ |= 0x00040000; + copyOnWrite(); + instance.setPlayerInfoRequestMessage(value); return this; - } + } /** * optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; */ public Builder setPlayerInfoRequestMessage( de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.Builder builderForValue) { - playerInfoRequestMessage_ = builderForValue.build(); - - bitField0_ |= 0x00040000; + copyOnWrite(); + instance.setPlayerInfoRequestMessage(builderForValue); return this; } /** * optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; */ public Builder mergePlayerInfoRequestMessage(de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage value) { - 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; - } - - bitField0_ |= 0x00040000; + copyOnWrite(); + instance.mergePlayerInfoRequestMessage(value); return this; } /** * optional .PlayerInfoRequestMessage playerInfoRequestMessage = 19; */ - public Builder clearPlayerInfoRequestMessage() { - playerInfoRequestMessage_ = de.pokerth.protocol.ProtoBuf.PlayerInfoRequestMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00040000); + public Builder clearPlayerInfoRequestMessage() { copyOnWrite(); + instance.clearPlayerInfoRequestMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage playerInfoReplyMessage_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.getDefaultInstance(); /** * optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; */ + @java.lang.Override public boolean hasPlayerInfoReplyMessage() { - return ((bitField0_ & 0x00080000) == 0x00080000); + return instance.hasPlayerInfoReplyMessage(); } /** * optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage getPlayerInfoReplyMessage() { - return playerInfoReplyMessage_; + return instance.getPlayerInfoReplyMessage(); } /** * optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; */ public Builder setPlayerInfoReplyMessage(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage value) { - if (value == null) { - throw new NullPointerException(); - } - playerInfoReplyMessage_ = value; - - bitField0_ |= 0x00080000; + copyOnWrite(); + instance.setPlayerInfoReplyMessage(value); return this; - } + } /** * optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; */ public Builder setPlayerInfoReplyMessage( de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.Builder builderForValue) { - playerInfoReplyMessage_ = builderForValue.build(); - - bitField0_ |= 0x00080000; + copyOnWrite(); + instance.setPlayerInfoReplyMessage(builderForValue); return this; } /** * optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; */ public Builder mergePlayerInfoReplyMessage(de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage value) { - 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; - } - - bitField0_ |= 0x00080000; + copyOnWrite(); + instance.mergePlayerInfoReplyMessage(value); return this; } /** * optional .PlayerInfoReplyMessage playerInfoReplyMessage = 20; */ - public Builder clearPlayerInfoReplyMessage() { - playerInfoReplyMessage_ = de.pokerth.protocol.ProtoBuf.PlayerInfoReplyMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00080000); + public Builder clearPlayerInfoReplyMessage() { copyOnWrite(); + instance.clearPlayerInfoReplyMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage subscriptionRequestMessage_ = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.getDefaultInstance(); /** * optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; */ + @java.lang.Override public boolean hasSubscriptionRequestMessage() { - return ((bitField0_ & 0x00100000) == 0x00100000); + return instance.hasSubscriptionRequestMessage(); } /** * optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage getSubscriptionRequestMessage() { - return subscriptionRequestMessage_; + return instance.getSubscriptionRequestMessage(); } /** * optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; */ public Builder setSubscriptionRequestMessage(de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - subscriptionRequestMessage_ = value; - - bitField0_ |= 0x00100000; + copyOnWrite(); + instance.setSubscriptionRequestMessage(value); return this; - } + } /** * optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; */ public Builder setSubscriptionRequestMessage( de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.Builder builderForValue) { - subscriptionRequestMessage_ = builderForValue.build(); - - bitField0_ |= 0x00100000; + copyOnWrite(); + instance.setSubscriptionRequestMessage(builderForValue); return this; } /** * optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; */ public Builder mergeSubscriptionRequestMessage(de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage value) { - 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; - } - - bitField0_ |= 0x00100000; + copyOnWrite(); + instance.mergeSubscriptionRequestMessage(value); return this; } /** * optional .SubscriptionRequestMessage subscriptionRequestMessage = 21; */ - public Builder clearSubscriptionRequestMessage() { - subscriptionRequestMessage_ = de.pokerth.protocol.ProtoBuf.SubscriptionRequestMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00100000); + public Builder clearSubscriptionRequestMessage() { copyOnWrite(); + instance.clearSubscriptionRequestMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage joinExistingGameMessage_ = de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.getDefaultInstance(); /** * optional .JoinExistingGameMessage joinExistingGameMessage = 22; */ + @java.lang.Override public boolean hasJoinExistingGameMessage() { - return ((bitField0_ & 0x00200000) == 0x00200000); + return instance.hasJoinExistingGameMessage(); } /** * optional .JoinExistingGameMessage joinExistingGameMessage = 22; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage getJoinExistingGameMessage() { - return joinExistingGameMessage_; + return instance.getJoinExistingGameMessage(); } /** * optional .JoinExistingGameMessage joinExistingGameMessage = 22; */ public Builder setJoinExistingGameMessage(de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage value) { - if (value == null) { - throw new NullPointerException(); - } - joinExistingGameMessage_ = value; - - bitField0_ |= 0x00200000; + copyOnWrite(); + instance.setJoinExistingGameMessage(value); return this; - } + } /** * optional .JoinExistingGameMessage joinExistingGameMessage = 22; */ public Builder setJoinExistingGameMessage( de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.Builder builderForValue) { - joinExistingGameMessage_ = builderForValue.build(); - - bitField0_ |= 0x00200000; + copyOnWrite(); + instance.setJoinExistingGameMessage(builderForValue); return this; } /** * optional .JoinExistingGameMessage joinExistingGameMessage = 22; */ public Builder mergeJoinExistingGameMessage(de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage value) { - 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; - } - - bitField0_ |= 0x00200000; + copyOnWrite(); + instance.mergeJoinExistingGameMessage(value); return this; } /** * optional .JoinExistingGameMessage joinExistingGameMessage = 22; */ - public Builder clearJoinExistingGameMessage() { - joinExistingGameMessage_ = de.pokerth.protocol.ProtoBuf.JoinExistingGameMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00200000); + public Builder clearJoinExistingGameMessage() { copyOnWrite(); + instance.clearJoinExistingGameMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.JoinNewGameMessage joinNewGameMessage_ = de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.getDefaultInstance(); /** * optional .JoinNewGameMessage joinNewGameMessage = 23; */ + @java.lang.Override public boolean hasJoinNewGameMessage() { - return ((bitField0_ & 0x00400000) == 0x00400000); + return instance.hasJoinNewGameMessage(); } /** * optional .JoinNewGameMessage joinNewGameMessage = 23; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.JoinNewGameMessage getJoinNewGameMessage() { - return joinNewGameMessage_; + return instance.getJoinNewGameMessage(); } /** * optional .JoinNewGameMessage joinNewGameMessage = 23; */ public Builder setJoinNewGameMessage(de.pokerth.protocol.ProtoBuf.JoinNewGameMessage value) { - if (value == null) { - throw new NullPointerException(); - } - joinNewGameMessage_ = value; - - bitField0_ |= 0x00400000; + copyOnWrite(); + instance.setJoinNewGameMessage(value); return this; - } + } /** * optional .JoinNewGameMessage joinNewGameMessage = 23; */ public Builder setJoinNewGameMessage( de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.Builder builderForValue) { - joinNewGameMessage_ = builderForValue.build(); - - bitField0_ |= 0x00400000; + copyOnWrite(); + instance.setJoinNewGameMessage(builderForValue); return this; } /** * optional .JoinNewGameMessage joinNewGameMessage = 23; */ public Builder mergeJoinNewGameMessage(de.pokerth.protocol.ProtoBuf.JoinNewGameMessage value) { - 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; - } - - bitField0_ |= 0x00400000; + copyOnWrite(); + instance.mergeJoinNewGameMessage(value); return this; } /** * optional .JoinNewGameMessage joinNewGameMessage = 23; */ - public Builder clearJoinNewGameMessage() { - joinNewGameMessage_ = de.pokerth.protocol.ProtoBuf.JoinNewGameMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00400000); + public Builder clearJoinNewGameMessage() { copyOnWrite(); + instance.clearJoinNewGameMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage rejoinExistingGameMessage_ = de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.getDefaultInstance(); /** * optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; */ + @java.lang.Override public boolean hasRejoinExistingGameMessage() { - return ((bitField0_ & 0x00800000) == 0x00800000); + return instance.hasRejoinExistingGameMessage(); } /** * optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage getRejoinExistingGameMessage() { - return rejoinExistingGameMessage_; + return instance.getRejoinExistingGameMessage(); } /** * optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; */ public Builder setRejoinExistingGameMessage(de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage value) { - if (value == null) { - throw new NullPointerException(); - } - rejoinExistingGameMessage_ = value; - - bitField0_ |= 0x00800000; + copyOnWrite(); + instance.setRejoinExistingGameMessage(value); return this; - } + } /** * optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; */ public Builder setRejoinExistingGameMessage( de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.Builder builderForValue) { - rejoinExistingGameMessage_ = builderForValue.build(); - - bitField0_ |= 0x00800000; + copyOnWrite(); + instance.setRejoinExistingGameMessage(builderForValue); return this; } /** * optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; */ public Builder mergeRejoinExistingGameMessage(de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage value) { - 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; - } - - bitField0_ |= 0x00800000; + copyOnWrite(); + instance.mergeRejoinExistingGameMessage(value); return this; } /** * optional .RejoinExistingGameMessage rejoinExistingGameMessage = 24; */ - public Builder clearRejoinExistingGameMessage() { - rejoinExistingGameMessage_ = de.pokerth.protocol.ProtoBuf.RejoinExistingGameMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x00800000); + public Builder clearRejoinExistingGameMessage() { copyOnWrite(); + instance.clearRejoinExistingGameMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.JoinGameAckMessage joinGameAckMessage_ = de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.getDefaultInstance(); /** * optional .JoinGameAckMessage joinGameAckMessage = 25; */ + @java.lang.Override public boolean hasJoinGameAckMessage() { - return ((bitField0_ & 0x01000000) == 0x01000000); + return instance.hasJoinGameAckMessage(); } /** * optional .JoinGameAckMessage joinGameAckMessage = 25; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.JoinGameAckMessage getJoinGameAckMessage() { - return joinGameAckMessage_; + return instance.getJoinGameAckMessage(); } /** * optional .JoinGameAckMessage joinGameAckMessage = 25; */ public Builder setJoinGameAckMessage(de.pokerth.protocol.ProtoBuf.JoinGameAckMessage value) { - if (value == null) { - throw new NullPointerException(); - } - joinGameAckMessage_ = value; - - bitField0_ |= 0x01000000; + copyOnWrite(); + instance.setJoinGameAckMessage(value); return this; - } + } /** * optional .JoinGameAckMessage joinGameAckMessage = 25; */ public Builder setJoinGameAckMessage( de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.Builder builderForValue) { - joinGameAckMessage_ = builderForValue.build(); - - bitField0_ |= 0x01000000; + copyOnWrite(); + instance.setJoinGameAckMessage(builderForValue); return this; } /** * optional .JoinGameAckMessage joinGameAckMessage = 25; */ public Builder mergeJoinGameAckMessage(de.pokerth.protocol.ProtoBuf.JoinGameAckMessage value) { - 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; - } - - bitField0_ |= 0x01000000; + copyOnWrite(); + instance.mergeJoinGameAckMessage(value); return this; } /** * optional .JoinGameAckMessage joinGameAckMessage = 25; */ - public Builder clearJoinGameAckMessage() { - joinGameAckMessage_ = de.pokerth.protocol.ProtoBuf.JoinGameAckMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x01000000); + public Builder clearJoinGameAckMessage() { copyOnWrite(); + instance.clearJoinGameAckMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage joinGameFailedMessage_ = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.getDefaultInstance(); /** * optional .JoinGameFailedMessage joinGameFailedMessage = 26; */ + @java.lang.Override public boolean hasJoinGameFailedMessage() { - return ((bitField0_ & 0x02000000) == 0x02000000); + return instance.hasJoinGameFailedMessage(); } /** * optional .JoinGameFailedMessage joinGameFailedMessage = 26; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage getJoinGameFailedMessage() { - return joinGameFailedMessage_; + return instance.getJoinGameFailedMessage(); } /** * optional .JoinGameFailedMessage joinGameFailedMessage = 26; */ public Builder setJoinGameFailedMessage(de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - joinGameFailedMessage_ = value; - - bitField0_ |= 0x02000000; + copyOnWrite(); + instance.setJoinGameFailedMessage(value); return this; - } + } /** * optional .JoinGameFailedMessage joinGameFailedMessage = 26; */ public Builder setJoinGameFailedMessage( de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.Builder builderForValue) { - joinGameFailedMessage_ = builderForValue.build(); - - bitField0_ |= 0x02000000; + copyOnWrite(); + instance.setJoinGameFailedMessage(builderForValue); return this; } /** * optional .JoinGameFailedMessage joinGameFailedMessage = 26; */ public Builder mergeJoinGameFailedMessage(de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage value) { - 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; - } - - bitField0_ |= 0x02000000; + copyOnWrite(); + instance.mergeJoinGameFailedMessage(value); return this; } /** * optional .JoinGameFailedMessage joinGameFailedMessage = 26; */ - public Builder clearJoinGameFailedMessage() { - joinGameFailedMessage_ = de.pokerth.protocol.ProtoBuf.JoinGameFailedMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x02000000); + public Builder clearJoinGameFailedMessage() { copyOnWrite(); + instance.clearJoinGameFailedMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage gamePlayerJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.getDefaultInstance(); /** * optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; */ + @java.lang.Override public boolean hasGamePlayerJoinedMessage() { - return ((bitField0_ & 0x04000000) == 0x04000000); + return instance.hasGamePlayerJoinedMessage(); } /** * optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage getGamePlayerJoinedMessage() { - return gamePlayerJoinedMessage_; + return instance.getGamePlayerJoinedMessage(); } /** * optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; */ public Builder setGamePlayerJoinedMessage(de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gamePlayerJoinedMessage_ = value; - - bitField0_ |= 0x04000000; + copyOnWrite(); + instance.setGamePlayerJoinedMessage(value); return this; - } + } /** * optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; */ public Builder setGamePlayerJoinedMessage( de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.Builder builderForValue) { - gamePlayerJoinedMessage_ = builderForValue.build(); - - bitField0_ |= 0x04000000; + copyOnWrite(); + instance.setGamePlayerJoinedMessage(builderForValue); return this; } /** * optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; */ public Builder mergeGamePlayerJoinedMessage(de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage value) { - 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; - } - - bitField0_ |= 0x04000000; + copyOnWrite(); + instance.mergeGamePlayerJoinedMessage(value); return this; } /** * optional .GamePlayerJoinedMessage gamePlayerJoinedMessage = 27; */ - public Builder clearGamePlayerJoinedMessage() { - gamePlayerJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GamePlayerJoinedMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x04000000); + public Builder clearGamePlayerJoinedMessage() { copyOnWrite(); + instance.clearGamePlayerJoinedMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage gamePlayerLeftMessage_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.getDefaultInstance(); /** * optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; */ + @java.lang.Override public boolean hasGamePlayerLeftMessage() { - return ((bitField0_ & 0x08000000) == 0x08000000); + return instance.hasGamePlayerLeftMessage(); } /** * optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage getGamePlayerLeftMessage() { - return gamePlayerLeftMessage_; + return instance.getGamePlayerLeftMessage(); } /** * optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; */ public Builder setGamePlayerLeftMessage(de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gamePlayerLeftMessage_ = value; - - bitField0_ |= 0x08000000; + copyOnWrite(); + instance.setGamePlayerLeftMessage(value); return this; - } + } /** * optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; */ public Builder setGamePlayerLeftMessage( de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.Builder builderForValue) { - gamePlayerLeftMessage_ = builderForValue.build(); - - bitField0_ |= 0x08000000; + copyOnWrite(); + instance.setGamePlayerLeftMessage(builderForValue); return this; } /** * optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; */ public Builder mergeGamePlayerLeftMessage(de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage value) { - 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; - } - - bitField0_ |= 0x08000000; + copyOnWrite(); + instance.mergeGamePlayerLeftMessage(value); return this; } /** * optional .GamePlayerLeftMessage gamePlayerLeftMessage = 28; */ - public Builder clearGamePlayerLeftMessage() { - gamePlayerLeftMessage_ = de.pokerth.protocol.ProtoBuf.GamePlayerLeftMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x08000000); + public Builder clearGamePlayerLeftMessage() { copyOnWrite(); + instance.clearGamePlayerLeftMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage gameAdminChangedMessage_ = de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.getDefaultInstance(); /** * optional .GameAdminChangedMessage gameAdminChangedMessage = 29; */ + @java.lang.Override public boolean hasGameAdminChangedMessage() { - return ((bitField0_ & 0x10000000) == 0x10000000); + return instance.hasGameAdminChangedMessage(); } /** * optional .GameAdminChangedMessage gameAdminChangedMessage = 29; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage getGameAdminChangedMessage() { - return gameAdminChangedMessage_; + return instance.getGameAdminChangedMessage(); } /** * optional .GameAdminChangedMessage gameAdminChangedMessage = 29; */ public Builder setGameAdminChangedMessage(de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gameAdminChangedMessage_ = value; - - bitField0_ |= 0x10000000; + copyOnWrite(); + instance.setGameAdminChangedMessage(value); return this; - } + } /** * optional .GameAdminChangedMessage gameAdminChangedMessage = 29; */ public Builder setGameAdminChangedMessage( de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.Builder builderForValue) { - gameAdminChangedMessage_ = builderForValue.build(); - - bitField0_ |= 0x10000000; + copyOnWrite(); + instance.setGameAdminChangedMessage(builderForValue); return this; } /** * optional .GameAdminChangedMessage gameAdminChangedMessage = 29; */ public Builder mergeGameAdminChangedMessage(de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage value) { - 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; - } - - bitField0_ |= 0x10000000; + copyOnWrite(); + instance.mergeGameAdminChangedMessage(value); return this; } /** * optional .GameAdminChangedMessage gameAdminChangedMessage = 29; */ - public Builder clearGameAdminChangedMessage() { - gameAdminChangedMessage_ = de.pokerth.protocol.ProtoBuf.GameAdminChangedMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x10000000); + public Builder clearGameAdminChangedMessage() { copyOnWrite(); + instance.clearGameAdminChangedMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage removedFromGameMessage_ = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.getDefaultInstance(); /** * optional .RemovedFromGameMessage removedFromGameMessage = 30; */ + @java.lang.Override public boolean hasRemovedFromGameMessage() { - return ((bitField0_ & 0x20000000) == 0x20000000); + return instance.hasRemovedFromGameMessage(); } /** * optional .RemovedFromGameMessage removedFromGameMessage = 30; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage getRemovedFromGameMessage() { - return removedFromGameMessage_; + return instance.getRemovedFromGameMessage(); } /** * optional .RemovedFromGameMessage removedFromGameMessage = 30; */ public Builder setRemovedFromGameMessage(de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage value) { - if (value == null) { - throw new NullPointerException(); - } - removedFromGameMessage_ = value; - - bitField0_ |= 0x20000000; + copyOnWrite(); + instance.setRemovedFromGameMessage(value); return this; - } + } /** * optional .RemovedFromGameMessage removedFromGameMessage = 30; */ public Builder setRemovedFromGameMessage( de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.Builder builderForValue) { - removedFromGameMessage_ = builderForValue.build(); - - bitField0_ |= 0x20000000; + copyOnWrite(); + instance.setRemovedFromGameMessage(builderForValue); return this; } /** * optional .RemovedFromGameMessage removedFromGameMessage = 30; */ public Builder mergeRemovedFromGameMessage(de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage value) { - 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; - } - - bitField0_ |= 0x20000000; + copyOnWrite(); + instance.mergeRemovedFromGameMessage(value); return this; } /** * optional .RemovedFromGameMessage removedFromGameMessage = 30; */ - public Builder clearRemovedFromGameMessage() { - removedFromGameMessage_ = de.pokerth.protocol.ProtoBuf.RemovedFromGameMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x20000000); + public Builder clearRemovedFromGameMessage() { copyOnWrite(); + instance.clearRemovedFromGameMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage kickPlayerRequestMessage_ = de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.getDefaultInstance(); /** * optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; */ + @java.lang.Override public boolean hasKickPlayerRequestMessage() { - return ((bitField0_ & 0x40000000) == 0x40000000); + return instance.hasKickPlayerRequestMessage(); } /** * optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage getKickPlayerRequestMessage() { - return kickPlayerRequestMessage_; + return instance.getKickPlayerRequestMessage(); } /** * optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; */ public Builder setKickPlayerRequestMessage(de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - kickPlayerRequestMessage_ = value; - - bitField0_ |= 0x40000000; + copyOnWrite(); + instance.setKickPlayerRequestMessage(value); return this; - } + } /** * optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; */ public Builder setKickPlayerRequestMessage( de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.Builder builderForValue) { - kickPlayerRequestMessage_ = builderForValue.build(); - - bitField0_ |= 0x40000000; + copyOnWrite(); + instance.setKickPlayerRequestMessage(builderForValue); return this; } /** * optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; */ public Builder mergeKickPlayerRequestMessage(de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage value) { - 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; - } - - bitField0_ |= 0x40000000; + copyOnWrite(); + instance.mergeKickPlayerRequestMessage(value); return this; } /** * optional .KickPlayerRequestMessage kickPlayerRequestMessage = 31; */ - public Builder clearKickPlayerRequestMessage() { - kickPlayerRequestMessage_ = de.pokerth.protocol.ProtoBuf.KickPlayerRequestMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x40000000); + public Builder clearKickPlayerRequestMessage() { copyOnWrite(); + instance.clearKickPlayerRequestMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage leaveGameRequestMessage_ = de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.getDefaultInstance(); /** * optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; */ + @java.lang.Override public boolean hasLeaveGameRequestMessage() { - return ((bitField0_ & 0x80000000) == 0x80000000); + return instance.hasLeaveGameRequestMessage(); } /** * optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage getLeaveGameRequestMessage() { - return leaveGameRequestMessage_; + return instance.getLeaveGameRequestMessage(); } /** * optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; */ public Builder setLeaveGameRequestMessage(de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - leaveGameRequestMessage_ = value; - - bitField0_ |= 0x80000000; + copyOnWrite(); + instance.setLeaveGameRequestMessage(value); return this; - } + } /** * optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; */ public Builder setLeaveGameRequestMessage( de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.Builder builderForValue) { - leaveGameRequestMessage_ = builderForValue.build(); - - bitField0_ |= 0x80000000; + copyOnWrite(); + instance.setLeaveGameRequestMessage(builderForValue); return this; } /** * optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; */ public Builder mergeLeaveGameRequestMessage(de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage value) { - 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; - } - - bitField0_ |= 0x80000000; + copyOnWrite(); + instance.mergeLeaveGameRequestMessage(value); return this; } /** * optional .LeaveGameRequestMessage leaveGameRequestMessage = 32; */ - public Builder clearLeaveGameRequestMessage() { - leaveGameRequestMessage_ = de.pokerth.protocol.ProtoBuf.LeaveGameRequestMessage.getDefaultInstance(); - - bitField0_ = (bitField0_ & ~0x80000000); + public Builder clearLeaveGameRequestMessage() { copyOnWrite(); + instance.clearLeaveGameRequestMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage invitePlayerToGameMessage_ = de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.getDefaultInstance(); /** * optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; */ + @java.lang.Override public boolean hasInvitePlayerToGameMessage() { - return ((bitField1_ & 0x00000001) == 0x00000001); + return instance.hasInvitePlayerToGameMessage(); } /** * optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage getInvitePlayerToGameMessage() { - return invitePlayerToGameMessage_; + return instance.getInvitePlayerToGameMessage(); } /** * optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; */ public Builder setInvitePlayerToGameMessage(de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage value) { - if (value == null) { - throw new NullPointerException(); - } - invitePlayerToGameMessage_ = value; - - bitField1_ |= 0x00000001; + copyOnWrite(); + instance.setInvitePlayerToGameMessage(value); return this; - } + } /** * optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; */ public Builder setInvitePlayerToGameMessage( de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.Builder builderForValue) { - invitePlayerToGameMessage_ = builderForValue.build(); - - bitField1_ |= 0x00000001; + copyOnWrite(); + instance.setInvitePlayerToGameMessage(builderForValue); return this; } /** * optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; */ public Builder mergeInvitePlayerToGameMessage(de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage value) { - 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; - } - - bitField1_ |= 0x00000001; + copyOnWrite(); + instance.mergeInvitePlayerToGameMessage(value); return this; } /** * optional .InvitePlayerToGameMessage invitePlayerToGameMessage = 33; */ - public Builder clearInvitePlayerToGameMessage() { - invitePlayerToGameMessage_ = de.pokerth.protocol.ProtoBuf.InvitePlayerToGameMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x00000001); + public Builder clearInvitePlayerToGameMessage() { copyOnWrite(); + instance.clearInvitePlayerToGameMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.InviteNotifyMessage inviteNotifyMessage_ = de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.getDefaultInstance(); /** * optional .InviteNotifyMessage inviteNotifyMessage = 34; */ + @java.lang.Override public boolean hasInviteNotifyMessage() { - return ((bitField1_ & 0x00000002) == 0x00000002); + return instance.hasInviteNotifyMessage(); } /** * optional .InviteNotifyMessage inviteNotifyMessage = 34; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.InviteNotifyMessage getInviteNotifyMessage() { - return inviteNotifyMessage_; + return instance.getInviteNotifyMessage(); } /** * optional .InviteNotifyMessage inviteNotifyMessage = 34; */ public Builder setInviteNotifyMessage(de.pokerth.protocol.ProtoBuf.InviteNotifyMessage value) { - if (value == null) { - throw new NullPointerException(); - } - inviteNotifyMessage_ = value; - - bitField1_ |= 0x00000002; + copyOnWrite(); + instance.setInviteNotifyMessage(value); return this; - } + } /** * optional .InviteNotifyMessage inviteNotifyMessage = 34; */ public Builder setInviteNotifyMessage( de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.Builder builderForValue) { - inviteNotifyMessage_ = builderForValue.build(); - - bitField1_ |= 0x00000002; + copyOnWrite(); + instance.setInviteNotifyMessage(builderForValue); return this; } /** * optional .InviteNotifyMessage inviteNotifyMessage = 34; */ public Builder mergeInviteNotifyMessage(de.pokerth.protocol.ProtoBuf.InviteNotifyMessage value) { - 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; - } - - bitField1_ |= 0x00000002; + copyOnWrite(); + instance.mergeInviteNotifyMessage(value); return this; } /** * optional .InviteNotifyMessage inviteNotifyMessage = 34; */ - public Builder clearInviteNotifyMessage() { - inviteNotifyMessage_ = de.pokerth.protocol.ProtoBuf.InviteNotifyMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x00000002); + public Builder clearInviteNotifyMessage() { copyOnWrite(); + instance.clearInviteNotifyMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage rejectGameInvitationMessage_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.getDefaultInstance(); /** * optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; */ + @java.lang.Override public boolean hasRejectGameInvitationMessage() { - return ((bitField1_ & 0x00000004) == 0x00000004); + return instance.hasRejectGameInvitationMessage(); } /** * optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage getRejectGameInvitationMessage() { - return rejectGameInvitationMessage_; + return instance.getRejectGameInvitationMessage(); } /** * optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; */ public Builder setRejectGameInvitationMessage(de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage value) { - if (value == null) { - throw new NullPointerException(); - } - rejectGameInvitationMessage_ = value; - - bitField1_ |= 0x00000004; + copyOnWrite(); + instance.setRejectGameInvitationMessage(value); return this; - } + } /** * optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; */ public Builder setRejectGameInvitationMessage( de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.Builder builderForValue) { - rejectGameInvitationMessage_ = builderForValue.build(); - - bitField1_ |= 0x00000004; + copyOnWrite(); + instance.setRejectGameInvitationMessage(builderForValue); return this; } /** * optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; */ public Builder mergeRejectGameInvitationMessage(de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage value) { - 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; - } - - bitField1_ |= 0x00000004; + copyOnWrite(); + instance.mergeRejectGameInvitationMessage(value); return this; } /** * optional .RejectGameInvitationMessage rejectGameInvitationMessage = 35; */ - public Builder clearRejectGameInvitationMessage() { - rejectGameInvitationMessage_ = de.pokerth.protocol.ProtoBuf.RejectGameInvitationMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x00000004); + public Builder clearRejectGameInvitationMessage() { copyOnWrite(); + instance.clearRejectGameInvitationMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage rejectInvNotifyMessage_ = de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.getDefaultInstance(); /** * optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; */ + @java.lang.Override public boolean hasRejectInvNotifyMessage() { - return ((bitField1_ & 0x00000008) == 0x00000008); + return instance.hasRejectInvNotifyMessage(); } /** * optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage getRejectInvNotifyMessage() { - return rejectInvNotifyMessage_; + return instance.getRejectInvNotifyMessage(); } /** * optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; */ public Builder setRejectInvNotifyMessage(de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage value) { - if (value == null) { - throw new NullPointerException(); - } - rejectInvNotifyMessage_ = value; - - bitField1_ |= 0x00000008; + copyOnWrite(); + instance.setRejectInvNotifyMessage(value); return this; - } + } /** * optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; */ public Builder setRejectInvNotifyMessage( de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.Builder builderForValue) { - rejectInvNotifyMessage_ = builderForValue.build(); - - bitField1_ |= 0x00000008; + copyOnWrite(); + instance.setRejectInvNotifyMessage(builderForValue); return this; } /** * optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; */ public Builder mergeRejectInvNotifyMessage(de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage value) { - 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; - } - - bitField1_ |= 0x00000008; + copyOnWrite(); + instance.mergeRejectInvNotifyMessage(value); return this; } /** * optional .RejectInvNotifyMessage rejectInvNotifyMessage = 36; */ - public Builder clearRejectInvNotifyMessage() { - rejectInvNotifyMessage_ = de.pokerth.protocol.ProtoBuf.RejectInvNotifyMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x00000008); + public Builder clearRejectInvNotifyMessage() { copyOnWrite(); + instance.clearRejectInvNotifyMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.StartEventMessage startEventMessage_ = de.pokerth.protocol.ProtoBuf.StartEventMessage.getDefaultInstance(); /** * optional .StartEventMessage startEventMessage = 37; */ + @java.lang.Override public boolean hasStartEventMessage() { - return ((bitField1_ & 0x00000010) == 0x00000010); + return instance.hasStartEventMessage(); } /** * optional .StartEventMessage startEventMessage = 37; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.StartEventMessage getStartEventMessage() { - return startEventMessage_; + return instance.getStartEventMessage(); } /** * optional .StartEventMessage startEventMessage = 37; */ public Builder setStartEventMessage(de.pokerth.protocol.ProtoBuf.StartEventMessage value) { - if (value == null) { - throw new NullPointerException(); - } - startEventMessage_ = value; - - bitField1_ |= 0x00000010; + copyOnWrite(); + instance.setStartEventMessage(value); return this; - } + } /** * optional .StartEventMessage startEventMessage = 37; */ public Builder setStartEventMessage( de.pokerth.protocol.ProtoBuf.StartEventMessage.Builder builderForValue) { - startEventMessage_ = builderForValue.build(); - - bitField1_ |= 0x00000010; + copyOnWrite(); + instance.setStartEventMessage(builderForValue); return this; } /** * optional .StartEventMessage startEventMessage = 37; */ public Builder mergeStartEventMessage(de.pokerth.protocol.ProtoBuf.StartEventMessage value) { - 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; - } - - bitField1_ |= 0x00000010; + copyOnWrite(); + instance.mergeStartEventMessage(value); return this; } /** * optional .StartEventMessage startEventMessage = 37; */ - public Builder clearStartEventMessage() { - startEventMessage_ = de.pokerth.protocol.ProtoBuf.StartEventMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x00000010); + public Builder clearStartEventMessage() { copyOnWrite(); + instance.clearStartEventMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.StartEventAckMessage startEventAckMessage_ = de.pokerth.protocol.ProtoBuf.StartEventAckMessage.getDefaultInstance(); /** * optional .StartEventAckMessage startEventAckMessage = 38; */ + @java.lang.Override public boolean hasStartEventAckMessage() { - return ((bitField1_ & 0x00000020) == 0x00000020); + return instance.hasStartEventAckMessage(); } /** * optional .StartEventAckMessage startEventAckMessage = 38; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.StartEventAckMessage getStartEventAckMessage() { - return startEventAckMessage_; + return instance.getStartEventAckMessage(); } /** * optional .StartEventAckMessage startEventAckMessage = 38; */ public Builder setStartEventAckMessage(de.pokerth.protocol.ProtoBuf.StartEventAckMessage value) { - if (value == null) { - throw new NullPointerException(); - } - startEventAckMessage_ = value; - - bitField1_ |= 0x00000020; + copyOnWrite(); + instance.setStartEventAckMessage(value); return this; - } + } /** * optional .StartEventAckMessage startEventAckMessage = 38; */ public Builder setStartEventAckMessage( de.pokerth.protocol.ProtoBuf.StartEventAckMessage.Builder builderForValue) { - startEventAckMessage_ = builderForValue.build(); - - bitField1_ |= 0x00000020; + copyOnWrite(); + instance.setStartEventAckMessage(builderForValue); return this; } /** * optional .StartEventAckMessage startEventAckMessage = 38; */ public Builder mergeStartEventAckMessage(de.pokerth.protocol.ProtoBuf.StartEventAckMessage value) { - 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; - } - - bitField1_ |= 0x00000020; + copyOnWrite(); + instance.mergeStartEventAckMessage(value); return this; } /** * optional .StartEventAckMessage startEventAckMessage = 38; */ - public Builder clearStartEventAckMessage() { - startEventAckMessage_ = de.pokerth.protocol.ProtoBuf.StartEventAckMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x00000020); + public Builder clearStartEventAckMessage() { copyOnWrite(); + instance.clearStartEventAckMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.GameStartInitialMessage gameStartInitialMessage_ = de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.getDefaultInstance(); /** * optional .GameStartInitialMessage gameStartInitialMessage = 39; */ + @java.lang.Override public boolean hasGameStartInitialMessage() { - return ((bitField1_ & 0x00000040) == 0x00000040); + return instance.hasGameStartInitialMessage(); } /** * optional .GameStartInitialMessage gameStartInitialMessage = 39; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameStartInitialMessage getGameStartInitialMessage() { - return gameStartInitialMessage_; + return instance.getGameStartInitialMessage(); } /** * optional .GameStartInitialMessage gameStartInitialMessage = 39; */ public Builder setGameStartInitialMessage(de.pokerth.protocol.ProtoBuf.GameStartInitialMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gameStartInitialMessage_ = value; - - bitField1_ |= 0x00000040; + copyOnWrite(); + instance.setGameStartInitialMessage(value); return this; - } + } /** * optional .GameStartInitialMessage gameStartInitialMessage = 39; */ public Builder setGameStartInitialMessage( de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.Builder builderForValue) { - gameStartInitialMessage_ = builderForValue.build(); - - bitField1_ |= 0x00000040; + copyOnWrite(); + instance.setGameStartInitialMessage(builderForValue); return this; } /** * optional .GameStartInitialMessage gameStartInitialMessage = 39; */ public Builder mergeGameStartInitialMessage(de.pokerth.protocol.ProtoBuf.GameStartInitialMessage value) { - 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; - } - - bitField1_ |= 0x00000040; + copyOnWrite(); + instance.mergeGameStartInitialMessage(value); return this; } /** * optional .GameStartInitialMessage gameStartInitialMessage = 39; */ - public Builder clearGameStartInitialMessage() { - gameStartInitialMessage_ = de.pokerth.protocol.ProtoBuf.GameStartInitialMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x00000040); + public Builder clearGameStartInitialMessage() { copyOnWrite(); + instance.clearGameStartInitialMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage gameStartRejoinMessage_ = de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.getDefaultInstance(); /** * optional .GameStartRejoinMessage gameStartRejoinMessage = 40; */ + @java.lang.Override public boolean hasGameStartRejoinMessage() { - return ((bitField1_ & 0x00000080) == 0x00000080); + return instance.hasGameStartRejoinMessage(); } /** * optional .GameStartRejoinMessage gameStartRejoinMessage = 40; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage getGameStartRejoinMessage() { - return gameStartRejoinMessage_; + return instance.getGameStartRejoinMessage(); } /** * optional .GameStartRejoinMessage gameStartRejoinMessage = 40; */ public Builder setGameStartRejoinMessage(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gameStartRejoinMessage_ = value; - - bitField1_ |= 0x00000080; + copyOnWrite(); + instance.setGameStartRejoinMessage(value); return this; - } + } /** * optional .GameStartRejoinMessage gameStartRejoinMessage = 40; */ public Builder setGameStartRejoinMessage( de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.Builder builderForValue) { - gameStartRejoinMessage_ = builderForValue.build(); - - bitField1_ |= 0x00000080; + copyOnWrite(); + instance.setGameStartRejoinMessage(builderForValue); return this; } /** * optional .GameStartRejoinMessage gameStartRejoinMessage = 40; */ public Builder mergeGameStartRejoinMessage(de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage value) { - 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; - } - - bitField1_ |= 0x00000080; + copyOnWrite(); + instance.mergeGameStartRejoinMessage(value); return this; } /** * optional .GameStartRejoinMessage gameStartRejoinMessage = 40; */ - public Builder clearGameStartRejoinMessage() { - gameStartRejoinMessage_ = de.pokerth.protocol.ProtoBuf.GameStartRejoinMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x00000080); + public Builder clearGameStartRejoinMessage() { copyOnWrite(); + instance.clearGameStartRejoinMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.HandStartMessage handStartMessage_ = de.pokerth.protocol.ProtoBuf.HandStartMessage.getDefaultInstance(); /** * optional .HandStartMessage handStartMessage = 41; */ + @java.lang.Override public boolean hasHandStartMessage() { - return ((bitField1_ & 0x00000100) == 0x00000100); + return instance.hasHandStartMessage(); } /** * optional .HandStartMessage handStartMessage = 41; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.HandStartMessage getHandStartMessage() { - return handStartMessage_; + return instance.getHandStartMessage(); } /** * optional .HandStartMessage handStartMessage = 41; */ public Builder setHandStartMessage(de.pokerth.protocol.ProtoBuf.HandStartMessage value) { - if (value == null) { - throw new NullPointerException(); - } - handStartMessage_ = value; - - bitField1_ |= 0x00000100; + copyOnWrite(); + instance.setHandStartMessage(value); return this; - } + } /** * optional .HandStartMessage handStartMessage = 41; */ public Builder setHandStartMessage( de.pokerth.protocol.ProtoBuf.HandStartMessage.Builder builderForValue) { - handStartMessage_ = builderForValue.build(); - - bitField1_ |= 0x00000100; + copyOnWrite(); + instance.setHandStartMessage(builderForValue); return this; } /** * optional .HandStartMessage handStartMessage = 41; */ public Builder mergeHandStartMessage(de.pokerth.protocol.ProtoBuf.HandStartMessage value) { - 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; - } - - bitField1_ |= 0x00000100; + copyOnWrite(); + instance.mergeHandStartMessage(value); return this; } /** * optional .HandStartMessage handStartMessage = 41; */ - public Builder clearHandStartMessage() { - handStartMessage_ = de.pokerth.protocol.ProtoBuf.HandStartMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x00000100); + public Builder clearHandStartMessage() { copyOnWrite(); + instance.clearHandStartMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.PlayersTurnMessage playersTurnMessage_ = de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.getDefaultInstance(); /** * optional .PlayersTurnMessage playersTurnMessage = 42; */ + @java.lang.Override public boolean hasPlayersTurnMessage() { - return ((bitField1_ & 0x00000200) == 0x00000200); + return instance.hasPlayersTurnMessage(); } /** * optional .PlayersTurnMessage playersTurnMessage = 42; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayersTurnMessage getPlayersTurnMessage() { - return playersTurnMessage_; + return instance.getPlayersTurnMessage(); } /** * optional .PlayersTurnMessage playersTurnMessage = 42; */ public Builder setPlayersTurnMessage(de.pokerth.protocol.ProtoBuf.PlayersTurnMessage value) { - if (value == null) { - throw new NullPointerException(); - } - playersTurnMessage_ = value; - - bitField1_ |= 0x00000200; + copyOnWrite(); + instance.setPlayersTurnMessage(value); return this; - } + } /** * optional .PlayersTurnMessage playersTurnMessage = 42; */ public Builder setPlayersTurnMessage( de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.Builder builderForValue) { - playersTurnMessage_ = builderForValue.build(); - - bitField1_ |= 0x00000200; + copyOnWrite(); + instance.setPlayersTurnMessage(builderForValue); return this; } /** * optional .PlayersTurnMessage playersTurnMessage = 42; */ public Builder mergePlayersTurnMessage(de.pokerth.protocol.ProtoBuf.PlayersTurnMessage value) { - 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; - } - - bitField1_ |= 0x00000200; + copyOnWrite(); + instance.mergePlayersTurnMessage(value); return this; } /** * optional .PlayersTurnMessage playersTurnMessage = 42; */ - public Builder clearPlayersTurnMessage() { - playersTurnMessage_ = de.pokerth.protocol.ProtoBuf.PlayersTurnMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x00000200); + public Builder clearPlayersTurnMessage() { copyOnWrite(); + instance.clearPlayersTurnMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.MyActionRequestMessage myActionRequestMessage_ = de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.getDefaultInstance(); /** * optional .MyActionRequestMessage myActionRequestMessage = 43; */ + @java.lang.Override public boolean hasMyActionRequestMessage() { - return ((bitField1_ & 0x00000400) == 0x00000400); + return instance.hasMyActionRequestMessage(); } /** * optional .MyActionRequestMessage myActionRequestMessage = 43; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.MyActionRequestMessage getMyActionRequestMessage() { - return myActionRequestMessage_; + return instance.getMyActionRequestMessage(); } /** * optional .MyActionRequestMessage myActionRequestMessage = 43; */ public Builder setMyActionRequestMessage(de.pokerth.protocol.ProtoBuf.MyActionRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - myActionRequestMessage_ = value; - - bitField1_ |= 0x00000400; + copyOnWrite(); + instance.setMyActionRequestMessage(value); return this; - } + } /** * optional .MyActionRequestMessage myActionRequestMessage = 43; */ public Builder setMyActionRequestMessage( de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.Builder builderForValue) { - myActionRequestMessage_ = builderForValue.build(); - - bitField1_ |= 0x00000400; + copyOnWrite(); + instance.setMyActionRequestMessage(builderForValue); return this; } /** * optional .MyActionRequestMessage myActionRequestMessage = 43; */ public Builder mergeMyActionRequestMessage(de.pokerth.protocol.ProtoBuf.MyActionRequestMessage value) { - 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; - } - - bitField1_ |= 0x00000400; + copyOnWrite(); + instance.mergeMyActionRequestMessage(value); return this; } /** * optional .MyActionRequestMessage myActionRequestMessage = 43; */ - public Builder clearMyActionRequestMessage() { - myActionRequestMessage_ = de.pokerth.protocol.ProtoBuf.MyActionRequestMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x00000400); + public Builder clearMyActionRequestMessage() { copyOnWrite(); + instance.clearMyActionRequestMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage yourActionRejectedMessage_ = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.getDefaultInstance(); /** * optional .YourActionRejectedMessage yourActionRejectedMessage = 44; */ + @java.lang.Override public boolean hasYourActionRejectedMessage() { - return ((bitField1_ & 0x00000800) == 0x00000800); + return instance.hasYourActionRejectedMessage(); } /** * optional .YourActionRejectedMessage yourActionRejectedMessage = 44; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage getYourActionRejectedMessage() { - return yourActionRejectedMessage_; + return instance.getYourActionRejectedMessage(); } /** * optional .YourActionRejectedMessage yourActionRejectedMessage = 44; */ public Builder setYourActionRejectedMessage(de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - yourActionRejectedMessage_ = value; - - bitField1_ |= 0x00000800; + copyOnWrite(); + instance.setYourActionRejectedMessage(value); return this; - } + } /** * optional .YourActionRejectedMessage yourActionRejectedMessage = 44; */ public Builder setYourActionRejectedMessage( de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.Builder builderForValue) { - yourActionRejectedMessage_ = builderForValue.build(); - - bitField1_ |= 0x00000800; + copyOnWrite(); + instance.setYourActionRejectedMessage(builderForValue); return this; } /** * optional .YourActionRejectedMessage yourActionRejectedMessage = 44; */ public Builder mergeYourActionRejectedMessage(de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage value) { - 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; - } - - bitField1_ |= 0x00000800; + copyOnWrite(); + instance.mergeYourActionRejectedMessage(value); return this; } /** * optional .YourActionRejectedMessage yourActionRejectedMessage = 44; */ - public Builder clearYourActionRejectedMessage() { - yourActionRejectedMessage_ = de.pokerth.protocol.ProtoBuf.YourActionRejectedMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x00000800); + public Builder clearYourActionRejectedMessage() { copyOnWrite(); + instance.clearYourActionRejectedMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage playersActionDoneMessage_ = de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.getDefaultInstance(); /** * optional .PlayersActionDoneMessage playersActionDoneMessage = 45; */ + @java.lang.Override public boolean hasPlayersActionDoneMessage() { - return ((bitField1_ & 0x00001000) == 0x00001000); + return instance.hasPlayersActionDoneMessage(); } /** * optional .PlayersActionDoneMessage playersActionDoneMessage = 45; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage getPlayersActionDoneMessage() { - return playersActionDoneMessage_; + return instance.getPlayersActionDoneMessage(); } /** * optional .PlayersActionDoneMessage playersActionDoneMessage = 45; */ public Builder setPlayersActionDoneMessage(de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage value) { - if (value == null) { - throw new NullPointerException(); - } - playersActionDoneMessage_ = value; - - bitField1_ |= 0x00001000; + copyOnWrite(); + instance.setPlayersActionDoneMessage(value); return this; - } + } /** * optional .PlayersActionDoneMessage playersActionDoneMessage = 45; */ public Builder setPlayersActionDoneMessage( de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.Builder builderForValue) { - playersActionDoneMessage_ = builderForValue.build(); - - bitField1_ |= 0x00001000; + copyOnWrite(); + instance.setPlayersActionDoneMessage(builderForValue); return this; } /** * optional .PlayersActionDoneMessage playersActionDoneMessage = 45; */ public Builder mergePlayersActionDoneMessage(de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage value) { - 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; - } - - bitField1_ |= 0x00001000; + copyOnWrite(); + instance.mergePlayersActionDoneMessage(value); return this; } /** * optional .PlayersActionDoneMessage playersActionDoneMessage = 45; */ - public Builder clearPlayersActionDoneMessage() { - playersActionDoneMessage_ = de.pokerth.protocol.ProtoBuf.PlayersActionDoneMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x00001000); + public Builder clearPlayersActionDoneMessage() { copyOnWrite(); + instance.clearPlayersActionDoneMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage dealFlopCardsMessage_ = de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.getDefaultInstance(); /** * optional .DealFlopCardsMessage dealFlopCardsMessage = 46; */ + @java.lang.Override public boolean hasDealFlopCardsMessage() { - return ((bitField1_ & 0x00002000) == 0x00002000); + return instance.hasDealFlopCardsMessage(); } /** * optional .DealFlopCardsMessage dealFlopCardsMessage = 46; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage getDealFlopCardsMessage() { - return dealFlopCardsMessage_; + return instance.getDealFlopCardsMessage(); } /** * optional .DealFlopCardsMessage dealFlopCardsMessage = 46; */ public Builder setDealFlopCardsMessage(de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage value) { - if (value == null) { - throw new NullPointerException(); - } - dealFlopCardsMessage_ = value; - - bitField1_ |= 0x00002000; + copyOnWrite(); + instance.setDealFlopCardsMessage(value); return this; - } + } /** * optional .DealFlopCardsMessage dealFlopCardsMessage = 46; */ public Builder setDealFlopCardsMessage( de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.Builder builderForValue) { - dealFlopCardsMessage_ = builderForValue.build(); - - bitField1_ |= 0x00002000; + copyOnWrite(); + instance.setDealFlopCardsMessage(builderForValue); return this; } /** * optional .DealFlopCardsMessage dealFlopCardsMessage = 46; */ public Builder mergeDealFlopCardsMessage(de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage value) { - 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; - } - - bitField1_ |= 0x00002000; + copyOnWrite(); + instance.mergeDealFlopCardsMessage(value); return this; } /** * optional .DealFlopCardsMessage dealFlopCardsMessage = 46; */ - public Builder clearDealFlopCardsMessage() { - dealFlopCardsMessage_ = de.pokerth.protocol.ProtoBuf.DealFlopCardsMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x00002000); + public Builder clearDealFlopCardsMessage() { copyOnWrite(); + instance.clearDealFlopCardsMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.DealTurnCardMessage dealTurnCardMessage_ = de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.getDefaultInstance(); /** * optional .DealTurnCardMessage dealTurnCardMessage = 47; */ + @java.lang.Override public boolean hasDealTurnCardMessage() { - return ((bitField1_ & 0x00004000) == 0x00004000); + return instance.hasDealTurnCardMessage(); } /** * optional .DealTurnCardMessage dealTurnCardMessage = 47; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.DealTurnCardMessage getDealTurnCardMessage() { - return dealTurnCardMessage_; + return instance.getDealTurnCardMessage(); } /** * optional .DealTurnCardMessage dealTurnCardMessage = 47; */ public Builder setDealTurnCardMessage(de.pokerth.protocol.ProtoBuf.DealTurnCardMessage value) { - if (value == null) { - throw new NullPointerException(); - } - dealTurnCardMessage_ = value; - - bitField1_ |= 0x00004000; + copyOnWrite(); + instance.setDealTurnCardMessage(value); return this; - } + } /** * optional .DealTurnCardMessage dealTurnCardMessage = 47; */ public Builder setDealTurnCardMessage( de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.Builder builderForValue) { - dealTurnCardMessage_ = builderForValue.build(); - - bitField1_ |= 0x00004000; + copyOnWrite(); + instance.setDealTurnCardMessage(builderForValue); return this; } /** * optional .DealTurnCardMessage dealTurnCardMessage = 47; */ public Builder mergeDealTurnCardMessage(de.pokerth.protocol.ProtoBuf.DealTurnCardMessage value) { - 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; - } - - bitField1_ |= 0x00004000; + copyOnWrite(); + instance.mergeDealTurnCardMessage(value); return this; } /** * optional .DealTurnCardMessage dealTurnCardMessage = 47; */ - public Builder clearDealTurnCardMessage() { - dealTurnCardMessage_ = de.pokerth.protocol.ProtoBuf.DealTurnCardMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x00004000); + public Builder clearDealTurnCardMessage() { copyOnWrite(); + instance.clearDealTurnCardMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.DealRiverCardMessage dealRiverCardMessage_ = de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.getDefaultInstance(); /** * optional .DealRiverCardMessage dealRiverCardMessage = 48; */ + @java.lang.Override public boolean hasDealRiverCardMessage() { - return ((bitField1_ & 0x00008000) == 0x00008000); + return instance.hasDealRiverCardMessage(); } /** * optional .DealRiverCardMessage dealRiverCardMessage = 48; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.DealRiverCardMessage getDealRiverCardMessage() { - return dealRiverCardMessage_; + return instance.getDealRiverCardMessage(); } /** * optional .DealRiverCardMessage dealRiverCardMessage = 48; */ public Builder setDealRiverCardMessage(de.pokerth.protocol.ProtoBuf.DealRiverCardMessage value) { - if (value == null) { - throw new NullPointerException(); - } - dealRiverCardMessage_ = value; - - bitField1_ |= 0x00008000; + copyOnWrite(); + instance.setDealRiverCardMessage(value); return this; - } + } /** * optional .DealRiverCardMessage dealRiverCardMessage = 48; */ public Builder setDealRiverCardMessage( de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.Builder builderForValue) { - dealRiverCardMessage_ = builderForValue.build(); - - bitField1_ |= 0x00008000; + copyOnWrite(); + instance.setDealRiverCardMessage(builderForValue); return this; } /** * optional .DealRiverCardMessage dealRiverCardMessage = 48; */ public Builder mergeDealRiverCardMessage(de.pokerth.protocol.ProtoBuf.DealRiverCardMessage value) { - 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; - } - - bitField1_ |= 0x00008000; + copyOnWrite(); + instance.mergeDealRiverCardMessage(value); return this; } /** * optional .DealRiverCardMessage dealRiverCardMessage = 48; */ - public Builder clearDealRiverCardMessage() { - dealRiverCardMessage_ = de.pokerth.protocol.ProtoBuf.DealRiverCardMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x00008000); + public Builder clearDealRiverCardMessage() { copyOnWrite(); + instance.clearDealRiverCardMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage allInShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.getDefaultInstance(); /** * optional .AllInShowCardsMessage allInShowCardsMessage = 49; */ + @java.lang.Override public boolean hasAllInShowCardsMessage() { - return ((bitField1_ & 0x00010000) == 0x00010000); + return instance.hasAllInShowCardsMessage(); } /** * optional .AllInShowCardsMessage allInShowCardsMessage = 49; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage getAllInShowCardsMessage() { - return allInShowCardsMessage_; + return instance.getAllInShowCardsMessage(); } /** * optional .AllInShowCardsMessage allInShowCardsMessage = 49; */ public Builder setAllInShowCardsMessage(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage value) { - if (value == null) { - throw new NullPointerException(); - } - allInShowCardsMessage_ = value; - - bitField1_ |= 0x00010000; + copyOnWrite(); + instance.setAllInShowCardsMessage(value); return this; - } + } /** * optional .AllInShowCardsMessage allInShowCardsMessage = 49; */ public Builder setAllInShowCardsMessage( de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.Builder builderForValue) { - allInShowCardsMessage_ = builderForValue.build(); - - bitField1_ |= 0x00010000; + copyOnWrite(); + instance.setAllInShowCardsMessage(builderForValue); return this; } /** * optional .AllInShowCardsMessage allInShowCardsMessage = 49; */ public Builder mergeAllInShowCardsMessage(de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage value) { - 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; - } - - bitField1_ |= 0x00010000; + copyOnWrite(); + instance.mergeAllInShowCardsMessage(value); return this; } /** * optional .AllInShowCardsMessage allInShowCardsMessage = 49; */ - public Builder clearAllInShowCardsMessage() { - allInShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.AllInShowCardsMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x00010000); + public Builder clearAllInShowCardsMessage() { copyOnWrite(); + instance.clearAllInShowCardsMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage endOfHandShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.getDefaultInstance(); /** * optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; */ + @java.lang.Override public boolean hasEndOfHandShowCardsMessage() { - return ((bitField1_ & 0x00020000) == 0x00020000); + return instance.hasEndOfHandShowCardsMessage(); } /** * optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage getEndOfHandShowCardsMessage() { - return endOfHandShowCardsMessage_; + return instance.getEndOfHandShowCardsMessage(); } /** * optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; */ public Builder setEndOfHandShowCardsMessage(de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage value) { - if (value == null) { - throw new NullPointerException(); - } - endOfHandShowCardsMessage_ = value; - - bitField1_ |= 0x00020000; + copyOnWrite(); + instance.setEndOfHandShowCardsMessage(value); return this; - } + } /** * optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; */ public Builder setEndOfHandShowCardsMessage( de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.Builder builderForValue) { - endOfHandShowCardsMessage_ = builderForValue.build(); - - bitField1_ |= 0x00020000; + copyOnWrite(); + instance.setEndOfHandShowCardsMessage(builderForValue); return this; } /** * optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; */ public Builder mergeEndOfHandShowCardsMessage(de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage value) { - 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; - } - - bitField1_ |= 0x00020000; + copyOnWrite(); + instance.mergeEndOfHandShowCardsMessage(value); return this; } /** * optional .EndOfHandShowCardsMessage endOfHandShowCardsMessage = 50; */ - public Builder clearEndOfHandShowCardsMessage() { - endOfHandShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.EndOfHandShowCardsMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x00020000); + public Builder clearEndOfHandShowCardsMessage() { copyOnWrite(); + instance.clearEndOfHandShowCardsMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage endOfHandHideCardsMessage_ = de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.getDefaultInstance(); /** * optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; */ + @java.lang.Override public boolean hasEndOfHandHideCardsMessage() { - return ((bitField1_ & 0x00040000) == 0x00040000); + return instance.hasEndOfHandHideCardsMessage(); } /** * optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage getEndOfHandHideCardsMessage() { - return endOfHandHideCardsMessage_; + return instance.getEndOfHandHideCardsMessage(); } /** * optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; */ public Builder setEndOfHandHideCardsMessage(de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage value) { - if (value == null) { - throw new NullPointerException(); - } - endOfHandHideCardsMessage_ = value; - - bitField1_ |= 0x00040000; + copyOnWrite(); + instance.setEndOfHandHideCardsMessage(value); return this; - } + } /** * optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; */ public Builder setEndOfHandHideCardsMessage( de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.Builder builderForValue) { - endOfHandHideCardsMessage_ = builderForValue.build(); - - bitField1_ |= 0x00040000; + copyOnWrite(); + instance.setEndOfHandHideCardsMessage(builderForValue); return this; } /** * optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; */ public Builder mergeEndOfHandHideCardsMessage(de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage value) { - 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; - } - - bitField1_ |= 0x00040000; + copyOnWrite(); + instance.mergeEndOfHandHideCardsMessage(value); return this; } /** * optional .EndOfHandHideCardsMessage endOfHandHideCardsMessage = 51; */ - public Builder clearEndOfHandHideCardsMessage() { - endOfHandHideCardsMessage_ = de.pokerth.protocol.ProtoBuf.EndOfHandHideCardsMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x00040000); + public Builder clearEndOfHandHideCardsMessage() { copyOnWrite(); + instance.clearEndOfHandHideCardsMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage showMyCardsRequestMessage_ = de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.getDefaultInstance(); /** * optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; */ + @java.lang.Override public boolean hasShowMyCardsRequestMessage() { - return ((bitField1_ & 0x00080000) == 0x00080000); + return instance.hasShowMyCardsRequestMessage(); } /** * optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage getShowMyCardsRequestMessage() { - return showMyCardsRequestMessage_; + return instance.getShowMyCardsRequestMessage(); } /** * optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; */ public Builder setShowMyCardsRequestMessage(de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - showMyCardsRequestMessage_ = value; - - bitField1_ |= 0x00080000; + copyOnWrite(); + instance.setShowMyCardsRequestMessage(value); return this; - } + } /** * optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; */ public Builder setShowMyCardsRequestMessage( de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.Builder builderForValue) { - showMyCardsRequestMessage_ = builderForValue.build(); - - bitField1_ |= 0x00080000; + copyOnWrite(); + instance.setShowMyCardsRequestMessage(builderForValue); return this; } /** * optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; */ public Builder mergeShowMyCardsRequestMessage(de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage value) { - 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; - } - - bitField1_ |= 0x00080000; + copyOnWrite(); + instance.mergeShowMyCardsRequestMessage(value); return this; } /** * optional .ShowMyCardsRequestMessage showMyCardsRequestMessage = 52; */ - public Builder clearShowMyCardsRequestMessage() { - showMyCardsRequestMessage_ = de.pokerth.protocol.ProtoBuf.ShowMyCardsRequestMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x00080000); + public Builder clearShowMyCardsRequestMessage() { copyOnWrite(); + instance.clearShowMyCardsRequestMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage afterHandShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.getDefaultInstance(); /** * optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; */ + @java.lang.Override public boolean hasAfterHandShowCardsMessage() { - return ((bitField1_ & 0x00100000) == 0x00100000); + return instance.hasAfterHandShowCardsMessage(); } /** * optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage getAfterHandShowCardsMessage() { - return afterHandShowCardsMessage_; + return instance.getAfterHandShowCardsMessage(); } /** * optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; */ public Builder setAfterHandShowCardsMessage(de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage value) { - if (value == null) { - throw new NullPointerException(); - } - afterHandShowCardsMessage_ = value; - - bitField1_ |= 0x00100000; + copyOnWrite(); + instance.setAfterHandShowCardsMessage(value); return this; - } + } /** * optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; */ public Builder setAfterHandShowCardsMessage( de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.Builder builderForValue) { - afterHandShowCardsMessage_ = builderForValue.build(); - - bitField1_ |= 0x00100000; + copyOnWrite(); + instance.setAfterHandShowCardsMessage(builderForValue); return this; } /** * optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; */ public Builder mergeAfterHandShowCardsMessage(de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage value) { - 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; - } - - bitField1_ |= 0x00100000; + copyOnWrite(); + instance.mergeAfterHandShowCardsMessage(value); return this; } /** * optional .AfterHandShowCardsMessage afterHandShowCardsMessage = 53; */ - public Builder clearAfterHandShowCardsMessage() { - afterHandShowCardsMessage_ = de.pokerth.protocol.ProtoBuf.AfterHandShowCardsMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x00100000); + public Builder clearAfterHandShowCardsMessage() { copyOnWrite(); + instance.clearAfterHandShowCardsMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.EndOfGameMessage endOfGameMessage_ = de.pokerth.protocol.ProtoBuf.EndOfGameMessage.getDefaultInstance(); /** * optional .EndOfGameMessage endOfGameMessage = 54; */ + @java.lang.Override public boolean hasEndOfGameMessage() { - return ((bitField1_ & 0x00200000) == 0x00200000); + return instance.hasEndOfGameMessage(); } /** * optional .EndOfGameMessage endOfGameMessage = 54; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.EndOfGameMessage getEndOfGameMessage() { - return endOfGameMessage_; + return instance.getEndOfGameMessage(); } /** * optional .EndOfGameMessage endOfGameMessage = 54; */ public Builder setEndOfGameMessage(de.pokerth.protocol.ProtoBuf.EndOfGameMessage value) { - if (value == null) { - throw new NullPointerException(); - } - endOfGameMessage_ = value; - - bitField1_ |= 0x00200000; + copyOnWrite(); + instance.setEndOfGameMessage(value); return this; - } + } /** * optional .EndOfGameMessage endOfGameMessage = 54; */ public Builder setEndOfGameMessage( de.pokerth.protocol.ProtoBuf.EndOfGameMessage.Builder builderForValue) { - endOfGameMessage_ = builderForValue.build(); - - bitField1_ |= 0x00200000; + copyOnWrite(); + instance.setEndOfGameMessage(builderForValue); return this; } /** * optional .EndOfGameMessage endOfGameMessage = 54; */ public Builder mergeEndOfGameMessage(de.pokerth.protocol.ProtoBuf.EndOfGameMessage value) { - 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; - } - - bitField1_ |= 0x00200000; + copyOnWrite(); + instance.mergeEndOfGameMessage(value); return this; } /** * optional .EndOfGameMessage endOfGameMessage = 54; */ - public Builder clearEndOfGameMessage() { - endOfGameMessage_ = de.pokerth.protocol.ProtoBuf.EndOfGameMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x00200000); + public Builder clearEndOfGameMessage() { copyOnWrite(); + instance.clearEndOfGameMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage playerIdChangedMessage_ = de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.getDefaultInstance(); /** * optional .PlayerIdChangedMessage playerIdChangedMessage = 55; */ + @java.lang.Override public boolean hasPlayerIdChangedMessage() { - return ((bitField1_ & 0x00400000) == 0x00400000); + return instance.hasPlayerIdChangedMessage(); } /** * optional .PlayerIdChangedMessage playerIdChangedMessage = 55; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage getPlayerIdChangedMessage() { - return playerIdChangedMessage_; + return instance.getPlayerIdChangedMessage(); } /** * optional .PlayerIdChangedMessage playerIdChangedMessage = 55; */ public Builder setPlayerIdChangedMessage(de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - playerIdChangedMessage_ = value; - - bitField1_ |= 0x00400000; + copyOnWrite(); + instance.setPlayerIdChangedMessage(value); return this; - } + } /** * optional .PlayerIdChangedMessage playerIdChangedMessage = 55; */ public Builder setPlayerIdChangedMessage( de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.Builder builderForValue) { - playerIdChangedMessage_ = builderForValue.build(); - - bitField1_ |= 0x00400000; + copyOnWrite(); + instance.setPlayerIdChangedMessage(builderForValue); return this; } /** * optional .PlayerIdChangedMessage playerIdChangedMessage = 55; */ public Builder mergePlayerIdChangedMessage(de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage value) { - 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; - } - - bitField1_ |= 0x00400000; + copyOnWrite(); + instance.mergePlayerIdChangedMessage(value); return this; } /** * optional .PlayerIdChangedMessage playerIdChangedMessage = 55; */ - public Builder clearPlayerIdChangedMessage() { - playerIdChangedMessage_ = de.pokerth.protocol.ProtoBuf.PlayerIdChangedMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x00400000); + public Builder clearPlayerIdChangedMessage() { copyOnWrite(); + instance.clearPlayerIdChangedMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage askKickPlayerMessage_ = de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.getDefaultInstance(); /** * optional .AskKickPlayerMessage askKickPlayerMessage = 56; */ + @java.lang.Override public boolean hasAskKickPlayerMessage() { - return ((bitField1_ & 0x00800000) == 0x00800000); + return instance.hasAskKickPlayerMessage(); } /** * optional .AskKickPlayerMessage askKickPlayerMessage = 56; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage getAskKickPlayerMessage() { - return askKickPlayerMessage_; + return instance.getAskKickPlayerMessage(); } /** * optional .AskKickPlayerMessage askKickPlayerMessage = 56; */ public Builder setAskKickPlayerMessage(de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage value) { - if (value == null) { - throw new NullPointerException(); - } - askKickPlayerMessage_ = value; - - bitField1_ |= 0x00800000; + copyOnWrite(); + instance.setAskKickPlayerMessage(value); return this; - } + } /** * optional .AskKickPlayerMessage askKickPlayerMessage = 56; */ public Builder setAskKickPlayerMessage( de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.Builder builderForValue) { - askKickPlayerMessage_ = builderForValue.build(); - - bitField1_ |= 0x00800000; + copyOnWrite(); + instance.setAskKickPlayerMessage(builderForValue); return this; } /** * optional .AskKickPlayerMessage askKickPlayerMessage = 56; */ public Builder mergeAskKickPlayerMessage(de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage value) { - 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; - } - - bitField1_ |= 0x00800000; + copyOnWrite(); + instance.mergeAskKickPlayerMessage(value); return this; } /** * optional .AskKickPlayerMessage askKickPlayerMessage = 56; */ - public Builder clearAskKickPlayerMessage() { - askKickPlayerMessage_ = de.pokerth.protocol.ProtoBuf.AskKickPlayerMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x00800000); + public Builder clearAskKickPlayerMessage() { copyOnWrite(); + instance.clearAskKickPlayerMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage askKickDeniedMessage_ = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.getDefaultInstance(); /** * optional .AskKickDeniedMessage askKickDeniedMessage = 57; */ + @java.lang.Override public boolean hasAskKickDeniedMessage() { - return ((bitField1_ & 0x01000000) == 0x01000000); + return instance.hasAskKickDeniedMessage(); } /** * optional .AskKickDeniedMessage askKickDeniedMessage = 57; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage getAskKickDeniedMessage() { - return askKickDeniedMessage_; + return instance.getAskKickDeniedMessage(); } /** * optional .AskKickDeniedMessage askKickDeniedMessage = 57; */ public Builder setAskKickDeniedMessage(de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - askKickDeniedMessage_ = value; - - bitField1_ |= 0x01000000; + copyOnWrite(); + instance.setAskKickDeniedMessage(value); return this; - } + } /** * optional .AskKickDeniedMessage askKickDeniedMessage = 57; */ public Builder setAskKickDeniedMessage( de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.Builder builderForValue) { - askKickDeniedMessage_ = builderForValue.build(); - - bitField1_ |= 0x01000000; + copyOnWrite(); + instance.setAskKickDeniedMessage(builderForValue); return this; } /** * optional .AskKickDeniedMessage askKickDeniedMessage = 57; */ public Builder mergeAskKickDeniedMessage(de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage value) { - 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; - } - - bitField1_ |= 0x01000000; + copyOnWrite(); + instance.mergeAskKickDeniedMessage(value); return this; } /** * optional .AskKickDeniedMessage askKickDeniedMessage = 57; */ - public Builder clearAskKickDeniedMessage() { - askKickDeniedMessage_ = de.pokerth.protocol.ProtoBuf.AskKickDeniedMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x01000000); + public Builder clearAskKickDeniedMessage() { copyOnWrite(); + instance.clearAskKickDeniedMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage startKickPetitionMessage_ = de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.getDefaultInstance(); /** * optional .StartKickPetitionMessage startKickPetitionMessage = 58; */ + @java.lang.Override public boolean hasStartKickPetitionMessage() { - return ((bitField1_ & 0x02000000) == 0x02000000); + return instance.hasStartKickPetitionMessage(); } /** * optional .StartKickPetitionMessage startKickPetitionMessage = 58; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage getStartKickPetitionMessage() { - return startKickPetitionMessage_; + return instance.getStartKickPetitionMessage(); } /** * optional .StartKickPetitionMessage startKickPetitionMessage = 58; */ public Builder setStartKickPetitionMessage(de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage value) { - if (value == null) { - throw new NullPointerException(); - } - startKickPetitionMessage_ = value; - - bitField1_ |= 0x02000000; + copyOnWrite(); + instance.setStartKickPetitionMessage(value); return this; - } + } /** * optional .StartKickPetitionMessage startKickPetitionMessage = 58; */ public Builder setStartKickPetitionMessage( de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.Builder builderForValue) { - startKickPetitionMessage_ = builderForValue.build(); - - bitField1_ |= 0x02000000; + copyOnWrite(); + instance.setStartKickPetitionMessage(builderForValue); return this; } /** * optional .StartKickPetitionMessage startKickPetitionMessage = 58; */ public Builder mergeStartKickPetitionMessage(de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage value) { - 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; - } - - bitField1_ |= 0x02000000; + copyOnWrite(); + instance.mergeStartKickPetitionMessage(value); return this; } /** * optional .StartKickPetitionMessage startKickPetitionMessage = 58; */ - public Builder clearStartKickPetitionMessage() { - startKickPetitionMessage_ = de.pokerth.protocol.ProtoBuf.StartKickPetitionMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x02000000); + public Builder clearStartKickPetitionMessage() { copyOnWrite(); + instance.clearStartKickPetitionMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage voteKickRequestMessage_ = de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.getDefaultInstance(); /** * optional .VoteKickRequestMessage voteKickRequestMessage = 59; */ + @java.lang.Override public boolean hasVoteKickRequestMessage() { - return ((bitField1_ & 0x04000000) == 0x04000000); + return instance.hasVoteKickRequestMessage(); } /** * optional .VoteKickRequestMessage voteKickRequestMessage = 59; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage getVoteKickRequestMessage() { - return voteKickRequestMessage_; + return instance.getVoteKickRequestMessage(); } /** * optional .VoteKickRequestMessage voteKickRequestMessage = 59; */ public Builder setVoteKickRequestMessage(de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - voteKickRequestMessage_ = value; - - bitField1_ |= 0x04000000; + copyOnWrite(); + instance.setVoteKickRequestMessage(value); return this; - } + } /** * optional .VoteKickRequestMessage voteKickRequestMessage = 59; */ public Builder setVoteKickRequestMessage( de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.Builder builderForValue) { - voteKickRequestMessage_ = builderForValue.build(); - - bitField1_ |= 0x04000000; + copyOnWrite(); + instance.setVoteKickRequestMessage(builderForValue); return this; } /** * optional .VoteKickRequestMessage voteKickRequestMessage = 59; */ public Builder mergeVoteKickRequestMessage(de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage value) { - 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; - } - - bitField1_ |= 0x04000000; + copyOnWrite(); + instance.mergeVoteKickRequestMessage(value); return this; } /** * optional .VoteKickRequestMessage voteKickRequestMessage = 59; */ - public Builder clearVoteKickRequestMessage() { - voteKickRequestMessage_ = de.pokerth.protocol.ProtoBuf.VoteKickRequestMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x04000000); + public Builder clearVoteKickRequestMessage() { copyOnWrite(); + instance.clearVoteKickRequestMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage voteKickReplyMessage_ = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.getDefaultInstance(); /** * optional .VoteKickReplyMessage voteKickReplyMessage = 60; */ + @java.lang.Override public boolean hasVoteKickReplyMessage() { - return ((bitField1_ & 0x08000000) == 0x08000000); + return instance.hasVoteKickReplyMessage(); } /** * optional .VoteKickReplyMessage voteKickReplyMessage = 60; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage getVoteKickReplyMessage() { - return voteKickReplyMessage_; + return instance.getVoteKickReplyMessage(); } /** * optional .VoteKickReplyMessage voteKickReplyMessage = 60; */ public Builder setVoteKickReplyMessage(de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage value) { - if (value == null) { - throw new NullPointerException(); - } - voteKickReplyMessage_ = value; - - bitField1_ |= 0x08000000; + copyOnWrite(); + instance.setVoteKickReplyMessage(value); return this; - } + } /** * optional .VoteKickReplyMessage voteKickReplyMessage = 60; */ public Builder setVoteKickReplyMessage( de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.Builder builderForValue) { - voteKickReplyMessage_ = builderForValue.build(); - - bitField1_ |= 0x08000000; + copyOnWrite(); + instance.setVoteKickReplyMessage(builderForValue); return this; } /** * optional .VoteKickReplyMessage voteKickReplyMessage = 60; */ public Builder mergeVoteKickReplyMessage(de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage value) { - 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; - } - - bitField1_ |= 0x08000000; + copyOnWrite(); + instance.mergeVoteKickReplyMessage(value); return this; } /** * optional .VoteKickReplyMessage voteKickReplyMessage = 60; */ - public Builder clearVoteKickReplyMessage() { - voteKickReplyMessage_ = de.pokerth.protocol.ProtoBuf.VoteKickReplyMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x08000000); + public Builder clearVoteKickReplyMessage() { copyOnWrite(); + instance.clearVoteKickReplyMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage kickPetitionUpdateMessage_ = de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.getDefaultInstance(); /** * optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; */ + @java.lang.Override public boolean hasKickPetitionUpdateMessage() { - return ((bitField1_ & 0x10000000) == 0x10000000); + return instance.hasKickPetitionUpdateMessage(); } /** * optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage getKickPetitionUpdateMessage() { - return kickPetitionUpdateMessage_; + return instance.getKickPetitionUpdateMessage(); } /** * optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; */ public Builder setKickPetitionUpdateMessage(de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage value) { - if (value == null) { - throw new NullPointerException(); - } - kickPetitionUpdateMessage_ = value; - - bitField1_ |= 0x10000000; + copyOnWrite(); + instance.setKickPetitionUpdateMessage(value); return this; - } + } /** * optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; */ public Builder setKickPetitionUpdateMessage( de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.Builder builderForValue) { - kickPetitionUpdateMessage_ = builderForValue.build(); - - bitField1_ |= 0x10000000; + copyOnWrite(); + instance.setKickPetitionUpdateMessage(builderForValue); return this; } /** * optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; */ public Builder mergeKickPetitionUpdateMessage(de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage value) { - 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; - } - - bitField1_ |= 0x10000000; + copyOnWrite(); + instance.mergeKickPetitionUpdateMessage(value); return this; } /** * optional .KickPetitionUpdateMessage kickPetitionUpdateMessage = 61; */ - public Builder clearKickPetitionUpdateMessage() { - kickPetitionUpdateMessage_ = de.pokerth.protocol.ProtoBuf.KickPetitionUpdateMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x10000000); + public Builder clearKickPetitionUpdateMessage() { copyOnWrite(); + instance.clearKickPetitionUpdateMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage endKickPetitionMessage_ = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.getDefaultInstance(); /** * optional .EndKickPetitionMessage endKickPetitionMessage = 62; */ + @java.lang.Override public boolean hasEndKickPetitionMessage() { - return ((bitField1_ & 0x20000000) == 0x20000000); + return instance.hasEndKickPetitionMessage(); } /** * optional .EndKickPetitionMessage endKickPetitionMessage = 62; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage getEndKickPetitionMessage() { - return endKickPetitionMessage_; + return instance.getEndKickPetitionMessage(); } /** * optional .EndKickPetitionMessage endKickPetitionMessage = 62; */ public Builder setEndKickPetitionMessage(de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage value) { - if (value == null) { - throw new NullPointerException(); - } - endKickPetitionMessage_ = value; - - bitField1_ |= 0x20000000; + copyOnWrite(); + instance.setEndKickPetitionMessage(value); return this; - } + } /** * optional .EndKickPetitionMessage endKickPetitionMessage = 62; */ public Builder setEndKickPetitionMessage( de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.Builder builderForValue) { - endKickPetitionMessage_ = builderForValue.build(); - - bitField1_ |= 0x20000000; + copyOnWrite(); + instance.setEndKickPetitionMessage(builderForValue); return this; } /** * optional .EndKickPetitionMessage endKickPetitionMessage = 62; */ public Builder mergeEndKickPetitionMessage(de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage value) { - 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; - } - - bitField1_ |= 0x20000000; + copyOnWrite(); + instance.mergeEndKickPetitionMessage(value); return this; } /** * optional .EndKickPetitionMessage endKickPetitionMessage = 62; */ - public Builder clearEndKickPetitionMessage() { - endKickPetitionMessage_ = de.pokerth.protocol.ProtoBuf.EndKickPetitionMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x20000000); + public Builder clearEndKickPetitionMessage() { copyOnWrite(); + instance.clearEndKickPetitionMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.StatisticsMessage statisticsMessage_ = de.pokerth.protocol.ProtoBuf.StatisticsMessage.getDefaultInstance(); /** * optional .StatisticsMessage statisticsMessage = 63; */ + @java.lang.Override public boolean hasStatisticsMessage() { - return ((bitField1_ & 0x40000000) == 0x40000000); + return instance.hasStatisticsMessage(); } /** * optional .StatisticsMessage statisticsMessage = 63; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.StatisticsMessage getStatisticsMessage() { - return statisticsMessage_; + return instance.getStatisticsMessage(); } /** * optional .StatisticsMessage statisticsMessage = 63; */ public Builder setStatisticsMessage(de.pokerth.protocol.ProtoBuf.StatisticsMessage value) { - if (value == null) { - throw new NullPointerException(); - } - statisticsMessage_ = value; - - bitField1_ |= 0x40000000; + copyOnWrite(); + instance.setStatisticsMessage(value); return this; - } + } /** * optional .StatisticsMessage statisticsMessage = 63; */ public Builder setStatisticsMessage( de.pokerth.protocol.ProtoBuf.StatisticsMessage.Builder builderForValue) { - statisticsMessage_ = builderForValue.build(); - - bitField1_ |= 0x40000000; + copyOnWrite(); + instance.setStatisticsMessage(builderForValue); return this; } /** * optional .StatisticsMessage statisticsMessage = 63; */ public Builder mergeStatisticsMessage(de.pokerth.protocol.ProtoBuf.StatisticsMessage value) { - 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; - } - - bitField1_ |= 0x40000000; + copyOnWrite(); + instance.mergeStatisticsMessage(value); return this; } /** * optional .StatisticsMessage statisticsMessage = 63; */ - public Builder clearStatisticsMessage() { - statisticsMessage_ = de.pokerth.protocol.ProtoBuf.StatisticsMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x40000000); + public Builder clearStatisticsMessage() { copyOnWrite(); + instance.clearStatisticsMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.ChatRequestMessage chatRequestMessage_ = de.pokerth.protocol.ProtoBuf.ChatRequestMessage.getDefaultInstance(); /** * optional .ChatRequestMessage chatRequestMessage = 64; */ + @java.lang.Override public boolean hasChatRequestMessage() { - return ((bitField1_ & 0x80000000) == 0x80000000); + return instance.hasChatRequestMessage(); } /** * optional .ChatRequestMessage chatRequestMessage = 64; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ChatRequestMessage getChatRequestMessage() { - return chatRequestMessage_; + return instance.getChatRequestMessage(); } /** * optional .ChatRequestMessage chatRequestMessage = 64; */ public Builder setChatRequestMessage(de.pokerth.protocol.ProtoBuf.ChatRequestMessage value) { - if (value == null) { - throw new NullPointerException(); - } - chatRequestMessage_ = value; - - bitField1_ |= 0x80000000; + copyOnWrite(); + instance.setChatRequestMessage(value); return this; - } + } /** * optional .ChatRequestMessage chatRequestMessage = 64; */ public Builder setChatRequestMessage( de.pokerth.protocol.ProtoBuf.ChatRequestMessage.Builder builderForValue) { - chatRequestMessage_ = builderForValue.build(); - - bitField1_ |= 0x80000000; + copyOnWrite(); + instance.setChatRequestMessage(builderForValue); return this; } /** * optional .ChatRequestMessage chatRequestMessage = 64; */ public Builder mergeChatRequestMessage(de.pokerth.protocol.ProtoBuf.ChatRequestMessage value) { - 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; - } - - bitField1_ |= 0x80000000; + copyOnWrite(); + instance.mergeChatRequestMessage(value); return this; } /** * optional .ChatRequestMessage chatRequestMessage = 64; */ - public Builder clearChatRequestMessage() { - chatRequestMessage_ = de.pokerth.protocol.ProtoBuf.ChatRequestMessage.getDefaultInstance(); - - bitField1_ = (bitField1_ & ~0x80000000); + public Builder clearChatRequestMessage() { copyOnWrite(); + instance.clearChatRequestMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.ChatMessage chatMessage_ = de.pokerth.protocol.ProtoBuf.ChatMessage.getDefaultInstance(); /** * optional .ChatMessage chatMessage = 65; */ + @java.lang.Override public boolean hasChatMessage() { - return ((bitField2_ & 0x00000001) == 0x00000001); + return instance.hasChatMessage(); } /** * optional .ChatMessage chatMessage = 65; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ChatMessage getChatMessage() { - return chatMessage_; + return instance.getChatMessage(); } /** * optional .ChatMessage chatMessage = 65; */ public Builder setChatMessage(de.pokerth.protocol.ProtoBuf.ChatMessage value) { - if (value == null) { - throw new NullPointerException(); - } - chatMessage_ = value; - - bitField2_ |= 0x00000001; + copyOnWrite(); + instance.setChatMessage(value); return this; - } + } /** * optional .ChatMessage chatMessage = 65; */ public Builder setChatMessage( de.pokerth.protocol.ProtoBuf.ChatMessage.Builder builderForValue) { - chatMessage_ = builderForValue.build(); - - bitField2_ |= 0x00000001; + copyOnWrite(); + instance.setChatMessage(builderForValue); return this; } /** * optional .ChatMessage chatMessage = 65; */ public Builder mergeChatMessage(de.pokerth.protocol.ProtoBuf.ChatMessage value) { - 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; - } - - bitField2_ |= 0x00000001; + copyOnWrite(); + instance.mergeChatMessage(value); return this; } /** * optional .ChatMessage chatMessage = 65; */ - public Builder clearChatMessage() { - chatMessage_ = de.pokerth.protocol.ProtoBuf.ChatMessage.getDefaultInstance(); - - bitField2_ = (bitField2_ & ~0x00000001); + public Builder clearChatMessage() { copyOnWrite(); + instance.clearChatMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.ChatRejectMessage chatRejectMessage_ = de.pokerth.protocol.ProtoBuf.ChatRejectMessage.getDefaultInstance(); /** * optional .ChatRejectMessage chatRejectMessage = 66; */ + @java.lang.Override public boolean hasChatRejectMessage() { - return ((bitField2_ & 0x00000002) == 0x00000002); + return instance.hasChatRejectMessage(); } /** * optional .ChatRejectMessage chatRejectMessage = 66; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ChatRejectMessage getChatRejectMessage() { - return chatRejectMessage_; + return instance.getChatRejectMessage(); } /** * optional .ChatRejectMessage chatRejectMessage = 66; */ public Builder setChatRejectMessage(de.pokerth.protocol.ProtoBuf.ChatRejectMessage value) { - if (value == null) { - throw new NullPointerException(); - } - chatRejectMessage_ = value; - - bitField2_ |= 0x00000002; + copyOnWrite(); + instance.setChatRejectMessage(value); return this; - } + } /** * optional .ChatRejectMessage chatRejectMessage = 66; */ public Builder setChatRejectMessage( de.pokerth.protocol.ProtoBuf.ChatRejectMessage.Builder builderForValue) { - chatRejectMessage_ = builderForValue.build(); - - bitField2_ |= 0x00000002; + copyOnWrite(); + instance.setChatRejectMessage(builderForValue); return this; } /** * optional .ChatRejectMessage chatRejectMessage = 66; */ public Builder mergeChatRejectMessage(de.pokerth.protocol.ProtoBuf.ChatRejectMessage value) { - 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; - } - - bitField2_ |= 0x00000002; + copyOnWrite(); + instance.mergeChatRejectMessage(value); return this; } /** * optional .ChatRejectMessage chatRejectMessage = 66; */ - public Builder clearChatRejectMessage() { - chatRejectMessage_ = de.pokerth.protocol.ProtoBuf.ChatRejectMessage.getDefaultInstance(); - - bitField2_ = (bitField2_ & ~0x00000002); + public Builder clearChatRejectMessage() { copyOnWrite(); + instance.clearChatRejectMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.DialogMessage dialogMessage_ = de.pokerth.protocol.ProtoBuf.DialogMessage.getDefaultInstance(); /** * optional .DialogMessage dialogMessage = 67; */ + @java.lang.Override public boolean hasDialogMessage() { - return ((bitField2_ & 0x00000004) == 0x00000004); + return instance.hasDialogMessage(); } /** * optional .DialogMessage dialogMessage = 67; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.DialogMessage getDialogMessage() { - return dialogMessage_; + return instance.getDialogMessage(); } /** * optional .DialogMessage dialogMessage = 67; */ public Builder setDialogMessage(de.pokerth.protocol.ProtoBuf.DialogMessage value) { - if (value == null) { - throw new NullPointerException(); - } - dialogMessage_ = value; - - bitField2_ |= 0x00000004; + copyOnWrite(); + instance.setDialogMessage(value); return this; - } + } /** * optional .DialogMessage dialogMessage = 67; */ public Builder setDialogMessage( de.pokerth.protocol.ProtoBuf.DialogMessage.Builder builderForValue) { - dialogMessage_ = builderForValue.build(); - - bitField2_ |= 0x00000004; + copyOnWrite(); + instance.setDialogMessage(builderForValue); return this; } /** * optional .DialogMessage dialogMessage = 67; */ public Builder mergeDialogMessage(de.pokerth.protocol.ProtoBuf.DialogMessage value) { - 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; - } - - bitField2_ |= 0x00000004; + copyOnWrite(); + instance.mergeDialogMessage(value); return this; } /** * optional .DialogMessage dialogMessage = 67; */ - public Builder clearDialogMessage() { - dialogMessage_ = de.pokerth.protocol.ProtoBuf.DialogMessage.getDefaultInstance(); - - bitField2_ = (bitField2_ & ~0x00000004); + public Builder clearDialogMessage() { copyOnWrite(); + instance.clearDialogMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage timeoutWarningMessage_ = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.getDefaultInstance(); /** * optional .TimeoutWarningMessage timeoutWarningMessage = 68; */ + @java.lang.Override public boolean hasTimeoutWarningMessage() { - return ((bitField2_ & 0x00000008) == 0x00000008); + return instance.hasTimeoutWarningMessage(); } /** * optional .TimeoutWarningMessage timeoutWarningMessage = 68; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage getTimeoutWarningMessage() { - return timeoutWarningMessage_; + return instance.getTimeoutWarningMessage(); } /** * optional .TimeoutWarningMessage timeoutWarningMessage = 68; */ public Builder setTimeoutWarningMessage(de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage value) { - if (value == null) { - throw new NullPointerException(); - } - timeoutWarningMessage_ = value; - - bitField2_ |= 0x00000008; + copyOnWrite(); + instance.setTimeoutWarningMessage(value); return this; - } + } /** * optional .TimeoutWarningMessage timeoutWarningMessage = 68; */ public Builder setTimeoutWarningMessage( de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.Builder builderForValue) { - timeoutWarningMessage_ = builderForValue.build(); - - bitField2_ |= 0x00000008; + copyOnWrite(); + instance.setTimeoutWarningMessage(builderForValue); return this; } /** * optional .TimeoutWarningMessage timeoutWarningMessage = 68; */ public Builder mergeTimeoutWarningMessage(de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage value) { - 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; - } - - bitField2_ |= 0x00000008; + copyOnWrite(); + instance.mergeTimeoutWarningMessage(value); return this; } /** * optional .TimeoutWarningMessage timeoutWarningMessage = 68; */ - public Builder clearTimeoutWarningMessage() { - timeoutWarningMessage_ = de.pokerth.protocol.ProtoBuf.TimeoutWarningMessage.getDefaultInstance(); - - bitField2_ = (bitField2_ & ~0x00000008); + public Builder clearTimeoutWarningMessage() { copyOnWrite(); + instance.clearTimeoutWarningMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage resetTimeoutMessage_ = de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.getDefaultInstance(); /** * optional .ResetTimeoutMessage resetTimeoutMessage = 69; */ + @java.lang.Override public boolean hasResetTimeoutMessage() { - return ((bitField2_ & 0x00000010) == 0x00000010); + return instance.hasResetTimeoutMessage(); } /** * optional .ResetTimeoutMessage resetTimeoutMessage = 69; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage getResetTimeoutMessage() { - return resetTimeoutMessage_; + return instance.getResetTimeoutMessage(); } /** * optional .ResetTimeoutMessage resetTimeoutMessage = 69; */ public Builder setResetTimeoutMessage(de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage value) { - if (value == null) { - throw new NullPointerException(); - } - resetTimeoutMessage_ = value; - - bitField2_ |= 0x00000010; + copyOnWrite(); + instance.setResetTimeoutMessage(value); return this; - } + } /** * optional .ResetTimeoutMessage resetTimeoutMessage = 69; */ public Builder setResetTimeoutMessage( de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.Builder builderForValue) { - resetTimeoutMessage_ = builderForValue.build(); - - bitField2_ |= 0x00000010; + copyOnWrite(); + instance.setResetTimeoutMessage(builderForValue); return this; } /** * optional .ResetTimeoutMessage resetTimeoutMessage = 69; */ public Builder mergeResetTimeoutMessage(de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage value) { - 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; - } - - bitField2_ |= 0x00000010; + copyOnWrite(); + instance.mergeResetTimeoutMessage(value); return this; } /** * optional .ResetTimeoutMessage resetTimeoutMessage = 69; */ - public Builder clearResetTimeoutMessage() { - resetTimeoutMessage_ = de.pokerth.protocol.ProtoBuf.ResetTimeoutMessage.getDefaultInstance(); - - bitField2_ = (bitField2_ & ~0x00000010); + public Builder clearResetTimeoutMessage() { copyOnWrite(); + instance.clearResetTimeoutMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.ReportAvatarMessage reportAvatarMessage_ = de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.getDefaultInstance(); /** * optional .ReportAvatarMessage reportAvatarMessage = 70; */ + @java.lang.Override public boolean hasReportAvatarMessage() { - return ((bitField2_ & 0x00000020) == 0x00000020); + return instance.hasReportAvatarMessage(); } /** * optional .ReportAvatarMessage reportAvatarMessage = 70; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ReportAvatarMessage getReportAvatarMessage() { - return reportAvatarMessage_; + return instance.getReportAvatarMessage(); } /** * optional .ReportAvatarMessage reportAvatarMessage = 70; */ public Builder setReportAvatarMessage(de.pokerth.protocol.ProtoBuf.ReportAvatarMessage value) { - if (value == null) { - throw new NullPointerException(); - } - reportAvatarMessage_ = value; - - bitField2_ |= 0x00000020; + copyOnWrite(); + instance.setReportAvatarMessage(value); return this; - } + } /** * optional .ReportAvatarMessage reportAvatarMessage = 70; */ public Builder setReportAvatarMessage( de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.Builder builderForValue) { - reportAvatarMessage_ = builderForValue.build(); - - bitField2_ |= 0x00000020; + copyOnWrite(); + instance.setReportAvatarMessage(builderForValue); return this; } /** * optional .ReportAvatarMessage reportAvatarMessage = 70; */ public Builder mergeReportAvatarMessage(de.pokerth.protocol.ProtoBuf.ReportAvatarMessage value) { - 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; - } - - bitField2_ |= 0x00000020; + copyOnWrite(); + instance.mergeReportAvatarMessage(value); return this; } /** * optional .ReportAvatarMessage reportAvatarMessage = 70; */ - public Builder clearReportAvatarMessage() { - reportAvatarMessage_ = de.pokerth.protocol.ProtoBuf.ReportAvatarMessage.getDefaultInstance(); - - bitField2_ = (bitField2_ & ~0x00000020); + public Builder clearReportAvatarMessage() { copyOnWrite(); + instance.clearReportAvatarMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage reportAvatarAckMessage_ = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.getDefaultInstance(); /** * optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; */ + @java.lang.Override public boolean hasReportAvatarAckMessage() { - return ((bitField2_ & 0x00000040) == 0x00000040); + return instance.hasReportAvatarAckMessage(); } /** * optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage getReportAvatarAckMessage() { - return reportAvatarAckMessage_; + return instance.getReportAvatarAckMessage(); } /** * optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; */ public Builder setReportAvatarAckMessage(de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage value) { - if (value == null) { - throw new NullPointerException(); - } - reportAvatarAckMessage_ = value; - - bitField2_ |= 0x00000040; + copyOnWrite(); + instance.setReportAvatarAckMessage(value); return this; - } + } /** * optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; */ public Builder setReportAvatarAckMessage( de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.Builder builderForValue) { - reportAvatarAckMessage_ = builderForValue.build(); - - bitField2_ |= 0x00000040; + copyOnWrite(); + instance.setReportAvatarAckMessage(builderForValue); return this; } /** * optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; */ public Builder mergeReportAvatarAckMessage(de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage value) { - 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; - } - - bitField2_ |= 0x00000040; + copyOnWrite(); + instance.mergeReportAvatarAckMessage(value); return this; } /** * optional .ReportAvatarAckMessage reportAvatarAckMessage = 71; */ - public Builder clearReportAvatarAckMessage() { - reportAvatarAckMessage_ = de.pokerth.protocol.ProtoBuf.ReportAvatarAckMessage.getDefaultInstance(); - - bitField2_ = (bitField2_ & ~0x00000040); + public Builder clearReportAvatarAckMessage() { copyOnWrite(); + instance.clearReportAvatarAckMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.ReportGameMessage reportGameMessage_ = de.pokerth.protocol.ProtoBuf.ReportGameMessage.getDefaultInstance(); /** * optional .ReportGameMessage reportGameMessage = 72; */ + @java.lang.Override public boolean hasReportGameMessage() { - return ((bitField2_ & 0x00000080) == 0x00000080); + return instance.hasReportGameMessage(); } /** * optional .ReportGameMessage reportGameMessage = 72; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ReportGameMessage getReportGameMessage() { - return reportGameMessage_; + return instance.getReportGameMessage(); } /** * optional .ReportGameMessage reportGameMessage = 72; */ public Builder setReportGameMessage(de.pokerth.protocol.ProtoBuf.ReportGameMessage value) { - if (value == null) { - throw new NullPointerException(); - } - reportGameMessage_ = value; - - bitField2_ |= 0x00000080; + copyOnWrite(); + instance.setReportGameMessage(value); return this; - } + } /** * optional .ReportGameMessage reportGameMessage = 72; */ public Builder setReportGameMessage( de.pokerth.protocol.ProtoBuf.ReportGameMessage.Builder builderForValue) { - reportGameMessage_ = builderForValue.build(); - - bitField2_ |= 0x00000080; + copyOnWrite(); + instance.setReportGameMessage(builderForValue); return this; } /** * optional .ReportGameMessage reportGameMessage = 72; */ public Builder mergeReportGameMessage(de.pokerth.protocol.ProtoBuf.ReportGameMessage value) { - 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; - } - - bitField2_ |= 0x00000080; + copyOnWrite(); + instance.mergeReportGameMessage(value); return this; } /** * optional .ReportGameMessage reportGameMessage = 72; */ - public Builder clearReportGameMessage() { - reportGameMessage_ = de.pokerth.protocol.ProtoBuf.ReportGameMessage.getDefaultInstance(); - - bitField2_ = (bitField2_ & ~0x00000080); + public Builder clearReportGameMessage() { copyOnWrite(); + instance.clearReportGameMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.ReportGameAckMessage reportGameAckMessage_ = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.getDefaultInstance(); /** * optional .ReportGameAckMessage reportGameAckMessage = 73; */ + @java.lang.Override public boolean hasReportGameAckMessage() { - return ((bitField2_ & 0x00000100) == 0x00000100); + return instance.hasReportGameAckMessage(); } /** * optional .ReportGameAckMessage reportGameAckMessage = 73; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ReportGameAckMessage getReportGameAckMessage() { - return reportGameAckMessage_; + return instance.getReportGameAckMessage(); } /** * optional .ReportGameAckMessage reportGameAckMessage = 73; */ public Builder setReportGameAckMessage(de.pokerth.protocol.ProtoBuf.ReportGameAckMessage value) { - if (value == null) { - throw new NullPointerException(); - } - reportGameAckMessage_ = value; - - bitField2_ |= 0x00000100; + copyOnWrite(); + instance.setReportGameAckMessage(value); return this; - } + } /** * optional .ReportGameAckMessage reportGameAckMessage = 73; */ public Builder setReportGameAckMessage( de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.Builder builderForValue) { - reportGameAckMessage_ = builderForValue.build(); - - bitField2_ |= 0x00000100; + copyOnWrite(); + instance.setReportGameAckMessage(builderForValue); return this; } /** * optional .ReportGameAckMessage reportGameAckMessage = 73; */ public Builder mergeReportGameAckMessage(de.pokerth.protocol.ProtoBuf.ReportGameAckMessage value) { - 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; - } - - bitField2_ |= 0x00000100; + copyOnWrite(); + instance.mergeReportGameAckMessage(value); return this; } /** * optional .ReportGameAckMessage reportGameAckMessage = 73; */ - public Builder clearReportGameAckMessage() { - reportGameAckMessage_ = de.pokerth.protocol.ProtoBuf.ReportGameAckMessage.getDefaultInstance(); - - bitField2_ = (bitField2_ & ~0x00000100); + public Builder clearReportGameAckMessage() { copyOnWrite(); + instance.clearReportGameAckMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.ErrorMessage errorMessage_ = de.pokerth.protocol.ProtoBuf.ErrorMessage.getDefaultInstance(); /** * optional .ErrorMessage errorMessage = 74; */ + @java.lang.Override public boolean hasErrorMessage() { - return ((bitField2_ & 0x00000200) == 0x00000200); + return instance.hasErrorMessage(); } /** * optional .ErrorMessage errorMessage = 74; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.ErrorMessage getErrorMessage() { - return errorMessage_; + return instance.getErrorMessage(); } /** * optional .ErrorMessage errorMessage = 74; */ public Builder setErrorMessage(de.pokerth.protocol.ProtoBuf.ErrorMessage value) { - if (value == null) { - throw new NullPointerException(); - } - errorMessage_ = value; - - bitField2_ |= 0x00000200; + copyOnWrite(); + instance.setErrorMessage(value); return this; - } + } /** * optional .ErrorMessage errorMessage = 74; */ public Builder setErrorMessage( de.pokerth.protocol.ProtoBuf.ErrorMessage.Builder builderForValue) { - errorMessage_ = builderForValue.build(); - - bitField2_ |= 0x00000200; + copyOnWrite(); + instance.setErrorMessage(builderForValue); return this; } /** * optional .ErrorMessage errorMessage = 74; */ public Builder mergeErrorMessage(de.pokerth.protocol.ProtoBuf.ErrorMessage value) { - 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; - } - - bitField2_ |= 0x00000200; + copyOnWrite(); + instance.mergeErrorMessage(value); return this; } /** * optional .ErrorMessage errorMessage = 74; */ - public Builder clearErrorMessage() { - errorMessage_ = de.pokerth.protocol.ProtoBuf.ErrorMessage.getDefaultInstance(); - - bitField2_ = (bitField2_ & ~0x00000200); + public Builder clearErrorMessage() { copyOnWrite(); + instance.clearErrorMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage adminRemoveGameMessage_ = de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage.getDefaultInstance(); /** * optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; */ + @java.lang.Override public boolean hasAdminRemoveGameMessage() { - return ((bitField2_ & 0x00000400) == 0x00000400); + return instance.hasAdminRemoveGameMessage(); } /** * optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage getAdminRemoveGameMessage() { - return adminRemoveGameMessage_; + return instance.getAdminRemoveGameMessage(); } /** * optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; */ public Builder setAdminRemoveGameMessage(de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage value) { - if (value == null) { - throw new NullPointerException(); - } - adminRemoveGameMessage_ = value; - - bitField2_ |= 0x00000400; + copyOnWrite(); + instance.setAdminRemoveGameMessage(value); return this; - } + } /** * optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; */ public Builder setAdminRemoveGameMessage( de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage.Builder builderForValue) { - adminRemoveGameMessage_ = builderForValue.build(); - - bitField2_ |= 0x00000400; + copyOnWrite(); + instance.setAdminRemoveGameMessage(builderForValue); return this; } /** * optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; */ public Builder mergeAdminRemoveGameMessage(de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage value) { - 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; - } - - bitField2_ |= 0x00000400; + copyOnWrite(); + instance.mergeAdminRemoveGameMessage(value); return this; } /** * optional .AdminRemoveGameMessage adminRemoveGameMessage = 75; */ - public Builder clearAdminRemoveGameMessage() { - adminRemoveGameMessage_ = de.pokerth.protocol.ProtoBuf.AdminRemoveGameMessage.getDefaultInstance(); - - bitField2_ = (bitField2_ & ~0x00000400); + public Builder clearAdminRemoveGameMessage() { copyOnWrite(); + instance.clearAdminRemoveGameMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage adminRemoveGameAckMessage_ = de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.getDefaultInstance(); /** * optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; */ + @java.lang.Override public boolean hasAdminRemoveGameAckMessage() { - return ((bitField2_ & 0x00000800) == 0x00000800); + return instance.hasAdminRemoveGameAckMessage(); } /** * optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage getAdminRemoveGameAckMessage() { - return adminRemoveGameAckMessage_; + return instance.getAdminRemoveGameAckMessage(); } /** * optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; */ public Builder setAdminRemoveGameAckMessage(de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage value) { - if (value == null) { - throw new NullPointerException(); - } - adminRemoveGameAckMessage_ = value; - - bitField2_ |= 0x00000800; + copyOnWrite(); + instance.setAdminRemoveGameAckMessage(value); return this; - } + } /** * optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; */ public Builder setAdminRemoveGameAckMessage( de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.Builder builderForValue) { - adminRemoveGameAckMessage_ = builderForValue.build(); - - bitField2_ |= 0x00000800; + copyOnWrite(); + instance.setAdminRemoveGameAckMessage(builderForValue); return this; } /** * optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; */ public Builder mergeAdminRemoveGameAckMessage(de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage value) { - 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; - } - - bitField2_ |= 0x00000800; + copyOnWrite(); + instance.mergeAdminRemoveGameAckMessage(value); return this; } /** * optional .AdminRemoveGameAckMessage adminRemoveGameAckMessage = 76; */ - public Builder clearAdminRemoveGameAckMessage() { - adminRemoveGameAckMessage_ = de.pokerth.protocol.ProtoBuf.AdminRemoveGameAckMessage.getDefaultInstance(); - - bitField2_ = (bitField2_ & ~0x00000800); + public Builder clearAdminRemoveGameAckMessage() { copyOnWrite(); + instance.clearAdminRemoveGameAckMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage adminBanPlayerMessage_ = de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage.getDefaultInstance(); /** * optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; */ + @java.lang.Override public boolean hasAdminBanPlayerMessage() { - return ((bitField2_ & 0x00001000) == 0x00001000); + return instance.hasAdminBanPlayerMessage(); } /** * optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage getAdminBanPlayerMessage() { - return adminBanPlayerMessage_; + return instance.getAdminBanPlayerMessage(); } /** * optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; */ public Builder setAdminBanPlayerMessage(de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage value) { - if (value == null) { - throw new NullPointerException(); - } - adminBanPlayerMessage_ = value; - - bitField2_ |= 0x00001000; + copyOnWrite(); + instance.setAdminBanPlayerMessage(value); return this; - } + } /** * optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; */ public Builder setAdminBanPlayerMessage( de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage.Builder builderForValue) { - adminBanPlayerMessage_ = builderForValue.build(); - - bitField2_ |= 0x00001000; + copyOnWrite(); + instance.setAdminBanPlayerMessage(builderForValue); return this; } /** * optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; */ public Builder mergeAdminBanPlayerMessage(de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage value) { - 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; - } - - bitField2_ |= 0x00001000; + copyOnWrite(); + instance.mergeAdminBanPlayerMessage(value); return this; } /** * optional .AdminBanPlayerMessage adminBanPlayerMessage = 77; */ - public Builder clearAdminBanPlayerMessage() { - adminBanPlayerMessage_ = de.pokerth.protocol.ProtoBuf.AdminBanPlayerMessage.getDefaultInstance(); - - bitField2_ = (bitField2_ & ~0x00001000); + public Builder clearAdminBanPlayerMessage() { copyOnWrite(); + instance.clearAdminBanPlayerMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage adminBanPlayerAckMessage_ = de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.getDefaultInstance(); /** * optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; */ + @java.lang.Override public boolean hasAdminBanPlayerAckMessage() { - return ((bitField2_ & 0x00002000) == 0x00002000); + return instance.hasAdminBanPlayerAckMessage(); } /** * optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage getAdminBanPlayerAckMessage() { - return adminBanPlayerAckMessage_; + return instance.getAdminBanPlayerAckMessage(); } /** * optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; */ public Builder setAdminBanPlayerAckMessage(de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage value) { - if (value == null) { - throw new NullPointerException(); - } - adminBanPlayerAckMessage_ = value; - - bitField2_ |= 0x00002000; + copyOnWrite(); + instance.setAdminBanPlayerAckMessage(value); return this; - } + } /** * optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; */ public Builder setAdminBanPlayerAckMessage( de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.Builder builderForValue) { - adminBanPlayerAckMessage_ = builderForValue.build(); - - bitField2_ |= 0x00002000; + copyOnWrite(); + instance.setAdminBanPlayerAckMessage(builderForValue); return this; } /** * optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; */ public Builder mergeAdminBanPlayerAckMessage(de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage value) { - 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; - } - - bitField2_ |= 0x00002000; + copyOnWrite(); + instance.mergeAdminBanPlayerAckMessage(value); return this; } /** * optional .AdminBanPlayerAckMessage adminBanPlayerAckMessage = 78; */ - public Builder clearAdminBanPlayerAckMessage() { - adminBanPlayerAckMessage_ = de.pokerth.protocol.ProtoBuf.AdminBanPlayerAckMessage.getDefaultInstance(); - - bitField2_ = (bitField2_ & ~0x00002000); + public Builder clearAdminBanPlayerAckMessage() { copyOnWrite(); + instance.clearAdminBanPlayerAckMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage.getDefaultInstance(); /** * optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; */ + @java.lang.Override public boolean hasGameListSpectatorJoinedMessage() { - return ((bitField2_ & 0x00004000) == 0x00004000); + return instance.hasGameListSpectatorJoinedMessage(); } /** * optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage getGameListSpectatorJoinedMessage() { - return gameListSpectatorJoinedMessage_; + return instance.getGameListSpectatorJoinedMessage(); } /** * optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; */ public Builder setGameListSpectatorJoinedMessage(de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gameListSpectatorJoinedMessage_ = value; - - bitField2_ |= 0x00004000; + copyOnWrite(); + instance.setGameListSpectatorJoinedMessage(value); return this; - } + } /** * optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; */ public Builder setGameListSpectatorJoinedMessage( de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage.Builder builderForValue) { - gameListSpectatorJoinedMessage_ = builderForValue.build(); - - bitField2_ |= 0x00004000; + copyOnWrite(); + instance.setGameListSpectatorJoinedMessage(builderForValue); return this; } /** * optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; */ public Builder mergeGameListSpectatorJoinedMessage(de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage value) { - 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; - } - - bitField2_ |= 0x00004000; + copyOnWrite(); + instance.mergeGameListSpectatorJoinedMessage(value); return this; } /** * optional .GameListSpectatorJoinedMessage gameListSpectatorJoinedMessage = 79; */ - public Builder clearGameListSpectatorJoinedMessage() { - gameListSpectatorJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GameListSpectatorJoinedMessage.getDefaultInstance(); - - bitField2_ = (bitField2_ & ~0x00004000); + public Builder clearGameListSpectatorJoinedMessage() { copyOnWrite(); + instance.clearGameListSpectatorJoinedMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage gameListSpectatorLeftMessage_ = de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage.getDefaultInstance(); /** * optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; */ + @java.lang.Override public boolean hasGameListSpectatorLeftMessage() { - return ((bitField2_ & 0x00008000) == 0x00008000); + return instance.hasGameListSpectatorLeftMessage(); } /** * optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage getGameListSpectatorLeftMessage() { - return gameListSpectatorLeftMessage_; + return instance.getGameListSpectatorLeftMessage(); } /** * optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; */ public Builder setGameListSpectatorLeftMessage(de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gameListSpectatorLeftMessage_ = value; - - bitField2_ |= 0x00008000; + copyOnWrite(); + instance.setGameListSpectatorLeftMessage(value); return this; - } + } /** * optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; */ public Builder setGameListSpectatorLeftMessage( de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage.Builder builderForValue) { - gameListSpectatorLeftMessage_ = builderForValue.build(); - - bitField2_ |= 0x00008000; + copyOnWrite(); + instance.setGameListSpectatorLeftMessage(builderForValue); return this; } /** * optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; */ public Builder mergeGameListSpectatorLeftMessage(de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage value) { - 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; - } - - bitField2_ |= 0x00008000; + copyOnWrite(); + instance.mergeGameListSpectatorLeftMessage(value); return this; } /** * optional .GameListSpectatorLeftMessage gameListSpectatorLeftMessage = 80; */ - public Builder clearGameListSpectatorLeftMessage() { - gameListSpectatorLeftMessage_ = de.pokerth.protocol.ProtoBuf.GameListSpectatorLeftMessage.getDefaultInstance(); - - bitField2_ = (bitField2_ & ~0x00008000); + public Builder clearGameListSpectatorLeftMessage() { copyOnWrite(); + instance.clearGameListSpectatorLeftMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage gameSpectatorJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage.getDefaultInstance(); /** * optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; */ + @java.lang.Override public boolean hasGameSpectatorJoinedMessage() { - return ((bitField2_ & 0x00010000) == 0x00010000); + return instance.hasGameSpectatorJoinedMessage(); } /** * optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage getGameSpectatorJoinedMessage() { - return gameSpectatorJoinedMessage_; + return instance.getGameSpectatorJoinedMessage(); } /** * optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; */ public Builder setGameSpectatorJoinedMessage(de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gameSpectatorJoinedMessage_ = value; - - bitField2_ |= 0x00010000; + copyOnWrite(); + instance.setGameSpectatorJoinedMessage(value); return this; - } + } /** * optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; */ public Builder setGameSpectatorJoinedMessage( de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage.Builder builderForValue) { - gameSpectatorJoinedMessage_ = builderForValue.build(); - - bitField2_ |= 0x00010000; + copyOnWrite(); + instance.setGameSpectatorJoinedMessage(builderForValue); return this; } /** * optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; */ public Builder mergeGameSpectatorJoinedMessage(de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage value) { - 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; - } - - bitField2_ |= 0x00010000; + copyOnWrite(); + instance.mergeGameSpectatorJoinedMessage(value); return this; } /** * optional .GameSpectatorJoinedMessage gameSpectatorJoinedMessage = 81; */ - public Builder clearGameSpectatorJoinedMessage() { - gameSpectatorJoinedMessage_ = de.pokerth.protocol.ProtoBuf.GameSpectatorJoinedMessage.getDefaultInstance(); - - bitField2_ = (bitField2_ & ~0x00010000); + public Builder clearGameSpectatorJoinedMessage() { copyOnWrite(); + instance.clearGameSpectatorJoinedMessage(); return this; } - private de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage gameSpectatorLeftMessage_ = de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.getDefaultInstance(); /** * optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; */ + @java.lang.Override public boolean hasGameSpectatorLeftMessage() { - return ((bitField2_ & 0x00020000) == 0x00020000); + return instance.hasGameSpectatorLeftMessage(); } /** * optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; */ + @java.lang.Override public de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage getGameSpectatorLeftMessage() { - return gameSpectatorLeftMessage_; + return instance.getGameSpectatorLeftMessage(); } /** * optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; */ public Builder setGameSpectatorLeftMessage(de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage value) { - if (value == null) { - throw new NullPointerException(); - } - gameSpectatorLeftMessage_ = value; - - bitField2_ |= 0x00020000; + copyOnWrite(); + instance.setGameSpectatorLeftMessage(value); return this; - } + } /** * optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; */ public Builder setGameSpectatorLeftMessage( de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.Builder builderForValue) { - gameSpectatorLeftMessage_ = builderForValue.build(); - - bitField2_ |= 0x00020000; + copyOnWrite(); + instance.setGameSpectatorLeftMessage(builderForValue); return this; } /** * optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; */ public Builder mergeGameSpectatorLeftMessage(de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage 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; + copyOnWrite(); + instance.mergeGameSpectatorLeftMessage(value); return this; } /** * optional .GameSpectatorLeftMessage gameSpectatorLeftMessage = 82; */ - public Builder clearGameSpectatorLeftMessage() { - gameSpectatorLeftMessage_ = de.pokerth.protocol.ProtoBuf.GameSpectatorLeftMessage.getDefaultInstance(); - - bitField2_ = (bitField2_ & ~0x00020000); + public Builder clearGameSpectatorLeftMessage() { copyOnWrite(); + instance.clearGameSpectatorLeftMessage(); 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; - static { - defaultInstance = new PokerTHMessage(true); - defaultInstance.initFields(); + 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(); + } } diff --git a/zlib_compress.pro b/zlib_compress.pro index 73fa7709..6f9fe26f 100644 --- a/zlib_compress.pro +++ b/zlib_compress.pro @@ -95,7 +95,7 @@ mac{ # make it universal CONFIG += x86 CONFIG += ppc - QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.3 + QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.7 # workaround for problems with boost_filesystem exceptions QMAKE_LFLAGS += -no_dead_strip_inits_and_terms