// Generated by the protocol buffer compiler. DO NOT EDIT! // source: ours.proto #ifndef PROTOBUF_INCLUDED_ours_2eproto #define PROTOBUF_INCLUDED_ours_2eproto #include #include #if GOOGLE_PROTOBUF_VERSION < 3006001 #error This file was generated by a newer version of protoc which is #error incompatible with your Protocol Buffer headers. Please update #error your headers. #endif #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION #error This file was generated by an older version of protoc which is #error incompatible with your Protocol Buffer headers. Please #error regenerate this file with a newer version of protoc. #endif #include #include #include #include #include #include #include #include #include // IWYU pragma: export #include // IWYU pragma: export #include #include // @@protoc_insertion_point(includes) #define PROTOBUF_INTERNAL_EXPORT_protobuf_ours_2eproto namespace protobuf_ours_2eproto { // Internal implementation detail -- do not use these members. struct TableStruct { static const ::google::protobuf::internal::ParseTableField entries[]; static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; static const ::google::protobuf::internal::ParseTable schema[9]; static const ::google::protobuf::internal::FieldMetadata field_metadata[]; static const ::google::protobuf::internal::SerializationTable serialization_table[]; static const ::google::protobuf::uint32 offsets[]; }; void AddDescriptors(); } // namespace protobuf_ours_2eproto namespace nm { namespace message { class ChunkBytes; class ChunkBytesDefaultTypeInternal; extern ChunkBytesDefaultTypeInternal _ChunkBytes_default_instance_; class ChunkRequest; class ChunkRequestDefaultTypeInternal; extern ChunkRequestDefaultTypeInternal _ChunkRequest_default_instance_; class ClearAt; class ClearAtDefaultTypeInternal; extern ClearAtDefaultTypeInternal _ClearAt_default_instance_; class CursorMove; class CursorMoveDefaultTypeInternal; extern CursorMoveDefaultTypeInternal _CursorMove_default_instance_; class MessageWrapper; class MessageWrapperDefaultTypeInternal; extern MessageWrapperDefaultTypeInternal _MessageWrapper_default_instance_; class Player; class PlayerDefaultTypeInternal; extern PlayerDefaultTypeInternal _Player_default_instance_; class SquareFlag; class SquareFlagDefaultTypeInternal; extern SquareFlagDefaultTypeInternal _SquareFlag_default_instance_; class SquareOpen; class SquareOpenDefaultTypeInternal; extern SquareOpenDefaultTypeInternal _SquareOpen_default_instance_; class Welcome; class WelcomeDefaultTypeInternal; extern WelcomeDefaultTypeInternal _Welcome_default_instance_; } // namespace message } // namespace nm namespace google { namespace protobuf { template<> ::nm::message::ChunkBytes* Arena::CreateMaybeMessage<::nm::message::ChunkBytes>(Arena*); template<> ::nm::message::ChunkRequest* Arena::CreateMaybeMessage<::nm::message::ChunkRequest>(Arena*); template<> ::nm::message::ClearAt* Arena::CreateMaybeMessage<::nm::message::ClearAt>(Arena*); template<> ::nm::message::CursorMove* Arena::CreateMaybeMessage<::nm::message::CursorMove>(Arena*); template<> ::nm::message::MessageWrapper* Arena::CreateMaybeMessage<::nm::message::MessageWrapper>(Arena*); template<> ::nm::message::Player* Arena::CreateMaybeMessage<::nm::message::Player>(Arena*); template<> ::nm::message::SquareFlag* Arena::CreateMaybeMessage<::nm::message::SquareFlag>(Arena*); template<> ::nm::message::SquareOpen* Arena::CreateMaybeMessage<::nm::message::SquareOpen>(Arena*); template<> ::nm::message::Welcome* Arena::CreateMaybeMessage<::nm::message::Welcome>(Arena*); } // namespace protobuf } // namespace google namespace nm { namespace message { enum MessageWrapper_Type { MessageWrapper_Type_CURSOR_MOVE = 1, MessageWrapper_Type_SQUARE_FLAG = 2, MessageWrapper_Type_SQUARE_OPEN = 3, MessageWrapper_Type_PLAYER_JOIN = 4, MessageWrapper_Type_PLAYER_QUIT = 5, MessageWrapper_Type_WELCOME = 6, MessageWrapper_Type_CHUNK_BYTES = 7, MessageWrapper_Type_CHUNK_REQUEST = 8, MessageWrapper_Type_CLEAR_AT = 9, MessageWrapper_Type_PLAYER_UPDATE = 10 }; bool MessageWrapper_Type_IsValid(int value); const MessageWrapper_Type MessageWrapper_Type_Type_MIN = MessageWrapper_Type_CURSOR_MOVE; const MessageWrapper_Type MessageWrapper_Type_Type_MAX = MessageWrapper_Type_PLAYER_UPDATE; const int MessageWrapper_Type_Type_ARRAYSIZE = MessageWrapper_Type_Type_MAX + 1; const ::google::protobuf::EnumDescriptor* MessageWrapper_Type_descriptor(); inline const ::std::string& MessageWrapper_Type_Name(MessageWrapper_Type value) { return ::google::protobuf::internal::NameOfEnum( MessageWrapper_Type_descriptor(), value); } inline bool MessageWrapper_Type_Parse( const ::std::string& name, MessageWrapper_Type* value) { return ::google::protobuf::internal::ParseNamedEnum( MessageWrapper_Type_descriptor(), name, value); } // =================================================================== class MessageWrapper : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:nm.message.MessageWrapper) */ { public: MessageWrapper(); virtual ~MessageWrapper(); MessageWrapper(const MessageWrapper& from); inline MessageWrapper& operator=(const MessageWrapper& from) { CopyFrom(from); return *this; } #if LANG_CXX11 MessageWrapper(MessageWrapper&& from) noexcept : MessageWrapper() { *this = ::std::move(from); } inline MessageWrapper& operator=(MessageWrapper&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::google::protobuf::Descriptor* descriptor(); static const MessageWrapper& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const MessageWrapper* internal_default_instance() { return reinterpret_cast( &_MessageWrapper_default_instance_); } static constexpr int kIndexInFileMessages = 0; void Swap(MessageWrapper* other); friend void swap(MessageWrapper& a, MessageWrapper& b) { a.Swap(&b); } // implements Message ---------------------------------------------- inline MessageWrapper* New() const final { return CreateMaybeMessage(NULL); } MessageWrapper* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const MessageWrapper& from); void MergeFrom(const MessageWrapper& from); void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(MessageWrapper* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return NULL; } inline void* MaybeArenaPtr() const { return NULL; } public: ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- typedef MessageWrapper_Type Type; static const Type CURSOR_MOVE = MessageWrapper_Type_CURSOR_MOVE; static const Type SQUARE_FLAG = MessageWrapper_Type_SQUARE_FLAG; static const Type SQUARE_OPEN = MessageWrapper_Type_SQUARE_OPEN; static const Type PLAYER_JOIN = MessageWrapper_Type_PLAYER_JOIN; static const Type PLAYER_QUIT = MessageWrapper_Type_PLAYER_QUIT; static const Type WELCOME = MessageWrapper_Type_WELCOME; static const Type CHUNK_BYTES = MessageWrapper_Type_CHUNK_BYTES; static const Type CHUNK_REQUEST = MessageWrapper_Type_CHUNK_REQUEST; static const Type CLEAR_AT = MessageWrapper_Type_CLEAR_AT; static const Type PLAYER_UPDATE = MessageWrapper_Type_PLAYER_UPDATE; static inline bool Type_IsValid(int value) { return MessageWrapper_Type_IsValid(value); } static const Type Type_MIN = MessageWrapper_Type_Type_MIN; static const Type Type_MAX = MessageWrapper_Type_Type_MAX; static const int Type_ARRAYSIZE = MessageWrapper_Type_Type_ARRAYSIZE; static inline const ::google::protobuf::EnumDescriptor* Type_descriptor() { return MessageWrapper_Type_descriptor(); } static inline const ::std::string& Type_Name(Type value) { return MessageWrapper_Type_Name(value); } static inline bool Type_Parse(const ::std::string& name, Type* value) { return MessageWrapper_Type_Parse(name, value); } // accessors ------------------------------------------------------- // optional .nm.message.CursorMove cursorMove = 2; bool has_cursormove() const; void clear_cursormove(); static const int kCursorMoveFieldNumber = 2; private: const ::nm::message::CursorMove& _internal_cursormove() const; public: const ::nm::message::CursorMove& cursormove() const; ::nm::message::CursorMove* release_cursormove(); ::nm::message::CursorMove* mutable_cursormove(); void set_allocated_cursormove(::nm::message::CursorMove* cursormove); // optional .nm.message.SquareOpen squareOpen = 3; bool has_squareopen() const; void clear_squareopen(); static const int kSquareOpenFieldNumber = 3; private: const ::nm::message::SquareOpen& _internal_squareopen() const; public: const ::nm::message::SquareOpen& squareopen() const; ::nm::message::SquareOpen* release_squareopen(); ::nm::message::SquareOpen* mutable_squareopen(); void set_allocated_squareopen(::nm::message::SquareOpen* squareopen); // optional .nm.message.ChunkBytes chunkBytes = 4; bool has_chunkbytes() const; void clear_chunkbytes(); static const int kChunkBytesFieldNumber = 4; private: const ::nm::message::ChunkBytes& _internal_chunkbytes() const; public: const ::nm::message::ChunkBytes& chunkbytes() const; ::nm::message::ChunkBytes* release_chunkbytes(); ::nm::message::ChunkBytes* mutable_chunkbytes(); void set_allocated_chunkbytes(::nm::message::ChunkBytes* chunkbytes); // optional .nm.message.SquareFlag squareFlag = 5; bool has_squareflag() const; void clear_squareflag(); static const int kSquareFlagFieldNumber = 5; private: const ::nm::message::SquareFlag& _internal_squareflag() const; public: const ::nm::message::SquareFlag& squareflag() const; ::nm::message::SquareFlag* release_squareflag(); ::nm::message::SquareFlag* mutable_squareflag(); void set_allocated_squareflag(::nm::message::SquareFlag* squareflag); // optional .nm.message.Player playerJoin = 6; bool has_playerjoin() const; void clear_playerjoin(); static const int kPlayerJoinFieldNumber = 6; private: const ::nm::message::Player& _internal_playerjoin() const; public: const ::nm::message::Player& playerjoin() const; ::nm::message::Player* release_playerjoin(); ::nm::message::Player* mutable_playerjoin(); void set_allocated_playerjoin(::nm::message::Player* playerjoin); // optional .nm.message.Player playerQuit = 7; bool has_playerquit() const; void clear_playerquit(); static const int kPlayerQuitFieldNumber = 7; private: const ::nm::message::Player& _internal_playerquit() const; public: const ::nm::message::Player& playerquit() const; ::nm::message::Player* release_playerquit(); ::nm::message::Player* mutable_playerquit(); void set_allocated_playerquit(::nm::message::Player* playerquit); // optional .nm.message.Welcome welcome = 8; bool has_welcome() const; void clear_welcome(); static const int kWelcomeFieldNumber = 8; private: const ::nm::message::Welcome& _internal_welcome() const; public: const ::nm::message::Welcome& welcome() const; ::nm::message::Welcome* release_welcome(); ::nm::message::Welcome* mutable_welcome(); void set_allocated_welcome(::nm::message::Welcome* welcome); // optional .nm.message.ChunkRequest chunkRequest = 9; bool has_chunkrequest() const; void clear_chunkrequest(); static const int kChunkRequestFieldNumber = 9; private: const ::nm::message::ChunkRequest& _internal_chunkrequest() const; public: const ::nm::message::ChunkRequest& chunkrequest() const; ::nm::message::ChunkRequest* release_chunkrequest(); ::nm::message::ChunkRequest* mutable_chunkrequest(); void set_allocated_chunkrequest(::nm::message::ChunkRequest* chunkrequest); // optional .nm.message.ClearAt clearAt = 10; bool has_clearat() const; void clear_clearat(); static const int kClearAtFieldNumber = 10; private: const ::nm::message::ClearAt& _internal_clearat() const; public: const ::nm::message::ClearAt& clearat() const; ::nm::message::ClearAt* release_clearat(); ::nm::message::ClearAt* mutable_clearat(); void set_allocated_clearat(::nm::message::ClearAt* clearat); // optional .nm.message.Player player = 11; bool has_player() const; void clear_player(); static const int kPlayerFieldNumber = 11; private: const ::nm::message::Player& _internal_player() const; public: const ::nm::message::Player& player() const; ::nm::message::Player* release_player(); ::nm::message::Player* mutable_player(); void set_allocated_player(::nm::message::Player* player); // required .nm.message.MessageWrapper.Type type = 1; bool has_type() const; void clear_type(); static const int kTypeFieldNumber = 1; ::nm::message::MessageWrapper_Type type() const; void set_type(::nm::message::MessageWrapper_Type value); // @@protoc_insertion_point(class_scope:nm.message.MessageWrapper) private: void set_has_type(); void clear_has_type(); void set_has_cursormove(); void clear_has_cursormove(); void set_has_squareopen(); void clear_has_squareopen(); void set_has_chunkbytes(); void clear_has_chunkbytes(); void set_has_squareflag(); void clear_has_squareflag(); void set_has_playerjoin(); void clear_has_playerjoin(); void set_has_playerquit(); void clear_has_playerquit(); void set_has_welcome(); void clear_has_welcome(); void set_has_chunkrequest(); void clear_has_chunkrequest(); void set_has_clearat(); void clear_has_clearat(); void set_has_player(); void clear_has_player(); ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::nm::message::CursorMove* cursormove_; ::nm::message::SquareOpen* squareopen_; ::nm::message::ChunkBytes* chunkbytes_; ::nm::message::SquareFlag* squareflag_; ::nm::message::Player* playerjoin_; ::nm::message::Player* playerquit_; ::nm::message::Welcome* welcome_; ::nm::message::ChunkRequest* chunkrequest_; ::nm::message::ClearAt* clearat_; ::nm::message::Player* player_; int type_; friend struct ::protobuf_ours_2eproto::TableStruct; }; // ------------------------------------------------------------------- class ClearAt : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:nm.message.ClearAt) */ { public: ClearAt(); virtual ~ClearAt(); ClearAt(const ClearAt& from); inline ClearAt& operator=(const ClearAt& from) { CopyFrom(from); return *this; } #if LANG_CXX11 ClearAt(ClearAt&& from) noexcept : ClearAt() { *this = ::std::move(from); } inline ClearAt& operator=(ClearAt&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::google::protobuf::Descriptor* descriptor(); static const ClearAt& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ClearAt* internal_default_instance() { return reinterpret_cast( &_ClearAt_default_instance_); } static constexpr int kIndexInFileMessages = 1; void Swap(ClearAt* other); friend void swap(ClearAt& a, ClearAt& b) { a.Swap(&b); } // implements Message ---------------------------------------------- inline ClearAt* New() const final { return CreateMaybeMessage(NULL); } ClearAt* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const ClearAt& from); void MergeFrom(const ClearAt& from); void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ClearAt* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return NULL; } inline void* MaybeArenaPtr() const { return NULL; } public: ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required int32 x = 1; bool has_x() const; void clear_x(); static const int kXFieldNumber = 1; ::google::protobuf::int32 x() const; void set_x(::google::protobuf::int32 value); // required int32 y = 2; bool has_y() const; void clear_y(); static const int kYFieldNumber = 2; ::google::protobuf::int32 y() const; void set_y(::google::protobuf::int32 value); // @@protoc_insertion_point(class_scope:nm.message.ClearAt) private: void set_has_x(); void clear_has_x(); void set_has_y(); void clear_has_y(); // helper for ByteSizeLong() size_t RequiredFieldsByteSizeFallback() const; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::int32 x_; ::google::protobuf::int32 y_; friend struct ::protobuf_ours_2eproto::TableStruct; }; // ------------------------------------------------------------------- class ChunkRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:nm.message.ChunkRequest) */ { public: ChunkRequest(); virtual ~ChunkRequest(); ChunkRequest(const ChunkRequest& from); inline ChunkRequest& operator=(const ChunkRequest& from) { CopyFrom(from); return *this; } #if LANG_CXX11 ChunkRequest(ChunkRequest&& from) noexcept : ChunkRequest() { *this = ::std::move(from); } inline ChunkRequest& operator=(ChunkRequest&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::google::protobuf::Descriptor* descriptor(); static const ChunkRequest& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ChunkRequest* internal_default_instance() { return reinterpret_cast( &_ChunkRequest_default_instance_); } static constexpr int kIndexInFileMessages = 2; void Swap(ChunkRequest* other); friend void swap(ChunkRequest& a, ChunkRequest& b) { a.Swap(&b); } // implements Message ---------------------------------------------- inline ChunkRequest* New() const final { return CreateMaybeMessage(NULL); } ChunkRequest* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const ChunkRequest& from); void MergeFrom(const ChunkRequest& from); void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ChunkRequest* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return NULL; } inline void* MaybeArenaPtr() const { return NULL; } public: ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required int32 x = 1; bool has_x() const; void clear_x(); static const int kXFieldNumber = 1; ::google::protobuf::int32 x() const; void set_x(::google::protobuf::int32 value); // required int32 y = 2; bool has_y() const; void clear_y(); static const int kYFieldNumber = 2; ::google::protobuf::int32 y() const; void set_y(::google::protobuf::int32 value); // @@protoc_insertion_point(class_scope:nm.message.ChunkRequest) private: void set_has_x(); void clear_has_x(); void set_has_y(); void clear_has_y(); // helper for ByteSizeLong() size_t RequiredFieldsByteSizeFallback() const; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::int32 x_; ::google::protobuf::int32 y_; friend struct ::protobuf_ours_2eproto::TableStruct; }; // ------------------------------------------------------------------- class ChunkBytes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:nm.message.ChunkBytes) */ { public: ChunkBytes(); virtual ~ChunkBytes(); ChunkBytes(const ChunkBytes& from); inline ChunkBytes& operator=(const ChunkBytes& from) { CopyFrom(from); return *this; } #if LANG_CXX11 ChunkBytes(ChunkBytes&& from) noexcept : ChunkBytes() { *this = ::std::move(from); } inline ChunkBytes& operator=(ChunkBytes&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::google::protobuf::Descriptor* descriptor(); static const ChunkBytes& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const ChunkBytes* internal_default_instance() { return reinterpret_cast( &_ChunkBytes_default_instance_); } static constexpr int kIndexInFileMessages = 3; void Swap(ChunkBytes* other); friend void swap(ChunkBytes& a, ChunkBytes& b) { a.Swap(&b); } // implements Message ---------------------------------------------- inline ChunkBytes* New() const final { return CreateMaybeMessage(NULL); } ChunkBytes* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const ChunkBytes& from); void MergeFrom(const ChunkBytes& from); void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(ChunkBytes* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return NULL; } inline void* MaybeArenaPtr() const { return NULL; } public: ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required bytes data = 3; bool has_data() const; void clear_data(); static const int kDataFieldNumber = 3; const ::std::string& data() const; void set_data(const ::std::string& value); #if LANG_CXX11 void set_data(::std::string&& value); #endif void set_data(const char* value); void set_data(const void* value, size_t size); ::std::string* mutable_data(); ::std::string* release_data(); void set_allocated_data(::std::string* data); // required int32 x = 1; bool has_x() const; void clear_x(); static const int kXFieldNumber = 1; ::google::protobuf::int32 x() const; void set_x(::google::protobuf::int32 value); // required int32 y = 2; bool has_y() const; void clear_y(); static const int kYFieldNumber = 2; ::google::protobuf::int32 y() const; void set_y(::google::protobuf::int32 value); // @@protoc_insertion_point(class_scope:nm.message.ChunkBytes) private: void set_has_x(); void clear_has_x(); void set_has_y(); void clear_has_y(); void set_has_data(); void clear_has_data(); // helper for ByteSizeLong() size_t RequiredFieldsByteSizeFallback() const; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr data_; ::google::protobuf::int32 x_; ::google::protobuf::int32 y_; friend struct ::protobuf_ours_2eproto::TableStruct; }; // ------------------------------------------------------------------- class CursorMove : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:nm.message.CursorMove) */ { public: CursorMove(); virtual ~CursorMove(); CursorMove(const CursorMove& from); inline CursorMove& operator=(const CursorMove& from) { CopyFrom(from); return *this; } #if LANG_CXX11 CursorMove(CursorMove&& from) noexcept : CursorMove() { *this = ::std::move(from); } inline CursorMove& operator=(CursorMove&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::google::protobuf::Descriptor* descriptor(); static const CursorMove& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const CursorMove* internal_default_instance() { return reinterpret_cast( &_CursorMove_default_instance_); } static constexpr int kIndexInFileMessages = 4; void Swap(CursorMove* other); friend void swap(CursorMove& a, CursorMove& b) { a.Swap(&b); } // implements Message ---------------------------------------------- inline CursorMove* New() const final { return CreateMaybeMessage(NULL); } CursorMove* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const CursorMove& from); void MergeFrom(const CursorMove& from); void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(CursorMove* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return NULL; } inline void* MaybeArenaPtr() const { return NULL; } public: ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required int32 x = 1; bool has_x() const; void clear_x(); static const int kXFieldNumber = 1; ::google::protobuf::int32 x() const; void set_x(::google::protobuf::int32 value); // required int32 y = 2; bool has_y() const; void clear_y(); static const int kYFieldNumber = 2; ::google::protobuf::int32 y() const; void set_y(::google::protobuf::int32 value); // optional int32 id = 3; bool has_id() const; void clear_id(); static const int kIdFieldNumber = 3; ::google::protobuf::int32 id() const; void set_id(::google::protobuf::int32 value); // @@protoc_insertion_point(class_scope:nm.message.CursorMove) private: void set_has_x(); void clear_has_x(); void set_has_y(); void clear_has_y(); void set_has_id(); void clear_has_id(); // helper for ByteSizeLong() size_t RequiredFieldsByteSizeFallback() const; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::int32 x_; ::google::protobuf::int32 y_; ::google::protobuf::int32 id_; friend struct ::protobuf_ours_2eproto::TableStruct; }; // ------------------------------------------------------------------- class SquareOpen : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:nm.message.SquareOpen) */ { public: SquareOpen(); virtual ~SquareOpen(); SquareOpen(const SquareOpen& from); inline SquareOpen& operator=(const SquareOpen& from) { CopyFrom(from); return *this; } #if LANG_CXX11 SquareOpen(SquareOpen&& from) noexcept : SquareOpen() { *this = ::std::move(from); } inline SquareOpen& operator=(SquareOpen&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::google::protobuf::Descriptor* descriptor(); static const SquareOpen& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SquareOpen* internal_default_instance() { return reinterpret_cast( &_SquareOpen_default_instance_); } static constexpr int kIndexInFileMessages = 5; void Swap(SquareOpen* other); friend void swap(SquareOpen& a, SquareOpen& b) { a.Swap(&b); } // implements Message ---------------------------------------------- inline SquareOpen* New() const final { return CreateMaybeMessage(NULL); } SquareOpen* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const SquareOpen& from); void MergeFrom(const SquareOpen& from); void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SquareOpen* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return NULL; } inline void* MaybeArenaPtr() const { return NULL; } public: ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required int32 x = 1; bool has_x() const; void clear_x(); static const int kXFieldNumber = 1; ::google::protobuf::int32 x() const; void set_x(::google::protobuf::int32 value); // required int32 y = 2; bool has_y() const; void clear_y(); static const int kYFieldNumber = 2; ::google::protobuf::int32 y() const; void set_y(::google::protobuf::int32 value); // optional int32 id = 3; bool has_id() const; void clear_id(); static const int kIdFieldNumber = 3; ::google::protobuf::int32 id() const; void set_id(::google::protobuf::int32 value); // @@protoc_insertion_point(class_scope:nm.message.SquareOpen) private: void set_has_x(); void clear_has_x(); void set_has_y(); void clear_has_y(); void set_has_id(); void clear_has_id(); // helper for ByteSizeLong() size_t RequiredFieldsByteSizeFallback() const; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::int32 x_; ::google::protobuf::int32 y_; ::google::protobuf::int32 id_; friend struct ::protobuf_ours_2eproto::TableStruct; }; // ------------------------------------------------------------------- class SquareFlag : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:nm.message.SquareFlag) */ { public: SquareFlag(); virtual ~SquareFlag(); SquareFlag(const SquareFlag& from); inline SquareFlag& operator=(const SquareFlag& from) { CopyFrom(from); return *this; } #if LANG_CXX11 SquareFlag(SquareFlag&& from) noexcept : SquareFlag() { *this = ::std::move(from); } inline SquareFlag& operator=(SquareFlag&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::google::protobuf::Descriptor* descriptor(); static const SquareFlag& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const SquareFlag* internal_default_instance() { return reinterpret_cast( &_SquareFlag_default_instance_); } static constexpr int kIndexInFileMessages = 6; void Swap(SquareFlag* other); friend void swap(SquareFlag& a, SquareFlag& b) { a.Swap(&b); } // implements Message ---------------------------------------------- inline SquareFlag* New() const final { return CreateMaybeMessage(NULL); } SquareFlag* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const SquareFlag& from); void MergeFrom(const SquareFlag& from); void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(SquareFlag* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return NULL; } inline void* MaybeArenaPtr() const { return NULL; } public: ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // required int32 x = 1; bool has_x() const; void clear_x(); static const int kXFieldNumber = 1; ::google::protobuf::int32 x() const; void set_x(::google::protobuf::int32 value); // required int32 y = 2; bool has_y() const; void clear_y(); static const int kYFieldNumber = 2; ::google::protobuf::int32 y() const; void set_y(::google::protobuf::int32 value); // optional int32 id = 3; bool has_id() const; void clear_id(); static const int kIdFieldNumber = 3; ::google::protobuf::int32 id() const; void set_id(::google::protobuf::int32 value); // @@protoc_insertion_point(class_scope:nm.message.SquareFlag) private: void set_has_x(); void clear_has_x(); void set_has_y(); void clear_has_y(); void set_has_id(); void clear_has_id(); // helper for ByteSizeLong() size_t RequiredFieldsByteSizeFallback() const; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::int32 x_; ::google::protobuf::int32 y_; ::google::protobuf::int32 id_; friend struct ::protobuf_ours_2eproto::TableStruct; }; // ------------------------------------------------------------------- class Player : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:nm.message.Player) */ { public: Player(); virtual ~Player(); Player(const Player& from); inline Player& operator=(const Player& from) { CopyFrom(from); return *this; } #if LANG_CXX11 Player(Player&& from) noexcept : Player() { *this = ::std::move(from); } inline Player& operator=(Player&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::google::protobuf::Descriptor* descriptor(); static const Player& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Player* internal_default_instance() { return reinterpret_cast( &_Player_default_instance_); } static constexpr int kIndexInFileMessages = 7; void Swap(Player* other); friend void swap(Player& a, Player& b) { a.Swap(&b); } // implements Message ---------------------------------------------- inline Player* New() const final { return CreateMaybeMessage(NULL); } Player* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const Player& from); void MergeFrom(const Player& from); void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Player* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return NULL; } inline void* MaybeArenaPtr() const { return NULL; } public: ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // optional string name = 4; bool has_name() const; void clear_name(); static const int kNameFieldNumber = 4; const ::std::string& name() const; void set_name(const ::std::string& value); #if LANG_CXX11 void set_name(::std::string&& value); #endif void set_name(const char* value); void set_name(const char* value, size_t size); ::std::string* mutable_name(); ::std::string* release_name(); void set_allocated_name(::std::string* name); // required int32 x = 1; bool has_x() const; void clear_x(); static const int kXFieldNumber = 1; ::google::protobuf::int32 x() const; void set_x(::google::protobuf::int32 value); // required int32 y = 2; bool has_y() const; void clear_y(); static const int kYFieldNumber = 2; ::google::protobuf::int32 y() const; void set_y(::google::protobuf::int32 value); // optional int32 id = 3; bool has_id() const; void clear_id(); static const int kIdFieldNumber = 3; ::google::protobuf::int32 id() const; void set_id(::google::protobuf::int32 value); // @@protoc_insertion_point(class_scope:nm.message.Player) private: void set_has_x(); void clear_has_x(); void set_has_y(); void clear_has_y(); void set_has_id(); void clear_has_id(); void set_has_name(); void clear_has_name(); // helper for ByteSizeLong() size_t RequiredFieldsByteSizeFallback() const; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::internal::ArenaStringPtr name_; ::google::protobuf::int32 x_; ::google::protobuf::int32 y_; ::google::protobuf::int32 id_; friend struct ::protobuf_ours_2eproto::TableStruct; }; // ------------------------------------------------------------------- class Welcome : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:nm.message.Welcome) */ { public: Welcome(); virtual ~Welcome(); Welcome(const Welcome& from); inline Welcome& operator=(const Welcome& from) { CopyFrom(from); return *this; } #if LANG_CXX11 Welcome(Welcome&& from) noexcept : Welcome() { *this = ::std::move(from); } inline Welcome& operator=(Welcome&& from) noexcept { if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { if (this != &from) InternalSwap(&from); } else { CopyFrom(from); } return *this; } #endif inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { return _internal_metadata_.unknown_fields(); } inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { return _internal_metadata_.mutable_unknown_fields(); } static const ::google::protobuf::Descriptor* descriptor(); static const Welcome& default_instance(); static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY static inline const Welcome* internal_default_instance() { return reinterpret_cast( &_Welcome_default_instance_); } static constexpr int kIndexInFileMessages = 8; void Swap(Welcome* other); friend void swap(Welcome& a, Welcome& b) { a.Swap(&b); } // implements Message ---------------------------------------------- inline Welcome* New() const final { return CreateMaybeMessage(NULL); } Welcome* New(::google::protobuf::Arena* arena) const final { return CreateMaybeMessage(arena); } void CopyFrom(const ::google::protobuf::Message& from) final; void MergeFrom(const ::google::protobuf::Message& from) final; void CopyFrom(const Welcome& from); void MergeFrom(const Welcome& from); void Clear() final; bool IsInitialized() const final; size_t ByteSizeLong() const final; bool MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) final; void SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const final; ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( bool deterministic, ::google::protobuf::uint8* target) const final; int GetCachedSize() const final { return _cached_size_.Get(); } private: void SharedCtor(); void SharedDtor(); void SetCachedSize(int size) const final; void InternalSwap(Welcome* other); private: inline ::google::protobuf::Arena* GetArenaNoVirtual() const { return NULL; } inline void* MaybeArenaPtr() const { return NULL; } public: ::google::protobuf::Metadata GetMetadata() const final; // nested types ---------------------------------------------------- // accessors ------------------------------------------------------- // repeated .nm.message.Player players = 3; int players_size() const; void clear_players(); static const int kPlayersFieldNumber = 3; ::nm::message::Player* mutable_players(int index); ::google::protobuf::RepeatedPtrField< ::nm::message::Player >* mutable_players(); const ::nm::message::Player& players(int index) const; ::nm::message::Player* add_players(); const ::google::protobuf::RepeatedPtrField< ::nm::message::Player >& players() const; // required int32 version = 1; bool has_version() const; void clear_version(); static const int kVersionFieldNumber = 1; ::google::protobuf::int32 version() const; void set_version(::google::protobuf::int32 value); // required int32 nPlayers = 2; bool has_nplayers() const; void clear_nplayers(); static const int kNPlayersFieldNumber = 2; ::google::protobuf::int32 nplayers() const; void set_nplayers(::google::protobuf::int32 value); // @@protoc_insertion_point(class_scope:nm.message.Welcome) private: void set_has_version(); void clear_has_version(); void set_has_nplayers(); void clear_has_nplayers(); // helper for ByteSizeLong() size_t RequiredFieldsByteSizeFallback() const; ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; ::google::protobuf::internal::HasBits<1> _has_bits_; mutable ::google::protobuf::internal::CachedSize _cached_size_; ::google::protobuf::RepeatedPtrField< ::nm::message::Player > players_; ::google::protobuf::int32 version_; ::google::protobuf::int32 nplayers_; friend struct ::protobuf_ours_2eproto::TableStruct; }; // =================================================================== // =================================================================== #ifdef __GNUC__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstrict-aliasing" #endif // __GNUC__ // MessageWrapper // required .nm.message.MessageWrapper.Type type = 1; inline bool MessageWrapper::has_type() const { return (_has_bits_[0] & 0x00000400u) != 0; } inline void MessageWrapper::set_has_type() { _has_bits_[0] |= 0x00000400u; } inline void MessageWrapper::clear_has_type() { _has_bits_[0] &= ~0x00000400u; } inline void MessageWrapper::clear_type() { type_ = 1; clear_has_type(); } inline ::nm::message::MessageWrapper_Type MessageWrapper::type() const { // @@protoc_insertion_point(field_get:nm.message.MessageWrapper.type) return static_cast< ::nm::message::MessageWrapper_Type >(type_); } inline void MessageWrapper::set_type(::nm::message::MessageWrapper_Type value) { assert(::nm::message::MessageWrapper_Type_IsValid(value)); set_has_type(); type_ = value; // @@protoc_insertion_point(field_set:nm.message.MessageWrapper.type) } // optional .nm.message.CursorMove cursorMove = 2; inline bool MessageWrapper::has_cursormove() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void MessageWrapper::set_has_cursormove() { _has_bits_[0] |= 0x00000001u; } inline void MessageWrapper::clear_has_cursormove() { _has_bits_[0] &= ~0x00000001u; } inline void MessageWrapper::clear_cursormove() { if (cursormove_ != NULL) cursormove_->Clear(); clear_has_cursormove(); } inline const ::nm::message::CursorMove& MessageWrapper::_internal_cursormove() const { return *cursormove_; } inline const ::nm::message::CursorMove& MessageWrapper::cursormove() const { const ::nm::message::CursorMove* p = cursormove_; // @@protoc_insertion_point(field_get:nm.message.MessageWrapper.cursorMove) return p != NULL ? *p : *reinterpret_cast( &::nm::message::_CursorMove_default_instance_); } inline ::nm::message::CursorMove* MessageWrapper::release_cursormove() { // @@protoc_insertion_point(field_release:nm.message.MessageWrapper.cursorMove) clear_has_cursormove(); ::nm::message::CursorMove* temp = cursormove_; cursormove_ = NULL; return temp; } inline ::nm::message::CursorMove* MessageWrapper::mutable_cursormove() { set_has_cursormove(); if (cursormove_ == NULL) { auto* p = CreateMaybeMessage<::nm::message::CursorMove>(GetArenaNoVirtual()); cursormove_ = p; } // @@protoc_insertion_point(field_mutable:nm.message.MessageWrapper.cursorMove) return cursormove_; } inline void MessageWrapper::set_allocated_cursormove(::nm::message::CursorMove* cursormove) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete cursormove_; } if (cursormove) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { cursormove = ::google::protobuf::internal::GetOwnedMessage( message_arena, cursormove, submessage_arena); } set_has_cursormove(); } else { clear_has_cursormove(); } cursormove_ = cursormove; // @@protoc_insertion_point(field_set_allocated:nm.message.MessageWrapper.cursorMove) } // optional .nm.message.SquareOpen squareOpen = 3; inline bool MessageWrapper::has_squareopen() const { return (_has_bits_[0] & 0x00000002u) != 0; } inline void MessageWrapper::set_has_squareopen() { _has_bits_[0] |= 0x00000002u; } inline void MessageWrapper::clear_has_squareopen() { _has_bits_[0] &= ~0x00000002u; } inline void MessageWrapper::clear_squareopen() { if (squareopen_ != NULL) squareopen_->Clear(); clear_has_squareopen(); } inline const ::nm::message::SquareOpen& MessageWrapper::_internal_squareopen() const { return *squareopen_; } inline const ::nm::message::SquareOpen& MessageWrapper::squareopen() const { const ::nm::message::SquareOpen* p = squareopen_; // @@protoc_insertion_point(field_get:nm.message.MessageWrapper.squareOpen) return p != NULL ? *p : *reinterpret_cast( &::nm::message::_SquareOpen_default_instance_); } inline ::nm::message::SquareOpen* MessageWrapper::release_squareopen() { // @@protoc_insertion_point(field_release:nm.message.MessageWrapper.squareOpen) clear_has_squareopen(); ::nm::message::SquareOpen* temp = squareopen_; squareopen_ = NULL; return temp; } inline ::nm::message::SquareOpen* MessageWrapper::mutable_squareopen() { set_has_squareopen(); if (squareopen_ == NULL) { auto* p = CreateMaybeMessage<::nm::message::SquareOpen>(GetArenaNoVirtual()); squareopen_ = p; } // @@protoc_insertion_point(field_mutable:nm.message.MessageWrapper.squareOpen) return squareopen_; } inline void MessageWrapper::set_allocated_squareopen(::nm::message::SquareOpen* squareopen) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete squareopen_; } if (squareopen) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { squareopen = ::google::protobuf::internal::GetOwnedMessage( message_arena, squareopen, submessage_arena); } set_has_squareopen(); } else { clear_has_squareopen(); } squareopen_ = squareopen; // @@protoc_insertion_point(field_set_allocated:nm.message.MessageWrapper.squareOpen) } // optional .nm.message.ChunkBytes chunkBytes = 4; inline bool MessageWrapper::has_chunkbytes() const { return (_has_bits_[0] & 0x00000004u) != 0; } inline void MessageWrapper::set_has_chunkbytes() { _has_bits_[0] |= 0x00000004u; } inline void MessageWrapper::clear_has_chunkbytes() { _has_bits_[0] &= ~0x00000004u; } inline void MessageWrapper::clear_chunkbytes() { if (chunkbytes_ != NULL) chunkbytes_->Clear(); clear_has_chunkbytes(); } inline const ::nm::message::ChunkBytes& MessageWrapper::_internal_chunkbytes() const { return *chunkbytes_; } inline const ::nm::message::ChunkBytes& MessageWrapper::chunkbytes() const { const ::nm::message::ChunkBytes* p = chunkbytes_; // @@protoc_insertion_point(field_get:nm.message.MessageWrapper.chunkBytes) return p != NULL ? *p : *reinterpret_cast( &::nm::message::_ChunkBytes_default_instance_); } inline ::nm::message::ChunkBytes* MessageWrapper::release_chunkbytes() { // @@protoc_insertion_point(field_release:nm.message.MessageWrapper.chunkBytes) clear_has_chunkbytes(); ::nm::message::ChunkBytes* temp = chunkbytes_; chunkbytes_ = NULL; return temp; } inline ::nm::message::ChunkBytes* MessageWrapper::mutable_chunkbytes() { set_has_chunkbytes(); if (chunkbytes_ == NULL) { auto* p = CreateMaybeMessage<::nm::message::ChunkBytes>(GetArenaNoVirtual()); chunkbytes_ = p; } // @@protoc_insertion_point(field_mutable:nm.message.MessageWrapper.chunkBytes) return chunkbytes_; } inline void MessageWrapper::set_allocated_chunkbytes(::nm::message::ChunkBytes* chunkbytes) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete chunkbytes_; } if (chunkbytes) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { chunkbytes = ::google::protobuf::internal::GetOwnedMessage( message_arena, chunkbytes, submessage_arena); } set_has_chunkbytes(); } else { clear_has_chunkbytes(); } chunkbytes_ = chunkbytes; // @@protoc_insertion_point(field_set_allocated:nm.message.MessageWrapper.chunkBytes) } // optional .nm.message.SquareFlag squareFlag = 5; inline bool MessageWrapper::has_squareflag() const { return (_has_bits_[0] & 0x00000008u) != 0; } inline void MessageWrapper::set_has_squareflag() { _has_bits_[0] |= 0x00000008u; } inline void MessageWrapper::clear_has_squareflag() { _has_bits_[0] &= ~0x00000008u; } inline void MessageWrapper::clear_squareflag() { if (squareflag_ != NULL) squareflag_->Clear(); clear_has_squareflag(); } inline const ::nm::message::SquareFlag& MessageWrapper::_internal_squareflag() const { return *squareflag_; } inline const ::nm::message::SquareFlag& MessageWrapper::squareflag() const { const ::nm::message::SquareFlag* p = squareflag_; // @@protoc_insertion_point(field_get:nm.message.MessageWrapper.squareFlag) return p != NULL ? *p : *reinterpret_cast( &::nm::message::_SquareFlag_default_instance_); } inline ::nm::message::SquareFlag* MessageWrapper::release_squareflag() { // @@protoc_insertion_point(field_release:nm.message.MessageWrapper.squareFlag) clear_has_squareflag(); ::nm::message::SquareFlag* temp = squareflag_; squareflag_ = NULL; return temp; } inline ::nm::message::SquareFlag* MessageWrapper::mutable_squareflag() { set_has_squareflag(); if (squareflag_ == NULL) { auto* p = CreateMaybeMessage<::nm::message::SquareFlag>(GetArenaNoVirtual()); squareflag_ = p; } // @@protoc_insertion_point(field_mutable:nm.message.MessageWrapper.squareFlag) return squareflag_; } inline void MessageWrapper::set_allocated_squareflag(::nm::message::SquareFlag* squareflag) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete squareflag_; } if (squareflag) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { squareflag = ::google::protobuf::internal::GetOwnedMessage( message_arena, squareflag, submessage_arena); } set_has_squareflag(); } else { clear_has_squareflag(); } squareflag_ = squareflag; // @@protoc_insertion_point(field_set_allocated:nm.message.MessageWrapper.squareFlag) } // optional .nm.message.Player playerJoin = 6; inline bool MessageWrapper::has_playerjoin() const { return (_has_bits_[0] & 0x00000010u) != 0; } inline void MessageWrapper::set_has_playerjoin() { _has_bits_[0] |= 0x00000010u; } inline void MessageWrapper::clear_has_playerjoin() { _has_bits_[0] &= ~0x00000010u; } inline void MessageWrapper::clear_playerjoin() { if (playerjoin_ != NULL) playerjoin_->Clear(); clear_has_playerjoin(); } inline const ::nm::message::Player& MessageWrapper::_internal_playerjoin() const { return *playerjoin_; } inline const ::nm::message::Player& MessageWrapper::playerjoin() const { const ::nm::message::Player* p = playerjoin_; // @@protoc_insertion_point(field_get:nm.message.MessageWrapper.playerJoin) return p != NULL ? *p : *reinterpret_cast( &::nm::message::_Player_default_instance_); } inline ::nm::message::Player* MessageWrapper::release_playerjoin() { // @@protoc_insertion_point(field_release:nm.message.MessageWrapper.playerJoin) clear_has_playerjoin(); ::nm::message::Player* temp = playerjoin_; playerjoin_ = NULL; return temp; } inline ::nm::message::Player* MessageWrapper::mutable_playerjoin() { set_has_playerjoin(); if (playerjoin_ == NULL) { auto* p = CreateMaybeMessage<::nm::message::Player>(GetArenaNoVirtual()); playerjoin_ = p; } // @@protoc_insertion_point(field_mutable:nm.message.MessageWrapper.playerJoin) return playerjoin_; } inline void MessageWrapper::set_allocated_playerjoin(::nm::message::Player* playerjoin) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete playerjoin_; } if (playerjoin) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { playerjoin = ::google::protobuf::internal::GetOwnedMessage( message_arena, playerjoin, submessage_arena); } set_has_playerjoin(); } else { clear_has_playerjoin(); } playerjoin_ = playerjoin; // @@protoc_insertion_point(field_set_allocated:nm.message.MessageWrapper.playerJoin) } // optional .nm.message.Player playerQuit = 7; inline bool MessageWrapper::has_playerquit() const { return (_has_bits_[0] & 0x00000020u) != 0; } inline void MessageWrapper::set_has_playerquit() { _has_bits_[0] |= 0x00000020u; } inline void MessageWrapper::clear_has_playerquit() { _has_bits_[0] &= ~0x00000020u; } inline void MessageWrapper::clear_playerquit() { if (playerquit_ != NULL) playerquit_->Clear(); clear_has_playerquit(); } inline const ::nm::message::Player& MessageWrapper::_internal_playerquit() const { return *playerquit_; } inline const ::nm::message::Player& MessageWrapper::playerquit() const { const ::nm::message::Player* p = playerquit_; // @@protoc_insertion_point(field_get:nm.message.MessageWrapper.playerQuit) return p != NULL ? *p : *reinterpret_cast( &::nm::message::_Player_default_instance_); } inline ::nm::message::Player* MessageWrapper::release_playerquit() { // @@protoc_insertion_point(field_release:nm.message.MessageWrapper.playerQuit) clear_has_playerquit(); ::nm::message::Player* temp = playerquit_; playerquit_ = NULL; return temp; } inline ::nm::message::Player* MessageWrapper::mutable_playerquit() { set_has_playerquit(); if (playerquit_ == NULL) { auto* p = CreateMaybeMessage<::nm::message::Player>(GetArenaNoVirtual()); playerquit_ = p; } // @@protoc_insertion_point(field_mutable:nm.message.MessageWrapper.playerQuit) return playerquit_; } inline void MessageWrapper::set_allocated_playerquit(::nm::message::Player* playerquit) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete playerquit_; } if (playerquit) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { playerquit = ::google::protobuf::internal::GetOwnedMessage( message_arena, playerquit, submessage_arena); } set_has_playerquit(); } else { clear_has_playerquit(); } playerquit_ = playerquit; // @@protoc_insertion_point(field_set_allocated:nm.message.MessageWrapper.playerQuit) } // optional .nm.message.Welcome welcome = 8; inline bool MessageWrapper::has_welcome() const { return (_has_bits_[0] & 0x00000040u) != 0; } inline void MessageWrapper::set_has_welcome() { _has_bits_[0] |= 0x00000040u; } inline void MessageWrapper::clear_has_welcome() { _has_bits_[0] &= ~0x00000040u; } inline void MessageWrapper::clear_welcome() { if (welcome_ != NULL) welcome_->Clear(); clear_has_welcome(); } inline const ::nm::message::Welcome& MessageWrapper::_internal_welcome() const { return *welcome_; } inline const ::nm::message::Welcome& MessageWrapper::welcome() const { const ::nm::message::Welcome* p = welcome_; // @@protoc_insertion_point(field_get:nm.message.MessageWrapper.welcome) return p != NULL ? *p : *reinterpret_cast( &::nm::message::_Welcome_default_instance_); } inline ::nm::message::Welcome* MessageWrapper::release_welcome() { // @@protoc_insertion_point(field_release:nm.message.MessageWrapper.welcome) clear_has_welcome(); ::nm::message::Welcome* temp = welcome_; welcome_ = NULL; return temp; } inline ::nm::message::Welcome* MessageWrapper::mutable_welcome() { set_has_welcome(); if (welcome_ == NULL) { auto* p = CreateMaybeMessage<::nm::message::Welcome>(GetArenaNoVirtual()); welcome_ = p; } // @@protoc_insertion_point(field_mutable:nm.message.MessageWrapper.welcome) return welcome_; } inline void MessageWrapper::set_allocated_welcome(::nm::message::Welcome* welcome) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete welcome_; } if (welcome) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { welcome = ::google::protobuf::internal::GetOwnedMessage( message_arena, welcome, submessage_arena); } set_has_welcome(); } else { clear_has_welcome(); } welcome_ = welcome; // @@protoc_insertion_point(field_set_allocated:nm.message.MessageWrapper.welcome) } // optional .nm.message.ChunkRequest chunkRequest = 9; inline bool MessageWrapper::has_chunkrequest() const { return (_has_bits_[0] & 0x00000080u) != 0; } inline void MessageWrapper::set_has_chunkrequest() { _has_bits_[0] |= 0x00000080u; } inline void MessageWrapper::clear_has_chunkrequest() { _has_bits_[0] &= ~0x00000080u; } inline void MessageWrapper::clear_chunkrequest() { if (chunkrequest_ != NULL) chunkrequest_->Clear(); clear_has_chunkrequest(); } inline const ::nm::message::ChunkRequest& MessageWrapper::_internal_chunkrequest() const { return *chunkrequest_; } inline const ::nm::message::ChunkRequest& MessageWrapper::chunkrequest() const { const ::nm::message::ChunkRequest* p = chunkrequest_; // @@protoc_insertion_point(field_get:nm.message.MessageWrapper.chunkRequest) return p != NULL ? *p : *reinterpret_cast( &::nm::message::_ChunkRequest_default_instance_); } inline ::nm::message::ChunkRequest* MessageWrapper::release_chunkrequest() { // @@protoc_insertion_point(field_release:nm.message.MessageWrapper.chunkRequest) clear_has_chunkrequest(); ::nm::message::ChunkRequest* temp = chunkrequest_; chunkrequest_ = NULL; return temp; } inline ::nm::message::ChunkRequest* MessageWrapper::mutable_chunkrequest() { set_has_chunkrequest(); if (chunkrequest_ == NULL) { auto* p = CreateMaybeMessage<::nm::message::ChunkRequest>(GetArenaNoVirtual()); chunkrequest_ = p; } // @@protoc_insertion_point(field_mutable:nm.message.MessageWrapper.chunkRequest) return chunkrequest_; } inline void MessageWrapper::set_allocated_chunkrequest(::nm::message::ChunkRequest* chunkrequest) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete chunkrequest_; } if (chunkrequest) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { chunkrequest = ::google::protobuf::internal::GetOwnedMessage( message_arena, chunkrequest, submessage_arena); } set_has_chunkrequest(); } else { clear_has_chunkrequest(); } chunkrequest_ = chunkrequest; // @@protoc_insertion_point(field_set_allocated:nm.message.MessageWrapper.chunkRequest) } // optional .nm.message.ClearAt clearAt = 10; inline bool MessageWrapper::has_clearat() const { return (_has_bits_[0] & 0x00000100u) != 0; } inline void MessageWrapper::set_has_clearat() { _has_bits_[0] |= 0x00000100u; } inline void MessageWrapper::clear_has_clearat() { _has_bits_[0] &= ~0x00000100u; } inline void MessageWrapper::clear_clearat() { if (clearat_ != NULL) clearat_->Clear(); clear_has_clearat(); } inline const ::nm::message::ClearAt& MessageWrapper::_internal_clearat() const { return *clearat_; } inline const ::nm::message::ClearAt& MessageWrapper::clearat() const { const ::nm::message::ClearAt* p = clearat_; // @@protoc_insertion_point(field_get:nm.message.MessageWrapper.clearAt) return p != NULL ? *p : *reinterpret_cast( &::nm::message::_ClearAt_default_instance_); } inline ::nm::message::ClearAt* MessageWrapper::release_clearat() { // @@protoc_insertion_point(field_release:nm.message.MessageWrapper.clearAt) clear_has_clearat(); ::nm::message::ClearAt* temp = clearat_; clearat_ = NULL; return temp; } inline ::nm::message::ClearAt* MessageWrapper::mutable_clearat() { set_has_clearat(); if (clearat_ == NULL) { auto* p = CreateMaybeMessage<::nm::message::ClearAt>(GetArenaNoVirtual()); clearat_ = p; } // @@protoc_insertion_point(field_mutable:nm.message.MessageWrapper.clearAt) return clearat_; } inline void MessageWrapper::set_allocated_clearat(::nm::message::ClearAt* clearat) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete clearat_; } if (clearat) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { clearat = ::google::protobuf::internal::GetOwnedMessage( message_arena, clearat, submessage_arena); } set_has_clearat(); } else { clear_has_clearat(); } clearat_ = clearat; // @@protoc_insertion_point(field_set_allocated:nm.message.MessageWrapper.clearAt) } // optional .nm.message.Player player = 11; inline bool MessageWrapper::has_player() const { return (_has_bits_[0] & 0x00000200u) != 0; } inline void MessageWrapper::set_has_player() { _has_bits_[0] |= 0x00000200u; } inline void MessageWrapper::clear_has_player() { _has_bits_[0] &= ~0x00000200u; } inline void MessageWrapper::clear_player() { if (player_ != NULL) player_->Clear(); clear_has_player(); } inline const ::nm::message::Player& MessageWrapper::_internal_player() const { return *player_; } inline const ::nm::message::Player& MessageWrapper::player() const { const ::nm::message::Player* p = player_; // @@protoc_insertion_point(field_get:nm.message.MessageWrapper.player) return p != NULL ? *p : *reinterpret_cast( &::nm::message::_Player_default_instance_); } inline ::nm::message::Player* MessageWrapper::release_player() { // @@protoc_insertion_point(field_release:nm.message.MessageWrapper.player) clear_has_player(); ::nm::message::Player* temp = player_; player_ = NULL; return temp; } inline ::nm::message::Player* MessageWrapper::mutable_player() { set_has_player(); if (player_ == NULL) { auto* p = CreateMaybeMessage<::nm::message::Player>(GetArenaNoVirtual()); player_ = p; } // @@protoc_insertion_point(field_mutable:nm.message.MessageWrapper.player) return player_; } inline void MessageWrapper::set_allocated_player(::nm::message::Player* player) { ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); if (message_arena == NULL) { delete player_; } if (player) { ::google::protobuf::Arena* submessage_arena = NULL; if (message_arena != submessage_arena) { player = ::google::protobuf::internal::GetOwnedMessage( message_arena, player, submessage_arena); } set_has_player(); } else { clear_has_player(); } player_ = player; // @@protoc_insertion_point(field_set_allocated:nm.message.MessageWrapper.player) } // ------------------------------------------------------------------- // ClearAt // required int32 x = 1; inline bool ClearAt::has_x() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void ClearAt::set_has_x() { _has_bits_[0] |= 0x00000001u; } inline void ClearAt::clear_has_x() { _has_bits_[0] &= ~0x00000001u; } inline void ClearAt::clear_x() { x_ = 0; clear_has_x(); } inline ::google::protobuf::int32 ClearAt::x() const { // @@protoc_insertion_point(field_get:nm.message.ClearAt.x) return x_; } inline void ClearAt::set_x(::google::protobuf::int32 value) { set_has_x(); x_ = value; // @@protoc_insertion_point(field_set:nm.message.ClearAt.x) } // required int32 y = 2; inline bool ClearAt::has_y() const { return (_has_bits_[0] & 0x00000002u) != 0; } inline void ClearAt::set_has_y() { _has_bits_[0] |= 0x00000002u; } inline void ClearAt::clear_has_y() { _has_bits_[0] &= ~0x00000002u; } inline void ClearAt::clear_y() { y_ = 0; clear_has_y(); } inline ::google::protobuf::int32 ClearAt::y() const { // @@protoc_insertion_point(field_get:nm.message.ClearAt.y) return y_; } inline void ClearAt::set_y(::google::protobuf::int32 value) { set_has_y(); y_ = value; // @@protoc_insertion_point(field_set:nm.message.ClearAt.y) } // ------------------------------------------------------------------- // ChunkRequest // required int32 x = 1; inline bool ChunkRequest::has_x() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void ChunkRequest::set_has_x() { _has_bits_[0] |= 0x00000001u; } inline void ChunkRequest::clear_has_x() { _has_bits_[0] &= ~0x00000001u; } inline void ChunkRequest::clear_x() { x_ = 0; clear_has_x(); } inline ::google::protobuf::int32 ChunkRequest::x() const { // @@protoc_insertion_point(field_get:nm.message.ChunkRequest.x) return x_; } inline void ChunkRequest::set_x(::google::protobuf::int32 value) { set_has_x(); x_ = value; // @@protoc_insertion_point(field_set:nm.message.ChunkRequest.x) } // required int32 y = 2; inline bool ChunkRequest::has_y() const { return (_has_bits_[0] & 0x00000002u) != 0; } inline void ChunkRequest::set_has_y() { _has_bits_[0] |= 0x00000002u; } inline void ChunkRequest::clear_has_y() { _has_bits_[0] &= ~0x00000002u; } inline void ChunkRequest::clear_y() { y_ = 0; clear_has_y(); } inline ::google::protobuf::int32 ChunkRequest::y() const { // @@protoc_insertion_point(field_get:nm.message.ChunkRequest.y) return y_; } inline void ChunkRequest::set_y(::google::protobuf::int32 value) { set_has_y(); y_ = value; // @@protoc_insertion_point(field_set:nm.message.ChunkRequest.y) } // ------------------------------------------------------------------- // ChunkBytes // required int32 x = 1; inline bool ChunkBytes::has_x() const { return (_has_bits_[0] & 0x00000002u) != 0; } inline void ChunkBytes::set_has_x() { _has_bits_[0] |= 0x00000002u; } inline void ChunkBytes::clear_has_x() { _has_bits_[0] &= ~0x00000002u; } inline void ChunkBytes::clear_x() { x_ = 0; clear_has_x(); } inline ::google::protobuf::int32 ChunkBytes::x() const { // @@protoc_insertion_point(field_get:nm.message.ChunkBytes.x) return x_; } inline void ChunkBytes::set_x(::google::protobuf::int32 value) { set_has_x(); x_ = value; // @@protoc_insertion_point(field_set:nm.message.ChunkBytes.x) } // required int32 y = 2; inline bool ChunkBytes::has_y() const { return (_has_bits_[0] & 0x00000004u) != 0; } inline void ChunkBytes::set_has_y() { _has_bits_[0] |= 0x00000004u; } inline void ChunkBytes::clear_has_y() { _has_bits_[0] &= ~0x00000004u; } inline void ChunkBytes::clear_y() { y_ = 0; clear_has_y(); } inline ::google::protobuf::int32 ChunkBytes::y() const { // @@protoc_insertion_point(field_get:nm.message.ChunkBytes.y) return y_; } inline void ChunkBytes::set_y(::google::protobuf::int32 value) { set_has_y(); y_ = value; // @@protoc_insertion_point(field_set:nm.message.ChunkBytes.y) } // required bytes data = 3; inline bool ChunkBytes::has_data() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void ChunkBytes::set_has_data() { _has_bits_[0] |= 0x00000001u; } inline void ChunkBytes::clear_has_data() { _has_bits_[0] &= ~0x00000001u; } inline void ChunkBytes::clear_data() { data_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_data(); } inline const ::std::string& ChunkBytes::data() const { // @@protoc_insertion_point(field_get:nm.message.ChunkBytes.data) return data_.GetNoArena(); } inline void ChunkBytes::set_data(const ::std::string& value) { set_has_data(); data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:nm.message.ChunkBytes.data) } #if LANG_CXX11 inline void ChunkBytes::set_data(::std::string&& value) { set_has_data(); data_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:nm.message.ChunkBytes.data) } #endif inline void ChunkBytes::set_data(const char* value) { GOOGLE_DCHECK(value != NULL); set_has_data(); data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:nm.message.ChunkBytes.data) } inline void ChunkBytes::set_data(const void* value, size_t size) { set_has_data(); data_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:nm.message.ChunkBytes.data) } inline ::std::string* ChunkBytes::mutable_data() { set_has_data(); // @@protoc_insertion_point(field_mutable:nm.message.ChunkBytes.data) return data_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* ChunkBytes::release_data() { // @@protoc_insertion_point(field_release:nm.message.ChunkBytes.data) if (!has_data()) { return NULL; } clear_has_data(); return data_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline void ChunkBytes::set_allocated_data(::std::string* data) { if (data != NULL) { set_has_data(); } else { clear_has_data(); } data_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data); // @@protoc_insertion_point(field_set_allocated:nm.message.ChunkBytes.data) } // ------------------------------------------------------------------- // CursorMove // required int32 x = 1; inline bool CursorMove::has_x() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void CursorMove::set_has_x() { _has_bits_[0] |= 0x00000001u; } inline void CursorMove::clear_has_x() { _has_bits_[0] &= ~0x00000001u; } inline void CursorMove::clear_x() { x_ = 0; clear_has_x(); } inline ::google::protobuf::int32 CursorMove::x() const { // @@protoc_insertion_point(field_get:nm.message.CursorMove.x) return x_; } inline void CursorMove::set_x(::google::protobuf::int32 value) { set_has_x(); x_ = value; // @@protoc_insertion_point(field_set:nm.message.CursorMove.x) } // required int32 y = 2; inline bool CursorMove::has_y() const { return (_has_bits_[0] & 0x00000002u) != 0; } inline void CursorMove::set_has_y() { _has_bits_[0] |= 0x00000002u; } inline void CursorMove::clear_has_y() { _has_bits_[0] &= ~0x00000002u; } inline void CursorMove::clear_y() { y_ = 0; clear_has_y(); } inline ::google::protobuf::int32 CursorMove::y() const { // @@protoc_insertion_point(field_get:nm.message.CursorMove.y) return y_; } inline void CursorMove::set_y(::google::protobuf::int32 value) { set_has_y(); y_ = value; // @@protoc_insertion_point(field_set:nm.message.CursorMove.y) } // optional int32 id = 3; inline bool CursorMove::has_id() const { return (_has_bits_[0] & 0x00000004u) != 0; } inline void CursorMove::set_has_id() { _has_bits_[0] |= 0x00000004u; } inline void CursorMove::clear_has_id() { _has_bits_[0] &= ~0x00000004u; } inline void CursorMove::clear_id() { id_ = 0; clear_has_id(); } inline ::google::protobuf::int32 CursorMove::id() const { // @@protoc_insertion_point(field_get:nm.message.CursorMove.id) return id_; } inline void CursorMove::set_id(::google::protobuf::int32 value) { set_has_id(); id_ = value; // @@protoc_insertion_point(field_set:nm.message.CursorMove.id) } // ------------------------------------------------------------------- // SquareOpen // required int32 x = 1; inline bool SquareOpen::has_x() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void SquareOpen::set_has_x() { _has_bits_[0] |= 0x00000001u; } inline void SquareOpen::clear_has_x() { _has_bits_[0] &= ~0x00000001u; } inline void SquareOpen::clear_x() { x_ = 0; clear_has_x(); } inline ::google::protobuf::int32 SquareOpen::x() const { // @@protoc_insertion_point(field_get:nm.message.SquareOpen.x) return x_; } inline void SquareOpen::set_x(::google::protobuf::int32 value) { set_has_x(); x_ = value; // @@protoc_insertion_point(field_set:nm.message.SquareOpen.x) } // required int32 y = 2; inline bool SquareOpen::has_y() const { return (_has_bits_[0] & 0x00000002u) != 0; } inline void SquareOpen::set_has_y() { _has_bits_[0] |= 0x00000002u; } inline void SquareOpen::clear_has_y() { _has_bits_[0] &= ~0x00000002u; } inline void SquareOpen::clear_y() { y_ = 0; clear_has_y(); } inline ::google::protobuf::int32 SquareOpen::y() const { // @@protoc_insertion_point(field_get:nm.message.SquareOpen.y) return y_; } inline void SquareOpen::set_y(::google::protobuf::int32 value) { set_has_y(); y_ = value; // @@protoc_insertion_point(field_set:nm.message.SquareOpen.y) } // optional int32 id = 3; inline bool SquareOpen::has_id() const { return (_has_bits_[0] & 0x00000004u) != 0; } inline void SquareOpen::set_has_id() { _has_bits_[0] |= 0x00000004u; } inline void SquareOpen::clear_has_id() { _has_bits_[0] &= ~0x00000004u; } inline void SquareOpen::clear_id() { id_ = 0; clear_has_id(); } inline ::google::protobuf::int32 SquareOpen::id() const { // @@protoc_insertion_point(field_get:nm.message.SquareOpen.id) return id_; } inline void SquareOpen::set_id(::google::protobuf::int32 value) { set_has_id(); id_ = value; // @@protoc_insertion_point(field_set:nm.message.SquareOpen.id) } // ------------------------------------------------------------------- // SquareFlag // required int32 x = 1; inline bool SquareFlag::has_x() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void SquareFlag::set_has_x() { _has_bits_[0] |= 0x00000001u; } inline void SquareFlag::clear_has_x() { _has_bits_[0] &= ~0x00000001u; } inline void SquareFlag::clear_x() { x_ = 0; clear_has_x(); } inline ::google::protobuf::int32 SquareFlag::x() const { // @@protoc_insertion_point(field_get:nm.message.SquareFlag.x) return x_; } inline void SquareFlag::set_x(::google::protobuf::int32 value) { set_has_x(); x_ = value; // @@protoc_insertion_point(field_set:nm.message.SquareFlag.x) } // required int32 y = 2; inline bool SquareFlag::has_y() const { return (_has_bits_[0] & 0x00000002u) != 0; } inline void SquareFlag::set_has_y() { _has_bits_[0] |= 0x00000002u; } inline void SquareFlag::clear_has_y() { _has_bits_[0] &= ~0x00000002u; } inline void SquareFlag::clear_y() { y_ = 0; clear_has_y(); } inline ::google::protobuf::int32 SquareFlag::y() const { // @@protoc_insertion_point(field_get:nm.message.SquareFlag.y) return y_; } inline void SquareFlag::set_y(::google::protobuf::int32 value) { set_has_y(); y_ = value; // @@protoc_insertion_point(field_set:nm.message.SquareFlag.y) } // optional int32 id = 3; inline bool SquareFlag::has_id() const { return (_has_bits_[0] & 0x00000004u) != 0; } inline void SquareFlag::set_has_id() { _has_bits_[0] |= 0x00000004u; } inline void SquareFlag::clear_has_id() { _has_bits_[0] &= ~0x00000004u; } inline void SquareFlag::clear_id() { id_ = 0; clear_has_id(); } inline ::google::protobuf::int32 SquareFlag::id() const { // @@protoc_insertion_point(field_get:nm.message.SquareFlag.id) return id_; } inline void SquareFlag::set_id(::google::protobuf::int32 value) { set_has_id(); id_ = value; // @@protoc_insertion_point(field_set:nm.message.SquareFlag.id) } // ------------------------------------------------------------------- // Player // required int32 x = 1; inline bool Player::has_x() const { return (_has_bits_[0] & 0x00000002u) != 0; } inline void Player::set_has_x() { _has_bits_[0] |= 0x00000002u; } inline void Player::clear_has_x() { _has_bits_[0] &= ~0x00000002u; } inline void Player::clear_x() { x_ = 0; clear_has_x(); } inline ::google::protobuf::int32 Player::x() const { // @@protoc_insertion_point(field_get:nm.message.Player.x) return x_; } inline void Player::set_x(::google::protobuf::int32 value) { set_has_x(); x_ = value; // @@protoc_insertion_point(field_set:nm.message.Player.x) } // required int32 y = 2; inline bool Player::has_y() const { return (_has_bits_[0] & 0x00000004u) != 0; } inline void Player::set_has_y() { _has_bits_[0] |= 0x00000004u; } inline void Player::clear_has_y() { _has_bits_[0] &= ~0x00000004u; } inline void Player::clear_y() { y_ = 0; clear_has_y(); } inline ::google::protobuf::int32 Player::y() const { // @@protoc_insertion_point(field_get:nm.message.Player.y) return y_; } inline void Player::set_y(::google::protobuf::int32 value) { set_has_y(); y_ = value; // @@protoc_insertion_point(field_set:nm.message.Player.y) } // optional int32 id = 3; inline bool Player::has_id() const { return (_has_bits_[0] & 0x00000008u) != 0; } inline void Player::set_has_id() { _has_bits_[0] |= 0x00000008u; } inline void Player::clear_has_id() { _has_bits_[0] &= ~0x00000008u; } inline void Player::clear_id() { id_ = 0; clear_has_id(); } inline ::google::protobuf::int32 Player::id() const { // @@protoc_insertion_point(field_get:nm.message.Player.id) return id_; } inline void Player::set_id(::google::protobuf::int32 value) { set_has_id(); id_ = value; // @@protoc_insertion_point(field_set:nm.message.Player.id) } // optional string name = 4; inline bool Player::has_name() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void Player::set_has_name() { _has_bits_[0] |= 0x00000001u; } inline void Player::clear_has_name() { _has_bits_[0] &= ~0x00000001u; } inline void Player::clear_name() { name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); clear_has_name(); } inline const ::std::string& Player::name() const { // @@protoc_insertion_point(field_get:nm.message.Player.name) return name_.GetNoArena(); } inline void Player::set_name(const ::std::string& value) { set_has_name(); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); // @@protoc_insertion_point(field_set:nm.message.Player.name) } #if LANG_CXX11 inline void Player::set_name(::std::string&& value) { set_has_name(); name_.SetNoArena( &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); // @@protoc_insertion_point(field_set_rvalue:nm.message.Player.name) } #endif inline void Player::set_name(const char* value) { GOOGLE_DCHECK(value != NULL); set_has_name(); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); // @@protoc_insertion_point(field_set_char:nm.message.Player.name) } inline void Player::set_name(const char* value, size_t size) { set_has_name(); name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(reinterpret_cast(value), size)); // @@protoc_insertion_point(field_set_pointer:nm.message.Player.name) } inline ::std::string* Player::mutable_name() { set_has_name(); // @@protoc_insertion_point(field_mutable:nm.message.Player.name) return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline ::std::string* Player::release_name() { // @@protoc_insertion_point(field_release:nm.message.Player.name) if (!has_name()) { return NULL; } clear_has_name(); return name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); } inline void Player::set_allocated_name(::std::string* name) { if (name != NULL) { set_has_name(); } else { clear_has_name(); } name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); // @@protoc_insertion_point(field_set_allocated:nm.message.Player.name) } // ------------------------------------------------------------------- // Welcome // required int32 version = 1; inline bool Welcome::has_version() const { return (_has_bits_[0] & 0x00000001u) != 0; } inline void Welcome::set_has_version() { _has_bits_[0] |= 0x00000001u; } inline void Welcome::clear_has_version() { _has_bits_[0] &= ~0x00000001u; } inline void Welcome::clear_version() { version_ = 0; clear_has_version(); } inline ::google::protobuf::int32 Welcome::version() const { // @@protoc_insertion_point(field_get:nm.message.Welcome.version) return version_; } inline void Welcome::set_version(::google::protobuf::int32 value) { set_has_version(); version_ = value; // @@protoc_insertion_point(field_set:nm.message.Welcome.version) } // required int32 nPlayers = 2; inline bool Welcome::has_nplayers() const { return (_has_bits_[0] & 0x00000002u) != 0; } inline void Welcome::set_has_nplayers() { _has_bits_[0] |= 0x00000002u; } inline void Welcome::clear_has_nplayers() { _has_bits_[0] &= ~0x00000002u; } inline void Welcome::clear_nplayers() { nplayers_ = 0; clear_has_nplayers(); } inline ::google::protobuf::int32 Welcome::nplayers() const { // @@protoc_insertion_point(field_get:nm.message.Welcome.nPlayers) return nplayers_; } inline void Welcome::set_nplayers(::google::protobuf::int32 value) { set_has_nplayers(); nplayers_ = value; // @@protoc_insertion_point(field_set:nm.message.Welcome.nPlayers) } // repeated .nm.message.Player players = 3; inline int Welcome::players_size() const { return players_.size(); } inline void Welcome::clear_players() { players_.Clear(); } inline ::nm::message::Player* Welcome::mutable_players(int index) { // @@protoc_insertion_point(field_mutable:nm.message.Welcome.players) return players_.Mutable(index); } inline ::google::protobuf::RepeatedPtrField< ::nm::message::Player >* Welcome::mutable_players() { // @@protoc_insertion_point(field_mutable_list:nm.message.Welcome.players) return &players_; } inline const ::nm::message::Player& Welcome::players(int index) const { // @@protoc_insertion_point(field_get:nm.message.Welcome.players) return players_.Get(index); } inline ::nm::message::Player* Welcome::add_players() { // @@protoc_insertion_point(field_add:nm.message.Welcome.players) return players_.Add(); } inline const ::google::protobuf::RepeatedPtrField< ::nm::message::Player >& Welcome::players() const { // @@protoc_insertion_point(field_list:nm.message.Welcome.players) return players_; } #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // ------------------------------------------------------------------- // @@protoc_insertion_point(namespace_scope) } // namespace message } // namespace nm namespace google { namespace protobuf { template <> struct is_proto_enum< ::nm::message::MessageWrapper_Type> : ::std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::nm::message::MessageWrapper_Type>() { return ::nm::message::MessageWrapper_Type_descriptor(); } } // namespace protobuf } // namespace google // @@protoc_insertion_point(global_scope) #endif // PROTOBUF_INCLUDED_ours_2eproto