diff --git a/CAPI/proto/Message2Clients.grpc.pb.cc b/CAPI/proto/Message2Clients.grpc.pb.cc new file mode 100644 index 0000000..6a93ef2 --- /dev/null +++ b/CAPI/proto/Message2Clients.grpc.pb.cc @@ -0,0 +1,525 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: Message2Clients.proto + +#include "Message2Clients.pb.h" +#include "Message2Clients.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace protobuf { + +static const char* AvailableService_method_names[] = { + "/protobuf.AvailableService/AddPlayer", + "/protobuf.AvailableService/Move", + "/protobuf.AvailableService/PickProp", + "/protobuf.AvailableService/UseProp", + "/protobuf.AvailableService/UseSkill", + "/protobuf.AvailableService/SendMessage", + "/protobuf.AvailableService/FixMachine", + "/protobuf.AvailableService/SaveHuman", + "/protobuf.AvailableService/Attack", + "/protobuf.AvailableService/CarryHuman", + "/protobuf.AvailableService/ReleaseHuman", + "/protobuf.AvailableService/HangHuman", +}; + +std::unique_ptr< AvailableService::Stub> AvailableService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { + (void)options; + std::unique_ptr< AvailableService::Stub> stub(new AvailableService::Stub(channel, options)); + return stub; +} + +AvailableService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) + : channel_(channel), rpcmethod_AddPlayer_(AvailableService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::SERVER_STREAMING, channel) + , rpcmethod_Move_(AvailableService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_PickProp_(AvailableService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UseProp_(AvailableService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_UseSkill_(AvailableService_method_names[4], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_SendMessage_(AvailableService_method_names[5], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_FixMachine_(AvailableService_method_names[6], options.suffix_for_stats(),::grpc::internal::RpcMethod::BIDI_STREAMING, channel) + , rpcmethod_SaveHuman_(AvailableService_method_names[7], options.suffix_for_stats(),::grpc::internal::RpcMethod::BIDI_STREAMING, channel) + , rpcmethod_Attack_(AvailableService_method_names[8], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_CarryHuman_(AvailableService_method_names[9], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_ReleaseHuman_(AvailableService_method_names[10], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + , rpcmethod_HangHuman_(AvailableService_method_names[11], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel) + {} + +::grpc::ClientReader< ::protobuf::MessageToClient>* AvailableService::Stub::AddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request) { + return ::grpc::internal::ClientReaderFactory< ::protobuf::MessageToClient>::Create(channel_.get(), rpcmethod_AddPlayer_, context, request); +} + +void AvailableService::Stub::async::AddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg* request, ::grpc::ClientReadReactor< ::protobuf::MessageToClient>* reactor) { + ::grpc::internal::ClientCallbackReaderFactory< ::protobuf::MessageToClient>::Create(stub_->channel_.get(), stub_->rpcmethod_AddPlayer_, context, request, reactor); +} + +::grpc::ClientAsyncReader< ::protobuf::MessageToClient>* AvailableService::Stub::AsyncAddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq, void* tag) { + return ::grpc::internal::ClientAsyncReaderFactory< ::protobuf::MessageToClient>::Create(channel_.get(), cq, rpcmethod_AddPlayer_, context, request, true, tag); +} + +::grpc::ClientAsyncReader< ::protobuf::MessageToClient>* AvailableService::Stub::PrepareAsyncAddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncReaderFactory< ::protobuf::MessageToClient>::Create(channel_.get(), cq, rpcmethod_AddPlayer_, context, request, false, nullptr); +} + +::grpc::Status AvailableService::Stub::Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::protobuf::MoveRes* response) { + return ::grpc::internal::BlockingUnaryCall< ::protobuf::MoveMsg, ::protobuf::MoveRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Move_, context, request, response); +} + +void AvailableService::Stub::async::Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::protobuf::MoveMsg, ::protobuf::MoveRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Move_, context, request, response, std::move(f)); +} + +void AvailableService::Stub::async::Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Move_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::protobuf::MoveRes>* AvailableService::Stub::PrepareAsyncMoveRaw(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::protobuf::MoveRes, ::protobuf::MoveMsg, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Move_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::protobuf::MoveRes>* AvailableService::Stub::AsyncMoveRaw(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncMoveRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status AvailableService::Stub::PickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::protobuf::BoolRes* response) { + return ::grpc::internal::BlockingUnaryCall< ::protobuf::PickMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_PickProp_, context, request, response); +} + +void AvailableService::Stub::async::PickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg* request, ::protobuf::BoolRes* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::protobuf::PickMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PickProp_, context, request, response, std::move(f)); +} + +void AvailableService::Stub::async::PickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_PickProp_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* AvailableService::Stub::PrepareAsyncPickPropRaw(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::protobuf::BoolRes, ::protobuf::PickMsg, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_PickProp_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* AvailableService::Stub::AsyncPickPropRaw(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncPickPropRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status AvailableService::Stub::UseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) { + return ::grpc::internal::BlockingUnaryCall< ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_UseProp_, context, request, response); +} + +void AvailableService::Stub::async::UseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UseProp_, context, request, response, std::move(f)); +} + +void AvailableService::Stub::async::UseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UseProp_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* AvailableService::Stub::PrepareAsyncUsePropRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::protobuf::BoolRes, ::protobuf::IDMsg, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_UseProp_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* AvailableService::Stub::AsyncUsePropRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncUsePropRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status AvailableService::Stub::UseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) { + return ::grpc::internal::BlockingUnaryCall< ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_UseSkill_, context, request, response); +} + +void AvailableService::Stub::async::UseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UseSkill_, context, request, response, std::move(f)); +} + +void AvailableService::Stub::async::UseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_UseSkill_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* AvailableService::Stub::PrepareAsyncUseSkillRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::protobuf::BoolRes, ::protobuf::IDMsg, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_UseSkill_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* AvailableService::Stub::AsyncUseSkillRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncUseSkillRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status AvailableService::Stub::SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::protobuf::BoolRes* response) { + return ::grpc::internal::BlockingUnaryCall< ::protobuf::SendMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SendMessage_, context, request, response); +} + +void AvailableService::Stub::async::SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::protobuf::SendMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SendMessage_, context, request, response, std::move(f)); +} + +void AvailableService::Stub::async::SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SendMessage_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* AvailableService::Stub::PrepareAsyncSendMessageRaw(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::protobuf::BoolRes, ::protobuf::SendMsg, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SendMessage_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* AvailableService::Stub::AsyncSendMessageRaw(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncSendMessageRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::ClientReaderWriter< ::protobuf::IDMsg, ::protobuf::BoolRes>* AvailableService::Stub::FixMachineRaw(::grpc::ClientContext* context) { + return ::grpc::internal::ClientReaderWriterFactory< ::protobuf::IDMsg, ::protobuf::BoolRes>::Create(channel_.get(), rpcmethod_FixMachine_, context); +} + +void AvailableService::Stub::async::FixMachine(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::protobuf::IDMsg,::protobuf::BoolRes>* reactor) { + ::grpc::internal::ClientCallbackReaderWriterFactory< ::protobuf::IDMsg,::protobuf::BoolRes>::Create(stub_->channel_.get(), stub_->rpcmethod_FixMachine_, context, reactor); +} + +::grpc::ClientAsyncReaderWriter< ::protobuf::IDMsg, ::protobuf::BoolRes>* AvailableService::Stub::AsyncFixMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return ::grpc::internal::ClientAsyncReaderWriterFactory< ::protobuf::IDMsg, ::protobuf::BoolRes>::Create(channel_.get(), cq, rpcmethod_FixMachine_, context, true, tag); +} + +::grpc::ClientAsyncReaderWriter< ::protobuf::IDMsg, ::protobuf::BoolRes>* AvailableService::Stub::PrepareAsyncFixMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncReaderWriterFactory< ::protobuf::IDMsg, ::protobuf::BoolRes>::Create(channel_.get(), cq, rpcmethod_FixMachine_, context, false, nullptr); +} + +::grpc::ClientReaderWriter< ::protobuf::IDMsg, ::protobuf::BoolRes>* AvailableService::Stub::SaveHumanRaw(::grpc::ClientContext* context) { + return ::grpc::internal::ClientReaderWriterFactory< ::protobuf::IDMsg, ::protobuf::BoolRes>::Create(channel_.get(), rpcmethod_SaveHuman_, context); +} + +void AvailableService::Stub::async::SaveHuman(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::protobuf::IDMsg,::protobuf::BoolRes>* reactor) { + ::grpc::internal::ClientCallbackReaderWriterFactory< ::protobuf::IDMsg,::protobuf::BoolRes>::Create(stub_->channel_.get(), stub_->rpcmethod_SaveHuman_, context, reactor); +} + +::grpc::ClientAsyncReaderWriter< ::protobuf::IDMsg, ::protobuf::BoolRes>* AvailableService::Stub::AsyncSaveHumanRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return ::grpc::internal::ClientAsyncReaderWriterFactory< ::protobuf::IDMsg, ::protobuf::BoolRes>::Create(channel_.get(), cq, rpcmethod_SaveHuman_, context, true, tag); +} + +::grpc::ClientAsyncReaderWriter< ::protobuf::IDMsg, ::protobuf::BoolRes>* AvailableService::Stub::PrepareAsyncSaveHumanRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncReaderWriterFactory< ::protobuf::IDMsg, ::protobuf::BoolRes>::Create(channel_.get(), cq, rpcmethod_SaveHuman_, context, false, nullptr); +} + +::grpc::Status AvailableService::Stub::Attack(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::protobuf::BoolRes* response) { + return ::grpc::internal::BlockingUnaryCall< ::protobuf::AttackMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Attack_, context, request, response); +} + +void AvailableService::Stub::async::Attack(::grpc::ClientContext* context, const ::protobuf::AttackMsg* request, ::protobuf::BoolRes* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::protobuf::AttackMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Attack_, context, request, response, std::move(f)); +} + +void AvailableService::Stub::async::Attack(::grpc::ClientContext* context, const ::protobuf::AttackMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Attack_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* AvailableService::Stub::PrepareAsyncAttackRaw(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::protobuf::BoolRes, ::protobuf::AttackMsg, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Attack_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* AvailableService::Stub::AsyncAttackRaw(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncAttackRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status AvailableService::Stub::CarryHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) { + return ::grpc::internal::BlockingUnaryCall< ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_CarryHuman_, context, request, response); +} + +void AvailableService::Stub::async::CarryHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CarryHuman_, context, request, response, std::move(f)); +} + +void AvailableService::Stub::async::CarryHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_CarryHuman_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* AvailableService::Stub::PrepareAsyncCarryHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::protobuf::BoolRes, ::protobuf::IDMsg, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_CarryHuman_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* AvailableService::Stub::AsyncCarryHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncCarryHumanRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status AvailableService::Stub::ReleaseHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) { + return ::grpc::internal::BlockingUnaryCall< ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_ReleaseHuman_, context, request, response); +} + +void AvailableService::Stub::async::ReleaseHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ReleaseHuman_, context, request, response, std::move(f)); +} + +void AvailableService::Stub::async::ReleaseHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_ReleaseHuman_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* AvailableService::Stub::PrepareAsyncReleaseHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::protobuf::BoolRes, ::protobuf::IDMsg, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_ReleaseHuman_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* AvailableService::Stub::AsyncReleaseHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncReleaseHumanRaw(context, request, cq); + result->StartCall(); + return result; +} + +::grpc::Status AvailableService::Stub::HangHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) { + return ::grpc::internal::BlockingUnaryCall< ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_HangHuman_, context, request, response); +} + +void AvailableService::Stub::async::HangHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function f) { + ::grpc::internal::CallbackUnaryCall< ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_HangHuman_, context, request, response, std::move(f)); +} + +void AvailableService::Stub::async::HangHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) { + ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_HangHuman_, context, request, response, reactor); +} + +::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* AvailableService::Stub::PrepareAsyncHangHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::protobuf::BoolRes, ::protobuf::IDMsg, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_HangHuman_, context, request); +} + +::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* AvailableService::Stub::AsyncHangHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + auto* result = + this->PrepareAsyncHangHumanRaw(context, request, cq); + result->StartCall(); + return result; +} + +AvailableService::Service::Service() { + AddMethod(new ::grpc::internal::RpcServiceMethod( + AvailableService_method_names[0], + ::grpc::internal::RpcMethod::SERVER_STREAMING, + new ::grpc::internal::ServerStreamingHandler< AvailableService::Service, ::protobuf::PlayerMsg, ::protobuf::MessageToClient>( + [](AvailableService::Service* service, + ::grpc::ServerContext* ctx, + const ::protobuf::PlayerMsg* req, + ::grpc::ServerWriter<::protobuf::MessageToClient>* writer) { + return service->AddPlayer(ctx, req, writer); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AvailableService_method_names[1], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AvailableService::Service, ::protobuf::MoveMsg, ::protobuf::MoveRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AvailableService::Service* service, + ::grpc::ServerContext* ctx, + const ::protobuf::MoveMsg* req, + ::protobuf::MoveRes* resp) { + return service->Move(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AvailableService_method_names[2], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AvailableService::Service, ::protobuf::PickMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AvailableService::Service* service, + ::grpc::ServerContext* ctx, + const ::protobuf::PickMsg* req, + ::protobuf::BoolRes* resp) { + return service->PickProp(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AvailableService_method_names[3], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AvailableService::Service, ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AvailableService::Service* service, + ::grpc::ServerContext* ctx, + const ::protobuf::IDMsg* req, + ::protobuf::BoolRes* resp) { + return service->UseProp(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AvailableService_method_names[4], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AvailableService::Service, ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AvailableService::Service* service, + ::grpc::ServerContext* ctx, + const ::protobuf::IDMsg* req, + ::protobuf::BoolRes* resp) { + return service->UseSkill(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AvailableService_method_names[5], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AvailableService::Service, ::protobuf::SendMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AvailableService::Service* service, + ::grpc::ServerContext* ctx, + const ::protobuf::SendMsg* req, + ::protobuf::BoolRes* resp) { + return service->SendMessage(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AvailableService_method_names[6], + ::grpc::internal::RpcMethod::BIDI_STREAMING, + new ::grpc::internal::BidiStreamingHandler< AvailableService::Service, ::protobuf::IDMsg, ::protobuf::BoolRes>( + [](AvailableService::Service* service, + ::grpc::ServerContext* ctx, + ::grpc::ServerReaderWriter<::protobuf::BoolRes, + ::protobuf::IDMsg>* stream) { + return service->FixMachine(ctx, stream); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AvailableService_method_names[7], + ::grpc::internal::RpcMethod::BIDI_STREAMING, + new ::grpc::internal::BidiStreamingHandler< AvailableService::Service, ::protobuf::IDMsg, ::protobuf::BoolRes>( + [](AvailableService::Service* service, + ::grpc::ServerContext* ctx, + ::grpc::ServerReaderWriter<::protobuf::BoolRes, + ::protobuf::IDMsg>* stream) { + return service->SaveHuman(ctx, stream); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AvailableService_method_names[8], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AvailableService::Service, ::protobuf::AttackMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AvailableService::Service* service, + ::grpc::ServerContext* ctx, + const ::protobuf::AttackMsg* req, + ::protobuf::BoolRes* resp) { + return service->Attack(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AvailableService_method_names[9], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AvailableService::Service, ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AvailableService::Service* service, + ::grpc::ServerContext* ctx, + const ::protobuf::IDMsg* req, + ::protobuf::BoolRes* resp) { + return service->CarryHuman(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AvailableService_method_names[10], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AvailableService::Service, ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AvailableService::Service* service, + ::grpc::ServerContext* ctx, + const ::protobuf::IDMsg* req, + ::protobuf::BoolRes* resp) { + return service->ReleaseHuman(ctx, req, resp); + }, this))); + AddMethod(new ::grpc::internal::RpcServiceMethod( + AvailableService_method_names[11], + ::grpc::internal::RpcMethod::NORMAL_RPC, + new ::grpc::internal::RpcMethodHandler< AvailableService::Service, ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( + [](AvailableService::Service* service, + ::grpc::ServerContext* ctx, + const ::protobuf::IDMsg* req, + ::protobuf::BoolRes* resp) { + return service->HangHuman(ctx, req, resp); + }, this))); +} + +AvailableService::Service::~Service() { +} + +::grpc::Status AvailableService::Service::AddPlayer(::grpc::ServerContext* context, const ::protobuf::PlayerMsg* request, ::grpc::ServerWriter< ::protobuf::MessageToClient>* writer) { + (void) context; + (void) request; + (void) writer; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AvailableService::Service::Move(::grpc::ServerContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AvailableService::Service::PickProp(::grpc::ServerContext* context, const ::protobuf::PickMsg* request, ::protobuf::BoolRes* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AvailableService::Service::UseProp(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AvailableService::Service::UseSkill(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AvailableService::Service::SendMessage(::grpc::ServerContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AvailableService::Service::FixMachine(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::protobuf::BoolRes, ::protobuf::IDMsg>* stream) { + (void) context; + (void) stream; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AvailableService::Service::SaveHuman(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::protobuf::BoolRes, ::protobuf::IDMsg>* stream) { + (void) context; + (void) stream; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AvailableService::Service::Attack(::grpc::ServerContext* context, const ::protobuf::AttackMsg* request, ::protobuf::BoolRes* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AvailableService::Service::CarryHuman(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AvailableService::Service::ReleaseHuman(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + +::grpc::Status AvailableService::Service::HangHuman(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response) { + (void) context; + (void) request; + (void) response; + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); +} + + +} // namespace protobuf + diff --git a/CAPI/proto/Message2Clients.grpc.pb.h b/CAPI/proto/Message2Clients.grpc.pb.h new file mode 100644 index 0000000..41a9a7b --- /dev/null +++ b/CAPI/proto/Message2Clients.grpc.pb.h @@ -0,0 +1,1928 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: Message2Clients.proto +// Original file comments: +// Message2Client +#ifndef GRPC_Message2Clients_2eproto__INCLUDED +#define GRPC_Message2Clients_2eproto__INCLUDED + +#include "Message2Clients.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace protobuf { + +class AvailableService final { + public: + static constexpr char const* service_full_name() { + return "protobuf.AvailableService"; + } + class StubInterface { + public: + virtual ~StubInterface() {} + // 游戏开局调用一次的服务 + std::unique_ptr< ::grpc::ClientReaderInterface< ::protobuf::MessageToClient>> AddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request) { + return std::unique_ptr< ::grpc::ClientReaderInterface< ::protobuf::MessageToClient>>(AddPlayerRaw(context, request)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::protobuf::MessageToClient>> AsyncAddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::protobuf::MessageToClient>>(AsyncAddPlayerRaw(context, request, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::protobuf::MessageToClient>> PrepareAsyncAddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderInterface< ::protobuf::MessageToClient>>(PrepareAsyncAddPlayerRaw(context, request, cq)); + } + // 连接上后等待游戏开始,server会定时通过该服务向所有client发送消息。 + // 游戏过程中玩家执行操作的服务 + virtual ::grpc::Status Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::protobuf::MoveRes* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::MoveRes>> AsyncMove(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::MoveRes>>(AsyncMoveRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::MoveRes>> PrepareAsyncMove(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::MoveRes>>(PrepareAsyncMoveRaw(context, request, cq)); + } + virtual ::grpc::Status PickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::protobuf::BoolRes* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>> AsyncPickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>>(AsyncPickPropRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>> PrepareAsyncPickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>>(PrepareAsyncPickPropRaw(context, request, cq)); + } + virtual ::grpc::Status UseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>> AsyncUseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>>(AsyncUsePropRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>> PrepareAsyncUseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>>(PrepareAsyncUsePropRaw(context, request, cq)); + } + virtual ::grpc::Status UseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>> AsyncUseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>>(AsyncUseSkillRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>> PrepareAsyncUseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>>(PrepareAsyncUseSkillRaw(context, request, cq)); + } + virtual ::grpc::Status SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::protobuf::BoolRes* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>> AsyncSendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>>(AsyncSendMessageRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>> PrepareAsyncSendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>>(PrepareAsyncSendMessageRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientReaderWriterInterface< ::protobuf::IDMsg, ::protobuf::BoolRes>> FixMachine(::grpc::ClientContext* context) { + return std::unique_ptr< ::grpc::ClientReaderWriterInterface< ::protobuf::IDMsg, ::protobuf::BoolRes>>(FixMachineRaw(context)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::protobuf::IDMsg, ::protobuf::BoolRes>> AsyncFixMachine(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::protobuf::IDMsg, ::protobuf::BoolRes>>(AsyncFixMachineRaw(context, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::protobuf::IDMsg, ::protobuf::BoolRes>> PrepareAsyncFixMachine(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::protobuf::IDMsg, ::protobuf::BoolRes>>(PrepareAsyncFixMachineRaw(context, cq)); + } + // 若正常修复且未被打断则返回修复成功,位置错误/被打断则返回修复失败,下同 + std::unique_ptr< ::grpc::ClientReaderWriterInterface< ::protobuf::IDMsg, ::protobuf::BoolRes>> SaveHuman(::grpc::ClientContext* context) { + return std::unique_ptr< ::grpc::ClientReaderWriterInterface< ::protobuf::IDMsg, ::protobuf::BoolRes>>(SaveHumanRaw(context)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::protobuf::IDMsg, ::protobuf::BoolRes>> AsyncSaveHuman(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::protobuf::IDMsg, ::protobuf::BoolRes>>(AsyncSaveHumanRaw(context, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::protobuf::IDMsg, ::protobuf::BoolRes>> PrepareAsyncSaveHuman(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriterInterface< ::protobuf::IDMsg, ::protobuf::BoolRes>>(PrepareAsyncSaveHumanRaw(context, cq)); + } + virtual ::grpc::Status Attack(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::protobuf::BoolRes* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>> AsyncAttack(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>>(AsyncAttackRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>> PrepareAsyncAttack(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>>(PrepareAsyncAttackRaw(context, request, cq)); + } + virtual ::grpc::Status CarryHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>> AsyncCarryHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>>(AsyncCarryHumanRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>> PrepareAsyncCarryHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>>(PrepareAsyncCarryHumanRaw(context, request, cq)); + } + virtual ::grpc::Status ReleaseHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>> AsyncReleaseHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>>(AsyncReleaseHumanRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>> PrepareAsyncReleaseHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>>(PrepareAsyncReleaseHumanRaw(context, request, cq)); + } + virtual ::grpc::Status HangHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) = 0; + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>> AsyncHangHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>>(AsyncHangHumanRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>> PrepareAsyncHangHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>>(PrepareAsyncHangHumanRaw(context, request, cq)); + } + class async_interface { + public: + virtual ~async_interface() {} + // 游戏开局调用一次的服务 + virtual void AddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg* request, ::grpc::ClientReadReactor< ::protobuf::MessageToClient>* reactor) = 0; + // 连接上后等待游戏开始,server会定时通过该服务向所有client发送消息。 + // 游戏过程中玩家执行操作的服务 + virtual void Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response, std::function) = 0; + virtual void Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void PickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg* request, ::protobuf::BoolRes* response, std::function) = 0; + virtual void PickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void UseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function) = 0; + virtual void UseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void UseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function) = 0; + virtual void UseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response, std::function) = 0; + virtual void SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void FixMachine(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::protobuf::IDMsg,::protobuf::BoolRes>* reactor) = 0; + // 若正常修复且未被打断则返回修复成功,位置错误/被打断则返回修复失败,下同 + virtual void SaveHuman(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::protobuf::IDMsg,::protobuf::BoolRes>* reactor) = 0; + virtual void Attack(::grpc::ClientContext* context, const ::protobuf::AttackMsg* request, ::protobuf::BoolRes* response, std::function) = 0; + virtual void Attack(::grpc::ClientContext* context, const ::protobuf::AttackMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void CarryHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function) = 0; + virtual void CarryHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void ReleaseHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function) = 0; + virtual void ReleaseHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0; + virtual void HangHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function) = 0; + virtual void HangHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) = 0; + }; + typedef class async_interface experimental_async_interface; + virtual class async_interface* async() { return nullptr; } + class async_interface* experimental_async() { return async(); } + private: + virtual ::grpc::ClientReaderInterface< ::protobuf::MessageToClient>* AddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::protobuf::MessageToClient>* AsyncAddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq, void* tag) = 0; + virtual ::grpc::ClientAsyncReaderInterface< ::protobuf::MessageToClient>* PrepareAsyncAddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::MoveRes>* AsyncMoveRaw(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::MoveRes>* PrepareAsyncMoveRaw(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>* AsyncPickPropRaw(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>* PrepareAsyncPickPropRaw(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>* AsyncUsePropRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>* PrepareAsyncUsePropRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>* AsyncUseSkillRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>* PrepareAsyncUseSkillRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>* AsyncSendMessageRaw(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>* PrepareAsyncSendMessageRaw(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientReaderWriterInterface< ::protobuf::IDMsg, ::protobuf::BoolRes>* FixMachineRaw(::grpc::ClientContext* context) = 0; + virtual ::grpc::ClientAsyncReaderWriterInterface< ::protobuf::IDMsg, ::protobuf::BoolRes>* AsyncFixMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) = 0; + virtual ::grpc::ClientAsyncReaderWriterInterface< ::protobuf::IDMsg, ::protobuf::BoolRes>* PrepareAsyncFixMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientReaderWriterInterface< ::protobuf::IDMsg, ::protobuf::BoolRes>* SaveHumanRaw(::grpc::ClientContext* context) = 0; + virtual ::grpc::ClientAsyncReaderWriterInterface< ::protobuf::IDMsg, ::protobuf::BoolRes>* AsyncSaveHumanRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) = 0; + virtual ::grpc::ClientAsyncReaderWriterInterface< ::protobuf::IDMsg, ::protobuf::BoolRes>* PrepareAsyncSaveHumanRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>* AsyncAttackRaw(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>* PrepareAsyncAttackRaw(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>* AsyncCarryHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>* PrepareAsyncCarryHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>* AsyncReleaseHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>* PrepareAsyncReleaseHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>* AsyncHangHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0; + virtual ::grpc::ClientAsyncResponseReaderInterface< ::protobuf::BoolRes>* PrepareAsyncHangHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) = 0; + }; + class Stub final : public StubInterface { + public: + Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + std::unique_ptr< ::grpc::ClientReader< ::protobuf::MessageToClient>> AddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request) { + return std::unique_ptr< ::grpc::ClientReader< ::protobuf::MessageToClient>>(AddPlayerRaw(context, request)); + } + std::unique_ptr< ::grpc::ClientAsyncReader< ::protobuf::MessageToClient>> AsyncAddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::protobuf::MessageToClient>>(AsyncAddPlayerRaw(context, request, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReader< ::protobuf::MessageToClient>> PrepareAsyncAddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReader< ::protobuf::MessageToClient>>(PrepareAsyncAddPlayerRaw(context, request, cq)); + } + ::grpc::Status Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::protobuf::MoveRes* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::MoveRes>> AsyncMove(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::MoveRes>>(AsyncMoveRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::MoveRes>> PrepareAsyncMove(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::MoveRes>>(PrepareAsyncMoveRaw(context, request, cq)); + } + ::grpc::Status PickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::protobuf::BoolRes* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>> AsyncPickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>>(AsyncPickPropRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>> PrepareAsyncPickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>>(PrepareAsyncPickPropRaw(context, request, cq)); + } + ::grpc::Status UseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>> AsyncUseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>>(AsyncUsePropRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>> PrepareAsyncUseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>>(PrepareAsyncUsePropRaw(context, request, cq)); + } + ::grpc::Status UseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>> AsyncUseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>>(AsyncUseSkillRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>> PrepareAsyncUseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>>(PrepareAsyncUseSkillRaw(context, request, cq)); + } + ::grpc::Status SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::protobuf::BoolRes* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>> AsyncSendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>>(AsyncSendMessageRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>> PrepareAsyncSendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>>(PrepareAsyncSendMessageRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientReaderWriter< ::protobuf::IDMsg, ::protobuf::BoolRes>> FixMachine(::grpc::ClientContext* context) { + return std::unique_ptr< ::grpc::ClientReaderWriter< ::protobuf::IDMsg, ::protobuf::BoolRes>>(FixMachineRaw(context)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::protobuf::IDMsg, ::protobuf::BoolRes>> AsyncFixMachine(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::protobuf::IDMsg, ::protobuf::BoolRes>>(AsyncFixMachineRaw(context, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::protobuf::IDMsg, ::protobuf::BoolRes>> PrepareAsyncFixMachine(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::protobuf::IDMsg, ::protobuf::BoolRes>>(PrepareAsyncFixMachineRaw(context, cq)); + } + std::unique_ptr< ::grpc::ClientReaderWriter< ::protobuf::IDMsg, ::protobuf::BoolRes>> SaveHuman(::grpc::ClientContext* context) { + return std::unique_ptr< ::grpc::ClientReaderWriter< ::protobuf::IDMsg, ::protobuf::BoolRes>>(SaveHumanRaw(context)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::protobuf::IDMsg, ::protobuf::BoolRes>> AsyncSaveHuman(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::protobuf::IDMsg, ::protobuf::BoolRes>>(AsyncSaveHumanRaw(context, cq, tag)); + } + std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::protobuf::IDMsg, ::protobuf::BoolRes>> PrepareAsyncSaveHuman(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncReaderWriter< ::protobuf::IDMsg, ::protobuf::BoolRes>>(PrepareAsyncSaveHumanRaw(context, cq)); + } + ::grpc::Status Attack(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::protobuf::BoolRes* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>> AsyncAttack(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>>(AsyncAttackRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>> PrepareAsyncAttack(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>>(PrepareAsyncAttackRaw(context, request, cq)); + } + ::grpc::Status CarryHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>> AsyncCarryHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>>(AsyncCarryHumanRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>> PrepareAsyncCarryHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>>(PrepareAsyncCarryHumanRaw(context, request, cq)); + } + ::grpc::Status ReleaseHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>> AsyncReleaseHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>>(AsyncReleaseHumanRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>> PrepareAsyncReleaseHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>>(PrepareAsyncReleaseHumanRaw(context, request, cq)); + } + ::grpc::Status HangHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::protobuf::BoolRes* response) override; + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>> AsyncHangHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>>(AsyncHangHumanRaw(context, request, cq)); + } + std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>> PrepareAsyncHangHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) { + return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>>(PrepareAsyncHangHumanRaw(context, request, cq)); + } + class async final : + public StubInterface::async_interface { + public: + void AddPlayer(::grpc::ClientContext* context, const ::protobuf::PlayerMsg* request, ::grpc::ClientReadReactor< ::protobuf::MessageToClient>* reactor) override; + void Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response, std::function) override; + void Move(::grpc::ClientContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response, ::grpc::ClientUnaryReactor* reactor) override; + void PickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg* request, ::protobuf::BoolRes* response, std::function) override; + void PickProp(::grpc::ClientContext* context, const ::protobuf::PickMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override; + void UseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function) override; + void UseProp(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override; + void UseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function) override; + void UseSkill(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override; + void SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response, std::function) override; + void SendMessage(::grpc::ClientContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override; + void FixMachine(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::protobuf::IDMsg,::protobuf::BoolRes>* reactor) override; + void SaveHuman(::grpc::ClientContext* context, ::grpc::ClientBidiReactor< ::protobuf::IDMsg,::protobuf::BoolRes>* reactor) override; + void Attack(::grpc::ClientContext* context, const ::protobuf::AttackMsg* request, ::protobuf::BoolRes* response, std::function) override; + void Attack(::grpc::ClientContext* context, const ::protobuf::AttackMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override; + void CarryHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function) override; + void CarryHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override; + void ReleaseHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function) override; + void ReleaseHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override; + void HangHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function) override; + void HangHuman(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, ::grpc::ClientUnaryReactor* reactor) override; + private: + friend class Stub; + explicit async(Stub* stub): stub_(stub) { } + Stub* stub() { return stub_; } + Stub* stub_; + }; + class async* async() override { return &async_stub_; } + + private: + std::shared_ptr< ::grpc::ChannelInterface> channel_; + class async async_stub_{this}; + ::grpc::ClientReader< ::protobuf::MessageToClient>* AddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request) override; + ::grpc::ClientAsyncReader< ::protobuf::MessageToClient>* AsyncAddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq, void* tag) override; + ::grpc::ClientAsyncReader< ::protobuf::MessageToClient>* PrepareAsyncAddPlayerRaw(::grpc::ClientContext* context, const ::protobuf::PlayerMsg& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::protobuf::MoveRes>* AsyncMoveRaw(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::protobuf::MoveRes>* PrepareAsyncMoveRaw(::grpc::ClientContext* context, const ::protobuf::MoveMsg& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* AsyncPickPropRaw(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* PrepareAsyncPickPropRaw(::grpc::ClientContext* context, const ::protobuf::PickMsg& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* AsyncUsePropRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* PrepareAsyncUsePropRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* AsyncUseSkillRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* PrepareAsyncUseSkillRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* AsyncSendMessageRaw(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* PrepareAsyncSendMessageRaw(::grpc::ClientContext* context, const ::protobuf::SendMsg& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientReaderWriter< ::protobuf::IDMsg, ::protobuf::BoolRes>* FixMachineRaw(::grpc::ClientContext* context) override; + ::grpc::ClientAsyncReaderWriter< ::protobuf::IDMsg, ::protobuf::BoolRes>* AsyncFixMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) override; + ::grpc::ClientAsyncReaderWriter< ::protobuf::IDMsg, ::protobuf::BoolRes>* PrepareAsyncFixMachineRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientReaderWriter< ::protobuf::IDMsg, ::protobuf::BoolRes>* SaveHumanRaw(::grpc::ClientContext* context) override; + ::grpc::ClientAsyncReaderWriter< ::protobuf::IDMsg, ::protobuf::BoolRes>* AsyncSaveHumanRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq, void* tag) override; + ::grpc::ClientAsyncReaderWriter< ::protobuf::IDMsg, ::protobuf::BoolRes>* PrepareAsyncSaveHumanRaw(::grpc::ClientContext* context, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* AsyncAttackRaw(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* PrepareAsyncAttackRaw(::grpc::ClientContext* context, const ::protobuf::AttackMsg& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* AsyncCarryHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* PrepareAsyncCarryHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* AsyncReleaseHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* PrepareAsyncReleaseHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* AsyncHangHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override; + ::grpc::ClientAsyncResponseReader< ::protobuf::BoolRes>* PrepareAsyncHangHumanRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) override; + const ::grpc::internal::RpcMethod rpcmethod_AddPlayer_; + const ::grpc::internal::RpcMethod rpcmethod_Move_; + const ::grpc::internal::RpcMethod rpcmethod_PickProp_; + const ::grpc::internal::RpcMethod rpcmethod_UseProp_; + const ::grpc::internal::RpcMethod rpcmethod_UseSkill_; + const ::grpc::internal::RpcMethod rpcmethod_SendMessage_; + const ::grpc::internal::RpcMethod rpcmethod_FixMachine_; + const ::grpc::internal::RpcMethod rpcmethod_SaveHuman_; + const ::grpc::internal::RpcMethod rpcmethod_Attack_; + const ::grpc::internal::RpcMethod rpcmethod_CarryHuman_; + const ::grpc::internal::RpcMethod rpcmethod_ReleaseHuman_; + const ::grpc::internal::RpcMethod rpcmethod_HangHuman_; + }; + static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); + + class Service : public ::grpc::Service { + public: + Service(); + virtual ~Service(); + // 游戏开局调用一次的服务 + virtual ::grpc::Status AddPlayer(::grpc::ServerContext* context, const ::protobuf::PlayerMsg* request, ::grpc::ServerWriter< ::protobuf::MessageToClient>* writer); + // 连接上后等待游戏开始,server会定时通过该服务向所有client发送消息。 + // 游戏过程中玩家执行操作的服务 + virtual ::grpc::Status Move(::grpc::ServerContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response); + virtual ::grpc::Status PickProp(::grpc::ServerContext* context, const ::protobuf::PickMsg* request, ::protobuf::BoolRes* response); + virtual ::grpc::Status UseProp(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response); + virtual ::grpc::Status UseSkill(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response); + virtual ::grpc::Status SendMessage(::grpc::ServerContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response); + virtual ::grpc::Status FixMachine(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::protobuf::BoolRes, ::protobuf::IDMsg>* stream); + // 若正常修复且未被打断则返回修复成功,位置错误/被打断则返回修复失败,下同 + virtual ::grpc::Status SaveHuman(::grpc::ServerContext* context, ::grpc::ServerReaderWriter< ::protobuf::BoolRes, ::protobuf::IDMsg>* stream); + virtual ::grpc::Status Attack(::grpc::ServerContext* context, const ::protobuf::AttackMsg* request, ::protobuf::BoolRes* response); + virtual ::grpc::Status CarryHuman(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response); + virtual ::grpc::Status ReleaseHuman(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response); + virtual ::grpc::Status HangHuman(::grpc::ServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response); + }; + template + class WithAsyncMethod_AddPlayer : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_AddPlayer() { + ::grpc::Service::MarkMethodAsync(0); + } + ~WithAsyncMethod_AddPlayer() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddPlayer(::grpc::ServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/, ::grpc::ServerWriter< ::protobuf::MessageToClient>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestAddPlayer(::grpc::ServerContext* context, ::protobuf::PlayerMsg* request, ::grpc::ServerAsyncWriter< ::protobuf::MessageToClient>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncServerStreaming(0, context, request, writer, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_Move : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Move() { + ::grpc::Service::MarkMethodAsync(1); + } + ~WithAsyncMethod_Move() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestMove(::grpc::ServerContext* context, ::protobuf::MoveMsg* request, ::grpc::ServerAsyncResponseWriter< ::protobuf::MoveRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_PickProp : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_PickProp() { + ::grpc::Service::MarkMethodAsync(2); + } + ~WithAsyncMethod_PickProp() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PickProp(::grpc::ServerContext* /*context*/, const ::protobuf::PickMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestPickProp(::grpc::ServerContext* context, ::protobuf::PickMsg* request, ::grpc::ServerAsyncResponseWriter< ::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_UseProp : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_UseProp() { + ::grpc::Service::MarkMethodAsync(3); + } + ~WithAsyncMethod_UseProp() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UseProp(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUseProp(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter< ::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_UseSkill : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_UseSkill() { + ::grpc::Service::MarkMethodAsync(4); + } + ~WithAsyncMethod_UseSkill() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UseSkill(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUseSkill(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter< ::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_SendMessage : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_SendMessage() { + ::grpc::Service::MarkMethodAsync(5); + } + ~WithAsyncMethod_SendMessage() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SendMessage(::grpc::ServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSendMessage(::grpc::ServerContext* context, ::protobuf::SendMsg* request, ::grpc::ServerAsyncResponseWriter< ::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_FixMachine : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_FixMachine() { + ::grpc::Service::MarkMethodAsync(6); + } + ~WithAsyncMethod_FixMachine() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status FixMachine(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::protobuf::BoolRes, ::protobuf::IDMsg>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestFixMachine(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter< ::protobuf::BoolRes, ::protobuf::IDMsg>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncBidiStreaming(6, context, stream, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_SaveHuman : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_SaveHuman() { + ::grpc::Service::MarkMethodAsync(7); + } + ~WithAsyncMethod_SaveHuman() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SaveHuman(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::protobuf::BoolRes, ::protobuf::IDMsg>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSaveHuman(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter< ::protobuf::BoolRes, ::protobuf::IDMsg>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncBidiStreaming(7, context, stream, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_Attack : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_Attack() { + ::grpc::Service::MarkMethodAsync(8); + } + ~WithAsyncMethod_Attack() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Attack(::grpc::ServerContext* /*context*/, const ::protobuf::AttackMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestAttack(::grpc::ServerContext* context, ::protobuf::AttackMsg* request, ::grpc::ServerAsyncResponseWriter< ::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_CarryHuman : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_CarryHuman() { + ::grpc::Service::MarkMethodAsync(9); + } + ~WithAsyncMethod_CarryHuman() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CarryHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCarryHuman(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter< ::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_ReleaseHuman : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_ReleaseHuman() { + ::grpc::Service::MarkMethodAsync(10); + } + ~WithAsyncMethod_ReleaseHuman() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ReleaseHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestReleaseHuman(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter< ::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithAsyncMethod_HangHuman : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithAsyncMethod_HangHuman() { + ::grpc::Service::MarkMethodAsync(11); + } + ~WithAsyncMethod_HangHuman() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status HangHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestHangHuman(::grpc::ServerContext* context, ::protobuf::IDMsg* request, ::grpc::ServerAsyncResponseWriter< ::protobuf::BoolRes>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); + } + }; + typedef WithAsyncMethod_AddPlayer > > > > > > > > > > > AsyncService; + template + class WithCallbackMethod_AddPlayer : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_AddPlayer() { + ::grpc::Service::MarkMethodCallback(0, + new ::grpc::internal::CallbackServerStreamingHandler< ::protobuf::PlayerMsg, ::protobuf::MessageToClient>( + [this]( + ::grpc::CallbackServerContext* context, const ::protobuf::PlayerMsg* request) { return this->AddPlayer(context, request); })); + } + ~WithCallbackMethod_AddPlayer() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddPlayer(::grpc::ServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/, ::grpc::ServerWriter< ::protobuf::MessageToClient>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerWriteReactor< ::protobuf::MessageToClient>* AddPlayer( + ::grpc::CallbackServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/) { return nullptr; } + }; + template + class WithCallbackMethod_Move : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Move() { + ::grpc::Service::MarkMethodCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::protobuf::MoveMsg, ::protobuf::MoveRes>( + [this]( + ::grpc::CallbackServerContext* context, const ::protobuf::MoveMsg* request, ::protobuf::MoveRes* response) { return this->Move(context, request, response); }));} + void SetMessageAllocatorFor_Move( + ::grpc::MessageAllocator< ::protobuf::MoveMsg, ::protobuf::MoveRes>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1); + static_cast<::grpc::internal::CallbackUnaryHandler< ::protobuf::MoveMsg, ::protobuf::MoveRes>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Move() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Move( + ::grpc::CallbackServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_PickProp : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_PickProp() { + ::grpc::Service::MarkMethodCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::protobuf::PickMsg, ::protobuf::BoolRes>( + [this]( + ::grpc::CallbackServerContext* context, const ::protobuf::PickMsg* request, ::protobuf::BoolRes* response) { return this->PickProp(context, request, response); }));} + void SetMessageAllocatorFor_PickProp( + ::grpc::MessageAllocator< ::protobuf::PickMsg, ::protobuf::BoolRes>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2); + static_cast<::grpc::internal::CallbackUnaryHandler< ::protobuf::PickMsg, ::protobuf::BoolRes>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_PickProp() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PickProp(::grpc::ServerContext* /*context*/, const ::protobuf::PickMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* PickProp( + ::grpc::CallbackServerContext* /*context*/, const ::protobuf::PickMsg* /*request*/, ::protobuf::BoolRes* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_UseProp : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_UseProp() { + ::grpc::Service::MarkMethodCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::protobuf::IDMsg, ::protobuf::BoolRes>( + [this]( + ::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response) { return this->UseProp(context, request, response); }));} + void SetMessageAllocatorFor_UseProp( + ::grpc::MessageAllocator< ::protobuf::IDMsg, ::protobuf::BoolRes>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(3); + static_cast<::grpc::internal::CallbackUnaryHandler< ::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_UseProp() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UseProp(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* UseProp( + ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_UseSkill : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_UseSkill() { + ::grpc::Service::MarkMethodCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::protobuf::IDMsg, ::protobuf::BoolRes>( + [this]( + ::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response) { return this->UseSkill(context, request, response); }));} + void SetMessageAllocatorFor_UseSkill( + ::grpc::MessageAllocator< ::protobuf::IDMsg, ::protobuf::BoolRes>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(4); + static_cast<::grpc::internal::CallbackUnaryHandler< ::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_UseSkill() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UseSkill(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* UseSkill( + ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_SendMessage : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_SendMessage() { + ::grpc::Service::MarkMethodCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::protobuf::SendMsg, ::protobuf::BoolRes>( + [this]( + ::grpc::CallbackServerContext* context, const ::protobuf::SendMsg* request, ::protobuf::BoolRes* response) { return this->SendMessage(context, request, response); }));} + void SetMessageAllocatorFor_SendMessage( + ::grpc::MessageAllocator< ::protobuf::SendMsg, ::protobuf::BoolRes>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(5); + static_cast<::grpc::internal::CallbackUnaryHandler< ::protobuf::SendMsg, ::protobuf::BoolRes>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_SendMessage() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SendMessage(::grpc::ServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* SendMessage( + ::grpc::CallbackServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_FixMachine : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_FixMachine() { + ::grpc::Service::MarkMethodCallback(6, + new ::grpc::internal::CallbackBidiHandler< ::protobuf::IDMsg, ::protobuf::BoolRes>( + [this]( + ::grpc::CallbackServerContext* context) { return this->FixMachine(context); })); + } + ~WithCallbackMethod_FixMachine() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status FixMachine(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::protobuf::BoolRes, ::protobuf::IDMsg>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerBidiReactor< ::protobuf::IDMsg, ::protobuf::BoolRes>* FixMachine( + ::grpc::CallbackServerContext* /*context*/) + { return nullptr; } + }; + template + class WithCallbackMethod_SaveHuman : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_SaveHuman() { + ::grpc::Service::MarkMethodCallback(7, + new ::grpc::internal::CallbackBidiHandler< ::protobuf::IDMsg, ::protobuf::BoolRes>( + [this]( + ::grpc::CallbackServerContext* context) { return this->SaveHuman(context); })); + } + ~WithCallbackMethod_SaveHuman() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SaveHuman(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::protobuf::BoolRes, ::protobuf::IDMsg>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerBidiReactor< ::protobuf::IDMsg, ::protobuf::BoolRes>* SaveHuman( + ::grpc::CallbackServerContext* /*context*/) + { return nullptr; } + }; + template + class WithCallbackMethod_Attack : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_Attack() { + ::grpc::Service::MarkMethodCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::protobuf::AttackMsg, ::protobuf::BoolRes>( + [this]( + ::grpc::CallbackServerContext* context, const ::protobuf::AttackMsg* request, ::protobuf::BoolRes* response) { return this->Attack(context, request, response); }));} + void SetMessageAllocatorFor_Attack( + ::grpc::MessageAllocator< ::protobuf::AttackMsg, ::protobuf::BoolRes>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(8); + static_cast<::grpc::internal::CallbackUnaryHandler< ::protobuf::AttackMsg, ::protobuf::BoolRes>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_Attack() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Attack(::grpc::ServerContext* /*context*/, const ::protobuf::AttackMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Attack( + ::grpc::CallbackServerContext* /*context*/, const ::protobuf::AttackMsg* /*request*/, ::protobuf::BoolRes* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_CarryHuman : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_CarryHuman() { + ::grpc::Service::MarkMethodCallback(9, + new ::grpc::internal::CallbackUnaryHandler< ::protobuf::IDMsg, ::protobuf::BoolRes>( + [this]( + ::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response) { return this->CarryHuman(context, request, response); }));} + void SetMessageAllocatorFor_CarryHuman( + ::grpc::MessageAllocator< ::protobuf::IDMsg, ::protobuf::BoolRes>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(9); + static_cast<::grpc::internal::CallbackUnaryHandler< ::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_CarryHuman() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CarryHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* CarryHuman( + ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_ReleaseHuman : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_ReleaseHuman() { + ::grpc::Service::MarkMethodCallback(10, + new ::grpc::internal::CallbackUnaryHandler< ::protobuf::IDMsg, ::protobuf::BoolRes>( + [this]( + ::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response) { return this->ReleaseHuman(context, request, response); }));} + void SetMessageAllocatorFor_ReleaseHuman( + ::grpc::MessageAllocator< ::protobuf::IDMsg, ::protobuf::BoolRes>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(10); + static_cast<::grpc::internal::CallbackUnaryHandler< ::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_ReleaseHuman() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ReleaseHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ReleaseHuman( + ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) { return nullptr; } + }; + template + class WithCallbackMethod_HangHuman : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithCallbackMethod_HangHuman() { + ::grpc::Service::MarkMethodCallback(11, + new ::grpc::internal::CallbackUnaryHandler< ::protobuf::IDMsg, ::protobuf::BoolRes>( + [this]( + ::grpc::CallbackServerContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response) { return this->HangHuman(context, request, response); }));} + void SetMessageAllocatorFor_HangHuman( + ::grpc::MessageAllocator< ::protobuf::IDMsg, ::protobuf::BoolRes>* allocator) { + ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(11); + static_cast<::grpc::internal::CallbackUnaryHandler< ::protobuf::IDMsg, ::protobuf::BoolRes>*>(handler) + ->SetMessageAllocator(allocator); + } + ~WithCallbackMethod_HangHuman() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status HangHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* HangHuman( + ::grpc::CallbackServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) { return nullptr; } + }; + typedef WithCallbackMethod_AddPlayer > > > > > > > > > > > CallbackService; + typedef CallbackService ExperimentalCallbackService; + template + class WithGenericMethod_AddPlayer : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_AddPlayer() { + ::grpc::Service::MarkMethodGeneric(0); + } + ~WithGenericMethod_AddPlayer() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddPlayer(::grpc::ServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/, ::grpc::ServerWriter< ::protobuf::MessageToClient>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_Move : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Move() { + ::grpc::Service::MarkMethodGeneric(1); + } + ~WithGenericMethod_Move() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_PickProp : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_PickProp() { + ::grpc::Service::MarkMethodGeneric(2); + } + ~WithGenericMethod_PickProp() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PickProp(::grpc::ServerContext* /*context*/, const ::protobuf::PickMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_UseProp : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_UseProp() { + ::grpc::Service::MarkMethodGeneric(3); + } + ~WithGenericMethod_UseProp() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UseProp(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_UseSkill : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_UseSkill() { + ::grpc::Service::MarkMethodGeneric(4); + } + ~WithGenericMethod_UseSkill() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UseSkill(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_SendMessage : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_SendMessage() { + ::grpc::Service::MarkMethodGeneric(5); + } + ~WithGenericMethod_SendMessage() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SendMessage(::grpc::ServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_FixMachine : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_FixMachine() { + ::grpc::Service::MarkMethodGeneric(6); + } + ~WithGenericMethod_FixMachine() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status FixMachine(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::protobuf::BoolRes, ::protobuf::IDMsg>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_SaveHuman : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_SaveHuman() { + ::grpc::Service::MarkMethodGeneric(7); + } + ~WithGenericMethod_SaveHuman() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SaveHuman(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::protobuf::BoolRes, ::protobuf::IDMsg>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_Attack : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_Attack() { + ::grpc::Service::MarkMethodGeneric(8); + } + ~WithGenericMethod_Attack() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Attack(::grpc::ServerContext* /*context*/, const ::protobuf::AttackMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_CarryHuman : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_CarryHuman() { + ::grpc::Service::MarkMethodGeneric(9); + } + ~WithGenericMethod_CarryHuman() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CarryHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_ReleaseHuman : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_ReleaseHuman() { + ::grpc::Service::MarkMethodGeneric(10); + } + ~WithGenericMethod_ReleaseHuman() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ReleaseHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithGenericMethod_HangHuman : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithGenericMethod_HangHuman() { + ::grpc::Service::MarkMethodGeneric(11); + } + ~WithGenericMethod_HangHuman() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status HangHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + }; + template + class WithRawMethod_AddPlayer : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_AddPlayer() { + ::grpc::Service::MarkMethodRaw(0); + } + ~WithRawMethod_AddPlayer() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddPlayer(::grpc::ServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/, ::grpc::ServerWriter< ::protobuf::MessageToClient>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestAddPlayer(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncWriter< ::grpc::ByteBuffer>* writer, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncServerStreaming(0, context, request, writer, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_Move : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Move() { + ::grpc::Service::MarkMethodRaw(1); + } + ~WithRawMethod_Move() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestMove(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_PickProp : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_PickProp() { + ::grpc::Service::MarkMethodRaw(2); + } + ~WithRawMethod_PickProp() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PickProp(::grpc::ServerContext* /*context*/, const ::protobuf::PickMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestPickProp(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_UseProp : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_UseProp() { + ::grpc::Service::MarkMethodRaw(3); + } + ~WithRawMethod_UseProp() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UseProp(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUseProp(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_UseSkill : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_UseSkill() { + ::grpc::Service::MarkMethodRaw(4); + } + ~WithRawMethod_UseSkill() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UseSkill(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestUseSkill(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_SendMessage : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_SendMessage() { + ::grpc::Service::MarkMethodRaw(5); + } + ~WithRawMethod_SendMessage() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SendMessage(::grpc::ServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSendMessage(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_FixMachine : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_FixMachine() { + ::grpc::Service::MarkMethodRaw(6); + } + ~WithRawMethod_FixMachine() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status FixMachine(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::protobuf::BoolRes, ::protobuf::IDMsg>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestFixMachine(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncBidiStreaming(6, context, stream, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_SaveHuman : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_SaveHuman() { + ::grpc::Service::MarkMethodRaw(7); + } + ~WithRawMethod_SaveHuman() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SaveHuman(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::protobuf::BoolRes, ::protobuf::IDMsg>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestSaveHuman(::grpc::ServerContext* context, ::grpc::ServerAsyncReaderWriter< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* stream, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncBidiStreaming(7, context, stream, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_Attack : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_Attack() { + ::grpc::Service::MarkMethodRaw(8); + } + ~WithRawMethod_Attack() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Attack(::grpc::ServerContext* /*context*/, const ::protobuf::AttackMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestAttack(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_CarryHuman : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_CarryHuman() { + ::grpc::Service::MarkMethodRaw(9); + } + ~WithRawMethod_CarryHuman() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CarryHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestCarryHuman(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_ReleaseHuman : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_ReleaseHuman() { + ::grpc::Service::MarkMethodRaw(10); + } + ~WithRawMethod_ReleaseHuman() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ReleaseHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestReleaseHuman(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawMethod_HangHuman : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawMethod_HangHuman() { + ::grpc::Service::MarkMethodRaw(11); + } + ~WithRawMethod_HangHuman() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status HangHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + void RequestHangHuman(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { + ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); + } + }; + template + class WithRawCallbackMethod_AddPlayer : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_AddPlayer() { + ::grpc::Service::MarkMethodRawCallback(0, + new ::grpc::internal::CallbackServerStreamingHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const::grpc::ByteBuffer* request) { return this->AddPlayer(context, request); })); + } + ~WithRawCallbackMethod_AddPlayer() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status AddPlayer(::grpc::ServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/, ::grpc::ServerWriter< ::protobuf::MessageToClient>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerWriteReactor< ::grpc::ByteBuffer>* AddPlayer( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_Move : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Move() { + ::grpc::Service::MarkMethodRawCallback(1, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Move(context, request, response); })); + } + ~WithRawCallbackMethod_Move() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Move( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_PickProp : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_PickProp() { + ::grpc::Service::MarkMethodRawCallback(2, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->PickProp(context, request, response); })); + } + ~WithRawCallbackMethod_PickProp() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status PickProp(::grpc::ServerContext* /*context*/, const ::protobuf::PickMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* PickProp( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_UseProp : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_UseProp() { + ::grpc::Service::MarkMethodRawCallback(3, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UseProp(context, request, response); })); + } + ~WithRawCallbackMethod_UseProp() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UseProp(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* UseProp( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_UseSkill : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_UseSkill() { + ::grpc::Service::MarkMethodRawCallback(4, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->UseSkill(context, request, response); })); + } + ~WithRawCallbackMethod_UseSkill() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status UseSkill(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* UseSkill( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_SendMessage : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_SendMessage() { + ::grpc::Service::MarkMethodRawCallback(5, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->SendMessage(context, request, response); })); + } + ~WithRawCallbackMethod_SendMessage() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SendMessage(::grpc::ServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* SendMessage( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_FixMachine : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_FixMachine() { + ::grpc::Service::MarkMethodRawCallback(6, + new ::grpc::internal::CallbackBidiHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context) { return this->FixMachine(context); })); + } + ~WithRawCallbackMethod_FixMachine() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status FixMachine(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::protobuf::BoolRes, ::protobuf::IDMsg>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* FixMachine( + ::grpc::CallbackServerContext* /*context*/) + { return nullptr; } + }; + template + class WithRawCallbackMethod_SaveHuman : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_SaveHuman() { + ::grpc::Service::MarkMethodRawCallback(7, + new ::grpc::internal::CallbackBidiHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context) { return this->SaveHuman(context); })); + } + ~WithRawCallbackMethod_SaveHuman() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status SaveHuman(::grpc::ServerContext* /*context*/, ::grpc::ServerReaderWriter< ::protobuf::BoolRes, ::protobuf::IDMsg>* /*stream*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerBidiReactor< ::grpc::ByteBuffer, ::grpc::ByteBuffer>* SaveHuman( + ::grpc::CallbackServerContext* /*context*/) + { return nullptr; } + }; + template + class WithRawCallbackMethod_Attack : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_Attack() { + ::grpc::Service::MarkMethodRawCallback(8, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->Attack(context, request, response); })); + } + ~WithRawCallbackMethod_Attack() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status Attack(::grpc::ServerContext* /*context*/, const ::protobuf::AttackMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* Attack( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_CarryHuman : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_CarryHuman() { + ::grpc::Service::MarkMethodRawCallback(9, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->CarryHuman(context, request, response); })); + } + ~WithRawCallbackMethod_CarryHuman() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status CarryHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* CarryHuman( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_ReleaseHuman : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_ReleaseHuman() { + ::grpc::Service::MarkMethodRawCallback(10, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->ReleaseHuman(context, request, response); })); + } + ~WithRawCallbackMethod_ReleaseHuman() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status ReleaseHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* ReleaseHuman( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithRawCallbackMethod_HangHuman : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithRawCallbackMethod_HangHuman() { + ::grpc::Service::MarkMethodRawCallback(11, + new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( + [this]( + ::grpc::CallbackServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->HangHuman(context, request, response); })); + } + ~WithRawCallbackMethod_HangHuman() override { + BaseClassMustBeDerivedFromService(this); + } + // disable synchronous version of this method + ::grpc::Status HangHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + virtual ::grpc::ServerUnaryReactor* HangHuman( + ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/) { return nullptr; } + }; + template + class WithStreamedUnaryMethod_Move : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Move() { + ::grpc::Service::MarkMethodStreamed(1, + new ::grpc::internal::StreamedUnaryHandler< + ::protobuf::MoveMsg, ::protobuf::MoveRes>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::protobuf::MoveMsg, ::protobuf::MoveRes>* streamer) { + return this->StreamedMove(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Move() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Move(::grpc::ServerContext* /*context*/, const ::protobuf::MoveMsg* /*request*/, ::protobuf::MoveRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedMove(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::protobuf::MoveMsg,::protobuf::MoveRes>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_PickProp : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_PickProp() { + ::grpc::Service::MarkMethodStreamed(2, + new ::grpc::internal::StreamedUnaryHandler< + ::protobuf::PickMsg, ::protobuf::BoolRes>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::protobuf::PickMsg, ::protobuf::BoolRes>* streamer) { + return this->StreamedPickProp(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_PickProp() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status PickProp(::grpc::ServerContext* /*context*/, const ::protobuf::PickMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedPickProp(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::protobuf::PickMsg,::protobuf::BoolRes>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_UseProp : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_UseProp() { + ::grpc::Service::MarkMethodStreamed(3, + new ::grpc::internal::StreamedUnaryHandler< + ::protobuf::IDMsg, ::protobuf::BoolRes>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::protobuf::IDMsg, ::protobuf::BoolRes>* streamer) { + return this->StreamedUseProp(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_UseProp() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status UseProp(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedUseProp(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::protobuf::IDMsg,::protobuf::BoolRes>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_UseSkill : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_UseSkill() { + ::grpc::Service::MarkMethodStreamed(4, + new ::grpc::internal::StreamedUnaryHandler< + ::protobuf::IDMsg, ::protobuf::BoolRes>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::protobuf::IDMsg, ::protobuf::BoolRes>* streamer) { + return this->StreamedUseSkill(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_UseSkill() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status UseSkill(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedUseSkill(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::protobuf::IDMsg,::protobuf::BoolRes>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_SendMessage : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_SendMessage() { + ::grpc::Service::MarkMethodStreamed(5, + new ::grpc::internal::StreamedUnaryHandler< + ::protobuf::SendMsg, ::protobuf::BoolRes>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::protobuf::SendMsg, ::protobuf::BoolRes>* streamer) { + return this->StreamedSendMessage(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_SendMessage() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status SendMessage(::grpc::ServerContext* /*context*/, const ::protobuf::SendMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedSendMessage(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::protobuf::SendMsg,::protobuf::BoolRes>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_Attack : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_Attack() { + ::grpc::Service::MarkMethodStreamed(8, + new ::grpc::internal::StreamedUnaryHandler< + ::protobuf::AttackMsg, ::protobuf::BoolRes>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::protobuf::AttackMsg, ::protobuf::BoolRes>* streamer) { + return this->StreamedAttack(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_Attack() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status Attack(::grpc::ServerContext* /*context*/, const ::protobuf::AttackMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedAttack(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::protobuf::AttackMsg,::protobuf::BoolRes>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_CarryHuman : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_CarryHuman() { + ::grpc::Service::MarkMethodStreamed(9, + new ::grpc::internal::StreamedUnaryHandler< + ::protobuf::IDMsg, ::protobuf::BoolRes>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::protobuf::IDMsg, ::protobuf::BoolRes>* streamer) { + return this->StreamedCarryHuman(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_CarryHuman() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status CarryHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedCarryHuman(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::protobuf::IDMsg,::protobuf::BoolRes>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_ReleaseHuman : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_ReleaseHuman() { + ::grpc::Service::MarkMethodStreamed(10, + new ::grpc::internal::StreamedUnaryHandler< + ::protobuf::IDMsg, ::protobuf::BoolRes>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::protobuf::IDMsg, ::protobuf::BoolRes>* streamer) { + return this->StreamedReleaseHuman(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_ReleaseHuman() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status ReleaseHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedReleaseHuman(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::protobuf::IDMsg,::protobuf::BoolRes>* server_unary_streamer) = 0; + }; + template + class WithStreamedUnaryMethod_HangHuman : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithStreamedUnaryMethod_HangHuman() { + ::grpc::Service::MarkMethodStreamed(11, + new ::grpc::internal::StreamedUnaryHandler< + ::protobuf::IDMsg, ::protobuf::BoolRes>( + [this](::grpc::ServerContext* context, + ::grpc::ServerUnaryStreamer< + ::protobuf::IDMsg, ::protobuf::BoolRes>* streamer) { + return this->StreamedHangHuman(context, + streamer); + })); + } + ~WithStreamedUnaryMethod_HangHuman() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status HangHuman(::grpc::ServerContext* /*context*/, const ::protobuf::IDMsg* /*request*/, ::protobuf::BoolRes* /*response*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with streamed unary + virtual ::grpc::Status StreamedHangHuman(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::protobuf::IDMsg,::protobuf::BoolRes>* server_unary_streamer) = 0; + }; + typedef WithStreamedUnaryMethod_Move > > > > > > > > StreamedUnaryService; + template + class WithSplitStreamingMethod_AddPlayer : public BaseClass { + private: + void BaseClassMustBeDerivedFromService(const Service* /*service*/) {} + public: + WithSplitStreamingMethod_AddPlayer() { + ::grpc::Service::MarkMethodStreamed(0, + new ::grpc::internal::SplitServerStreamingHandler< + ::protobuf::PlayerMsg, ::protobuf::MessageToClient>( + [this](::grpc::ServerContext* context, + ::grpc::ServerSplitStreamer< + ::protobuf::PlayerMsg, ::protobuf::MessageToClient>* streamer) { + return this->StreamedAddPlayer(context, + streamer); + })); + } + ~WithSplitStreamingMethod_AddPlayer() override { + BaseClassMustBeDerivedFromService(this); + } + // disable regular version of this method + ::grpc::Status AddPlayer(::grpc::ServerContext* /*context*/, const ::protobuf::PlayerMsg* /*request*/, ::grpc::ServerWriter< ::protobuf::MessageToClient>* /*writer*/) override { + abort(); + return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); + } + // replace default version of method with split streamed + virtual ::grpc::Status StreamedAddPlayer(::grpc::ServerContext* context, ::grpc::ServerSplitStreamer< ::protobuf::PlayerMsg,::protobuf::MessageToClient>* server_split_streamer) = 0; + }; + typedef WithSplitStreamingMethod_AddPlayer SplitStreamedService; + typedef WithSplitStreamingMethod_AddPlayer > > > > > > > > > StreamedService; +}; + +} // namespace protobuf + + +#endif // GRPC_Message2Clients_2eproto__INCLUDED diff --git a/CAPI/proto/Message2Clients.pb.cc b/CAPI/proto/Message2Clients.pb.cc new file mode 100644 index 0000000..c37f49f --- /dev/null +++ b/CAPI/proto/Message2Clients.pb.cc @@ -0,0 +1,3169 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Message2Clients.proto + +#include "Message2Clients.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG +namespace protobuf { +constexpr MessageOfHuman::MessageOfHuman( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : buff_() + , _buff_cached_byte_size_(0) + , x_(0) + , y_(0) + , speed_(0) + , life_(0) + , time_until_skill_available_(0) + , hanged_time_(0) + , place_(0) + + , prop_(0) + + , human_type_(0) + + , guid_(int64_t{0}) + , chair_time_(0) + , ground_time_(0) + , player_id_(int64_t{0}) + , on_chair_(false) + , on_ground_(false){} +struct MessageOfHumanDefaultTypeInternal { + constexpr MessageOfHumanDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~MessageOfHumanDefaultTypeInternal() {} + union { + MessageOfHuman _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfHumanDefaultTypeInternal _MessageOfHuman_default_instance_; +constexpr MessageOfButcher::MessageOfButcher( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : buff_() + , _buff_cached_byte_size_(0) + , x_(0) + , y_(0) + , speed_(0) + , damage_(0) + , time_until_skill_available_(0) + , place_(0) + + , prop_(0) + + , guid_(int64_t{0}) + , butcher_type_(0) + + , movable_(false) + , playerid_(int64_t{0}){} +struct MessageOfButcherDefaultTypeInternal { + constexpr MessageOfButcherDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~MessageOfButcherDefaultTypeInternal() {} + union { + MessageOfButcher _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfButcherDefaultTypeInternal _MessageOfButcher_default_instance_; +constexpr MessageOfProp::MessageOfProp( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : type_(0) + + , x_(0) + , facing_direction_(0) + , y_(0) + , place_(0) + + , guid_(int64_t{0}){} +struct MessageOfPropDefaultTypeInternal { + constexpr MessageOfPropDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~MessageOfPropDefaultTypeInternal() {} + union { + MessageOfProp _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfPropDefaultTypeInternal _MessageOfProp_default_instance_; +constexpr MessageOfPickedProp::MessageOfPickedProp( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : type_(0) + + , x_(0) + , facing_direction_(0) + , mapping_id_(int64_t{0}) + , y_(0){} +struct MessageOfPickedPropDefaultTypeInternal { + constexpr MessageOfPickedPropDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~MessageOfPickedPropDefaultTypeInternal() {} + union { + MessageOfPickedProp _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfPickedPropDefaultTypeInternal _MessageOfPickedProp_default_instance_; +constexpr MessageOfMap_Row::MessageOfMap_Row( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : col_() + , _col_cached_byte_size_(0){} +struct MessageOfMap_RowDefaultTypeInternal { + constexpr MessageOfMap_RowDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~MessageOfMap_RowDefaultTypeInternal() {} + union { + MessageOfMap_Row _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfMap_RowDefaultTypeInternal _MessageOfMap_Row_default_instance_; +constexpr MessageOfMap::MessageOfMap( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : row_(){} +struct MessageOfMapDefaultTypeInternal { + constexpr MessageOfMapDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~MessageOfMapDefaultTypeInternal() {} + union { + MessageOfMap _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageOfMapDefaultTypeInternal _MessageOfMap_default_instance_; +constexpr MessageToClient::MessageToClient( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : human_message_() + , butcher_message_() + , prop_message_() + , map_massage_(nullptr){} +struct MessageToClientDefaultTypeInternal { + constexpr MessageToClientDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~MessageToClientDefaultTypeInternal() {} + union { + MessageToClient _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MessageToClientDefaultTypeInternal _MessageToClient_default_instance_; +constexpr MoveRes::MoveRes( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : actual_speed_(int64_t{0}) + , actual_angle_(0){} +struct MoveResDefaultTypeInternal { + constexpr MoveResDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~MoveResDefaultTypeInternal() {} + union { + MoveRes _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MoveResDefaultTypeInternal _MoveRes_default_instance_; +constexpr BoolRes::BoolRes( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : act_success_(false){} +struct BoolResDefaultTypeInternal { + constexpr BoolResDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~BoolResDefaultTypeInternal() {} + union { + BoolRes _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT BoolResDefaultTypeInternal _BoolRes_default_instance_; +} // namespace protobuf +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_Message2Clients_2eproto[9]; +static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_Message2Clients_2eproto = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_Message2Clients_2eproto = nullptr; + +const uint32_t TableStruct_Message2Clients_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, x_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, y_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, speed_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, life_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, hanged_time_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, time_until_skill_available_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, place_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, prop_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, human_type_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, guid_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, on_chair_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, chair_time_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, on_ground_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, ground_time_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfHuman, buff_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, x_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, y_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, speed_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, damage_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, time_until_skill_available_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, place_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, prop_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, butcher_type_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, guid_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, movable_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, playerid_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfButcher, buff_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, type_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, x_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, y_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, facing_direction_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, guid_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfProp, place_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, type_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, x_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, y_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, facing_direction_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfPickedProp, mapping_id_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap_Row, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap_Row, col_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::protobuf::MessageOfMap, row_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, human_message_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, butcher_message_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, prop_message_), + PROTOBUF_FIELD_OFFSET(::protobuf::MessageToClient, map_massage_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, actual_speed_), + PROTOBUF_FIELD_OFFSET(::protobuf::MoveRes, actual_angle_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::protobuf::BoolRes, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::protobuf::BoolRes, act_success_), +}; +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::protobuf::MessageOfHuman)}, + { 22, -1, -1, sizeof(::protobuf::MessageOfButcher)}, + { 40, -1, -1, sizeof(::protobuf::MessageOfProp)}, + { 52, -1, -1, sizeof(::protobuf::MessageOfPickedProp)}, + { 63, -1, -1, sizeof(::protobuf::MessageOfMap_Row)}, + { 70, -1, -1, sizeof(::protobuf::MessageOfMap)}, + { 77, -1, -1, sizeof(::protobuf::MessageToClient)}, + { 87, -1, -1, sizeof(::protobuf::MoveRes)}, + { 95, -1, -1, sizeof(::protobuf::BoolRes)}, +}; + +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::protobuf::_MessageOfHuman_default_instance_), + reinterpret_cast(&::protobuf::_MessageOfButcher_default_instance_), + reinterpret_cast(&::protobuf::_MessageOfProp_default_instance_), + reinterpret_cast(&::protobuf::_MessageOfPickedProp_default_instance_), + reinterpret_cast(&::protobuf::_MessageOfMap_Row_default_instance_), + reinterpret_cast(&::protobuf::_MessageOfMap_default_instance_), + reinterpret_cast(&::protobuf::_MessageToClient_default_instance_), + reinterpret_cast(&::protobuf::_MoveRes_default_instance_), + reinterpret_cast(&::protobuf::_BoolRes_default_instance_), +}; + +const char descriptor_table_protodef_Message2Clients_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\025Message2Clients.proto\022\010protobuf\032\021Messa" + "geType.proto\032\024Message2Server.proto\"\201\003\n\016M" + "essageOfHuman\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\022\r\n\005s" + "peed\030\003 \001(\005\022\014\n\004life\030\004 \001(\005\022\023\n\013hanged_time\030" + "\005 \001(\005\022\"\n\032time_until_skill_available\030\006 \001(" + "\001\022\"\n\005place\030\007 \001(\0162\023.protobuf.PlaceType\022 \n" + "\004prop\030\010 \001(\0162\022.protobuf.PropType\022\'\n\nhuman" + "_type\030\t \001(\0162\023.protobuf.HumanType\022\014\n\004guid" + "\030\n \001(\003\022\020\n\010on_chair\030\013 \001(\010\022\022\n\nchair_time\030\014" + " \001(\001\022\021\n\ton_ground\030\r \001(\010\022\023\n\013ground_time\030\016" + " \001(\001\022\021\n\tplayer_id\030\017 \001(\003\022%\n\004buff\030\020 \003(\0162\027." + "protobuf.HumanBuffType\"\270\002\n\020MessageOfButc" + "her\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\022\r\n\005speed\030\003 \001(\005" + "\022\016\n\006damage\030\004 \001(\005\022\"\n\032time_until_skill_ava" + "ilable\030\005 \001(\001\022\"\n\005place\030\006 \001(\0162\023.protobuf.P" + "laceType\022 \n\004prop\030\007 \001(\0162\022.protobuf.PropTy" + "pe\022+\n\014butcher_type\030\010 \001(\0162\025.protobuf.Butc" + "herType\022\014\n\004guid\030\t \001(\003\022\017\n\007movable\030\n \001(\010\022\020" + "\n\010playerID\030\013 \001(\003\022\'\n\004buff\030\014 \003(\0162\031.protobu" + "f.ButcherBuffType\"\223\001\n\rMessageOfProp\022 \n\004t" + "ype\030\001 \001(\0162\022.protobuf.PropType\022\t\n\001x\030\002 \001(\005" + "\022\t\n\001y\030\003 \001(\005\022\030\n\020facing_direction\030\004 \001(\001\022\014\n" + "\004guid\030\005 \001(\003\022\"\n\005place\030\006 \001(\0162\023.protobuf.Pl" + "aceType\"{\n\023MessageOfPickedProp\022 \n\004type\030\001" + " \001(\0162\022.protobuf.PropType\022\t\n\001x\030\002 \001(\005\022\t\n\001y" + "\030\003 \001(\005\022\030\n\020facing_direction\030\004 \001(\001\022\022\n\nmapp" + "ing_id\030\005 \001(\003\"`\n\014MessageOfMap\022\'\n\003row\030\002 \003(" + "\0132\032.protobuf.MessageOfMap.Row\032\'\n\003Row\022 \n\003" + "col\030\001 \003(\0162\023.protobuf.PlaceType\"\323\001\n\017Messa" + "geToClient\022/\n\rhuman_message\030\001 \003(\0132\030.prot" + "obuf.MessageOfHuman\0223\n\017butcher_message\030\002" + " \003(\0132\032.protobuf.MessageOfButcher\022-\n\014prop" + "_message\030\003 \003(\0132\027.protobuf.MessageOfProp\022" + "+\n\013map_massage\030\004 \001(\0132\026.protobuf.MessageO" + "fMap\"5\n\007MoveRes\022\024\n\014actual_speed\030\001 \001(\003\022\024\n" + "\014actual_angle\030\002 \001(\001\"\036\n\007BoolRes\022\023\n\013act_su" + "ccess\030\001 \001(\0102\371\004\n\020AvailableService\022=\n\tAddP" + "layer\022\023.protobuf.PlayerMsg\032\031.protobuf.Me" + "ssageToClient0\001\022,\n\004Move\022\021.protobuf.MoveM" + "sg\032\021.protobuf.MoveRes\0220\n\010PickProp\022\021.prot" + "obuf.PickMsg\032\021.protobuf.BoolRes\022-\n\007UsePr" + "op\022\017.protobuf.IDMsg\032\021.protobuf.BoolRes\022." + "\n\010UseSkill\022\017.protobuf.IDMsg\032\021.protobuf.B" + "oolRes\0223\n\013SendMessage\022\021.protobuf.SendMsg" + "\032\021.protobuf.BoolRes\0224\n\nFixMachine\022\017.prot" + "obuf.IDMsg\032\021.protobuf.BoolRes(\0010\001\0223\n\tSav" + "eHuman\022\017.protobuf.IDMsg\032\021.protobuf.BoolR" + "es(\0010\001\0220\n\006Attack\022\023.protobuf.AttackMsg\032\021." + "protobuf.BoolRes\0220\n\nCarryHuman\022\017.protobu" + "f.IDMsg\032\021.protobuf.BoolRes\0222\n\014ReleaseHum" + "an\022\017.protobuf.IDMsg\032\021.protobuf.BoolRes\022/" + "\n\tHangHuman\022\017.protobuf.IDMsg\032\021.protobuf." + "BoolResb\006proto3" + ; +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_Message2Clients_2eproto_deps[2] = { + &::descriptor_table_Message2Server_2eproto, + &::descriptor_table_MessageType_2eproto, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_Message2Clients_2eproto_once; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Message2Clients_2eproto = { + false, false, 2095, descriptor_table_protodef_Message2Clients_2eproto, "Message2Clients.proto", + &descriptor_table_Message2Clients_2eproto_once, descriptor_table_Message2Clients_2eproto_deps, 2, 9, + schemas, file_default_instances, TableStruct_Message2Clients_2eproto::offsets, + file_level_metadata_Message2Clients_2eproto, file_level_enum_descriptors_Message2Clients_2eproto, file_level_service_descriptors_Message2Clients_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_Message2Clients_2eproto_getter() { + return &descriptor_table_Message2Clients_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_Message2Clients_2eproto(&descriptor_table_Message2Clients_2eproto); +namespace protobuf { + +// =================================================================== + +class MessageOfHuman::_Internal { + public: +}; + +MessageOfHuman::MessageOfHuman(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + buff_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfHuman) +} +MessageOfHuman::MessageOfHuman(const MessageOfHuman& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + buff_(from.buff_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&x_, &from.x_, + static_cast(reinterpret_cast(&on_ground_) - + reinterpret_cast(&x_)) + sizeof(on_ground_)); + // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfHuman) +} + +inline void MessageOfHuman::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&x_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&on_ground_) - + reinterpret_cast(&x_)) + sizeof(on_ground_)); +} + +MessageOfHuman::~MessageOfHuman() { + // @@protoc_insertion_point(destructor:protobuf.MessageOfHuman) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void MessageOfHuman::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void MessageOfHuman::ArenaDtor(void* object) { + MessageOfHuman* _this = reinterpret_cast< MessageOfHuman* >(object); + (void)_this; +} +void MessageOfHuman::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void MessageOfHuman::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void MessageOfHuman::Clear() { +// @@protoc_insertion_point(message_clear_start:protobuf.MessageOfHuman) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + buff_.Clear(); + ::memset(&x_, 0, static_cast( + reinterpret_cast(&on_ground_) - + reinterpret_cast(&x_)) + sizeof(on_ground_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MessageOfHuman::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // int32 x = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 y = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 speed = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 life = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + life_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 hanged_time = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + hanged_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double time_until_skill_available = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 49)) { + time_until_skill_available_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // .protobuf.PlaceType place = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_place(static_cast<::protobuf::PlaceType>(val)); + } else + goto handle_unusual; + continue; + // .protobuf.PropType prop = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_prop(static_cast<::protobuf::PropType>(val)); + } else + goto handle_unusual; + continue; + // .protobuf.HumanType human_type = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_human_type(static_cast<::protobuf::HumanType>(val)); + } else + goto handle_unusual; + continue; + // int64 guid = 10; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { + guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool on_chair = 11; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 88)) { + on_chair_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double chair_time = 12; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 97)) { + chair_time_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // bool on_ground = 13; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 104)) { + on_ground_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double ground_time = 14; + case 14: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 113)) { + ground_time_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // int64 player_id = 15; + case 15: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 120)) { + player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .protobuf.HumanBuffType buff = 16; + case 16: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 130)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_buff(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 128) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_add_buff(static_cast<::protobuf::HumanBuffType>(val)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* MessageOfHuman::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfHuman) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int32 x = 1; + if (this->_internal_x() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); + } + + // int32 y = 2; + if (this->_internal_y() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); + } + + // int32 speed = 3; + if (this->_internal_speed() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_speed(), target); + } + + // int32 life = 4; + if (this->_internal_life() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_life(), target); + } + + // int32 hanged_time = 5; + if (this->_internal_hanged_time() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_hanged_time(), target); + } + + // double time_until_skill_available = 6; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_time_until_skill_available = this->_internal_time_until_skill_available(); + uint64_t raw_time_until_skill_available; + memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available)); + if (raw_time_until_skill_available != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(6, this->_internal_time_until_skill_available(), target); + } + + // .protobuf.PlaceType place = 7; + if (this->_internal_place() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 7, this->_internal_place(), target); + } + + // .protobuf.PropType prop = 8; + if (this->_internal_prop() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 8, this->_internal_prop(), target); + } + + // .protobuf.HumanType human_type = 9; + if (this->_internal_human_type() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 9, this->_internal_human_type(), target); + } + + // int64 guid = 10; + if (this->_internal_guid() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(10, this->_internal_guid(), target); + } + + // bool on_chair = 11; + if (this->_internal_on_chair() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(11, this->_internal_on_chair(), target); + } + + // double chair_time = 12; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_chair_time = this->_internal_chair_time(); + uint64_t raw_chair_time; + memcpy(&raw_chair_time, &tmp_chair_time, sizeof(tmp_chair_time)); + if (raw_chair_time != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(12, this->_internal_chair_time(), target); + } + + // bool on_ground = 13; + if (this->_internal_on_ground() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(13, this->_internal_on_ground(), target); + } + + // double ground_time = 14; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_ground_time = this->_internal_ground_time(); + uint64_t raw_ground_time; + memcpy(&raw_ground_time, &tmp_ground_time, sizeof(tmp_ground_time)); + if (raw_ground_time != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(14, this->_internal_ground_time(), target); + } + + // int64 player_id = 15; + if (this->_internal_player_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(15, this->_internal_player_id(), target); + } + + // repeated .protobuf.HumanBuffType buff = 16; + { + int byte_size = _buff_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteEnumPacked( + 16, buff_, byte_size, target); + } + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfHuman) + return target; +} + +size_t MessageOfHuman::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfHuman) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .protobuf.HumanBuffType buff = 16; + { + size_t data_size = 0; + unsigned int count = static_cast(this->_internal_buff_size());for (unsigned int i = 0; i < count; i++) { + data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( + this->_internal_buff(static_cast(i))); + } + if (data_size > 0) { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast(data_size)); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _buff_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + // int32 x = 1; + if (this->_internal_x() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + } + + // int32 y = 2; + if (this->_internal_y() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + } + + // int32 speed = 3; + if (this->_internal_speed() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_speed()); + } + + // int32 life = 4; + if (this->_internal_life() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_life()); + } + + // double time_until_skill_available = 6; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_time_until_skill_available = this->_internal_time_until_skill_available(); + uint64_t raw_time_until_skill_available; + memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available)); + if (raw_time_until_skill_available != 0) { + total_size += 1 + 8; + } + + // int32 hanged_time = 5; + if (this->_internal_hanged_time() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_hanged_time()); + } + + // .protobuf.PlaceType place = 7; + if (this->_internal_place() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_place()); + } + + // .protobuf.PropType prop = 8; + if (this->_internal_prop() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_prop()); + } + + // .protobuf.HumanType human_type = 9; + if (this->_internal_human_type() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_human_type()); + } + + // int64 guid = 10; + if (this->_internal_guid() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_guid()); + } + + // double chair_time = 12; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_chair_time = this->_internal_chair_time(); + uint64_t raw_chair_time; + memcpy(&raw_chair_time, &tmp_chair_time, sizeof(tmp_chair_time)); + if (raw_chair_time != 0) { + total_size += 1 + 8; + } + + // double ground_time = 14; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_ground_time = this->_internal_ground_time(); + uint64_t raw_ground_time; + memcpy(&raw_ground_time, &tmp_ground_time, sizeof(tmp_ground_time)); + if (raw_ground_time != 0) { + total_size += 1 + 8; + } + + // int64 player_id = 15; + if (this->_internal_player_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + } + + // bool on_chair = 11; + if (this->_internal_on_chair() != 0) { + total_size += 1 + 1; + } + + // bool on_ground = 13; + if (this->_internal_on_ground() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfHuman::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MessageOfHuman::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MessageOfHuman::GetClassData() const { return &_class_data_; } + +void MessageOfHuman::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void MessageOfHuman::MergeFrom(const MessageOfHuman& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfHuman) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + buff_.MergeFrom(from.buff_); + if (from._internal_x() != 0) { + _internal_set_x(from._internal_x()); + } + if (from._internal_y() != 0) { + _internal_set_y(from._internal_y()); + } + if (from._internal_speed() != 0) { + _internal_set_speed(from._internal_speed()); + } + if (from._internal_life() != 0) { + _internal_set_life(from._internal_life()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_time_until_skill_available = from._internal_time_until_skill_available(); + uint64_t raw_time_until_skill_available; + memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available)); + if (raw_time_until_skill_available != 0) { + _internal_set_time_until_skill_available(from._internal_time_until_skill_available()); + } + if (from._internal_hanged_time() != 0) { + _internal_set_hanged_time(from._internal_hanged_time()); + } + if (from._internal_place() != 0) { + _internal_set_place(from._internal_place()); + } + if (from._internal_prop() != 0) { + _internal_set_prop(from._internal_prop()); + } + if (from._internal_human_type() != 0) { + _internal_set_human_type(from._internal_human_type()); + } + if (from._internal_guid() != 0) { + _internal_set_guid(from._internal_guid()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_chair_time = from._internal_chair_time(); + uint64_t raw_chair_time; + memcpy(&raw_chair_time, &tmp_chair_time, sizeof(tmp_chair_time)); + if (raw_chair_time != 0) { + _internal_set_chair_time(from._internal_chair_time()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_ground_time = from._internal_ground_time(); + uint64_t raw_ground_time; + memcpy(&raw_ground_time, &tmp_ground_time, sizeof(tmp_ground_time)); + if (raw_ground_time != 0) { + _internal_set_ground_time(from._internal_ground_time()); + } + if (from._internal_player_id() != 0) { + _internal_set_player_id(from._internal_player_id()); + } + if (from._internal_on_chair() != 0) { + _internal_set_on_chair(from._internal_on_chair()); + } + if (from._internal_on_ground() != 0) { + _internal_set_on_ground(from._internal_on_ground()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MessageOfHuman::CopyFrom(const MessageOfHuman& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfHuman) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MessageOfHuman::IsInitialized() const { + return true; +} + +void MessageOfHuman::InternalSwap(MessageOfHuman* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + buff_.InternalSwap(&other->buff_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MessageOfHuman, on_ground_) + + sizeof(MessageOfHuman::on_ground_) + - PROTOBUF_FIELD_OFFSET(MessageOfHuman, x_)>( + reinterpret_cast(&x_), + reinterpret_cast(&other->x_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MessageOfHuman::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, + file_level_metadata_Message2Clients_2eproto[0]); +} + +// =================================================================== + +class MessageOfButcher::_Internal { + public: +}; + +MessageOfButcher::MessageOfButcher(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + buff_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfButcher) +} +MessageOfButcher::MessageOfButcher(const MessageOfButcher& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + buff_(from.buff_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&x_, &from.x_, + static_cast(reinterpret_cast(&playerid_) - + reinterpret_cast(&x_)) + sizeof(playerid_)); + // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfButcher) +} + +inline void MessageOfButcher::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&x_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&playerid_) - + reinterpret_cast(&x_)) + sizeof(playerid_)); +} + +MessageOfButcher::~MessageOfButcher() { + // @@protoc_insertion_point(destructor:protobuf.MessageOfButcher) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void MessageOfButcher::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void MessageOfButcher::ArenaDtor(void* object) { + MessageOfButcher* _this = reinterpret_cast< MessageOfButcher* >(object); + (void)_this; +} +void MessageOfButcher::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void MessageOfButcher::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void MessageOfButcher::Clear() { +// @@protoc_insertion_point(message_clear_start:protobuf.MessageOfButcher) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + buff_.Clear(); + ::memset(&x_, 0, static_cast( + reinterpret_cast(&playerid_) - + reinterpret_cast(&x_)) + sizeof(playerid_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MessageOfButcher::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // int32 x = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 y = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 speed = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 damage = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + damage_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double time_until_skill_available = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 41)) { + time_until_skill_available_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // .protobuf.PlaceType place = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_place(static_cast<::protobuf::PlaceType>(val)); + } else + goto handle_unusual; + continue; + // .protobuf.PropType prop = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 56)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_prop(static_cast<::protobuf::PropType>(val)); + } else + goto handle_unusual; + continue; + // .protobuf.ButcherType butcher_type = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 64)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_butcher_type(static_cast<::protobuf::ButcherType>(val)); + } else + goto handle_unusual; + continue; + // int64 guid = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 72)) { + guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // bool movable = 10; + case 10: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 80)) { + movable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 playerID = 11; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 88)) { + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // repeated .protobuf.ButcherBuffType buff = 12; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_buff(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 96) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_add_buff(static_cast<::protobuf::ButcherBuffType>(val)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* MessageOfButcher::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfButcher) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int32 x = 1; + if (this->_internal_x() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_x(), target); + } + + // int32 y = 2; + if (this->_internal_y() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_y(), target); + } + + // int32 speed = 3; + if (this->_internal_speed() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_speed(), target); + } + + // int32 damage = 4; + if (this->_internal_damage() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_damage(), target); + } + + // double time_until_skill_available = 5; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_time_until_skill_available = this->_internal_time_until_skill_available(); + uint64_t raw_time_until_skill_available; + memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available)); + if (raw_time_until_skill_available != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(5, this->_internal_time_until_skill_available(), target); + } + + // .protobuf.PlaceType place = 6; + if (this->_internal_place() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 6, this->_internal_place(), target); + } + + // .protobuf.PropType prop = 7; + if (this->_internal_prop() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 7, this->_internal_prop(), target); + } + + // .protobuf.ButcherType butcher_type = 8; + if (this->_internal_butcher_type() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 8, this->_internal_butcher_type(), target); + } + + // int64 guid = 9; + if (this->_internal_guid() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(9, this->_internal_guid(), target); + } + + // bool movable = 10; + if (this->_internal_movable() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(10, this->_internal_movable(), target); + } + + // int64 playerID = 11; + if (this->_internal_playerid() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(11, this->_internal_playerid(), target); + } + + // repeated .protobuf.ButcherBuffType buff = 12; + { + int byte_size = _buff_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteEnumPacked( + 12, buff_, byte_size, target); + } + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfButcher) + return target; +} + +size_t MessageOfButcher::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfButcher) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .protobuf.ButcherBuffType buff = 12; + { + size_t data_size = 0; + unsigned int count = static_cast(this->_internal_buff_size());for (unsigned int i = 0; i < count; i++) { + data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( + this->_internal_buff(static_cast(i))); + } + if (data_size > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast(data_size)); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _buff_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + // int32 x = 1; + if (this->_internal_x() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + } + + // int32 y = 2; + if (this->_internal_y() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + } + + // int32 speed = 3; + if (this->_internal_speed() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_speed()); + } + + // int32 damage = 4; + if (this->_internal_damage() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_damage()); + } + + // double time_until_skill_available = 5; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_time_until_skill_available = this->_internal_time_until_skill_available(); + uint64_t raw_time_until_skill_available; + memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available)); + if (raw_time_until_skill_available != 0) { + total_size += 1 + 8; + } + + // .protobuf.PlaceType place = 6; + if (this->_internal_place() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_place()); + } + + // .protobuf.PropType prop = 7; + if (this->_internal_prop() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_prop()); + } + + // int64 guid = 9; + if (this->_internal_guid() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_guid()); + } + + // .protobuf.ButcherType butcher_type = 8; + if (this->_internal_butcher_type() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_butcher_type()); + } + + // bool movable = 10; + if (this->_internal_movable() != 0) { + total_size += 1 + 1; + } + + // int64 playerID = 11; + if (this->_internal_playerid() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_playerid()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfButcher::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MessageOfButcher::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MessageOfButcher::GetClassData() const { return &_class_data_; } + +void MessageOfButcher::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void MessageOfButcher::MergeFrom(const MessageOfButcher& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfButcher) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + buff_.MergeFrom(from.buff_); + if (from._internal_x() != 0) { + _internal_set_x(from._internal_x()); + } + if (from._internal_y() != 0) { + _internal_set_y(from._internal_y()); + } + if (from._internal_speed() != 0) { + _internal_set_speed(from._internal_speed()); + } + if (from._internal_damage() != 0) { + _internal_set_damage(from._internal_damage()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_time_until_skill_available = from._internal_time_until_skill_available(); + uint64_t raw_time_until_skill_available; + memcpy(&raw_time_until_skill_available, &tmp_time_until_skill_available, sizeof(tmp_time_until_skill_available)); + if (raw_time_until_skill_available != 0) { + _internal_set_time_until_skill_available(from._internal_time_until_skill_available()); + } + if (from._internal_place() != 0) { + _internal_set_place(from._internal_place()); + } + if (from._internal_prop() != 0) { + _internal_set_prop(from._internal_prop()); + } + if (from._internal_guid() != 0) { + _internal_set_guid(from._internal_guid()); + } + if (from._internal_butcher_type() != 0) { + _internal_set_butcher_type(from._internal_butcher_type()); + } + if (from._internal_movable() != 0) { + _internal_set_movable(from._internal_movable()); + } + if (from._internal_playerid() != 0) { + _internal_set_playerid(from._internal_playerid()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MessageOfButcher::CopyFrom(const MessageOfButcher& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfButcher) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MessageOfButcher::IsInitialized() const { + return true; +} + +void MessageOfButcher::InternalSwap(MessageOfButcher* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + buff_.InternalSwap(&other->buff_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MessageOfButcher, playerid_) + + sizeof(MessageOfButcher::playerid_) + - PROTOBUF_FIELD_OFFSET(MessageOfButcher, x_)>( + reinterpret_cast(&x_), + reinterpret_cast(&other->x_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MessageOfButcher::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, + file_level_metadata_Message2Clients_2eproto[1]); +} + +// =================================================================== + +class MessageOfProp::_Internal { + public: +}; + +MessageOfProp::MessageOfProp(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfProp) +} +MessageOfProp::MessageOfProp(const MessageOfProp& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&type_, &from.type_, + static_cast(reinterpret_cast(&guid_) - + reinterpret_cast(&type_)) + sizeof(guid_)); + // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfProp) +} + +inline void MessageOfProp::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&type_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&guid_) - + reinterpret_cast(&type_)) + sizeof(guid_)); +} + +MessageOfProp::~MessageOfProp() { + // @@protoc_insertion_point(destructor:protobuf.MessageOfProp) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void MessageOfProp::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void MessageOfProp::ArenaDtor(void* object) { + MessageOfProp* _this = reinterpret_cast< MessageOfProp* >(object); + (void)_this; +} +void MessageOfProp::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void MessageOfProp::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void MessageOfProp::Clear() { +// @@protoc_insertion_point(message_clear_start:protobuf.MessageOfProp) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&type_, 0, static_cast( + reinterpret_cast(&guid_) - + reinterpret_cast(&type_)) + sizeof(guid_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MessageOfProp::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .protobuf.PropType type = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_type(static_cast<::protobuf::PropType>(val)); + } else + goto handle_unusual; + continue; + // int32 x = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 y = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double facing_direction = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { + facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // int64 guid = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + guid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .protobuf.PlaceType place = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_place(static_cast<::protobuf::PlaceType>(val)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* MessageOfProp::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfProp) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .protobuf.PropType type = 1; + if (this->_internal_type() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 1, this->_internal_type(), target); + } + + // int32 x = 2; + if (this->_internal_x() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target); + } + + // int32 y = 3; + if (this->_internal_y() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target); + } + + // double facing_direction = 4; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_facing_direction = this->_internal_facing_direction(); + uint64_t raw_facing_direction; + memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction)); + if (raw_facing_direction != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target); + } + + // int64 guid = 5; + if (this->_internal_guid() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->_internal_guid(), target); + } + + // .protobuf.PlaceType place = 6; + if (this->_internal_place() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 6, this->_internal_place(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfProp) + return target; +} + +size_t MessageOfProp::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfProp) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .protobuf.PropType type = 1; + if (this->_internal_type() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + } + + // int32 x = 2; + if (this->_internal_x() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + } + + // double facing_direction = 4; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_facing_direction = this->_internal_facing_direction(); + uint64_t raw_facing_direction; + memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction)); + if (raw_facing_direction != 0) { + total_size += 1 + 8; + } + + // int32 y = 3; + if (this->_internal_y() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + } + + // .protobuf.PlaceType place = 6; + if (this->_internal_place() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_place()); + } + + // int64 guid = 5; + if (this->_internal_guid() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_guid()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfProp::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MessageOfProp::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MessageOfProp::GetClassData() const { return &_class_data_; } + +void MessageOfProp::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void MessageOfProp::MergeFrom(const MessageOfProp& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfProp) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_type() != 0) { + _internal_set_type(from._internal_type()); + } + if (from._internal_x() != 0) { + _internal_set_x(from._internal_x()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_facing_direction = from._internal_facing_direction(); + uint64_t raw_facing_direction; + memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction)); + if (raw_facing_direction != 0) { + _internal_set_facing_direction(from._internal_facing_direction()); + } + if (from._internal_y() != 0) { + _internal_set_y(from._internal_y()); + } + if (from._internal_place() != 0) { + _internal_set_place(from._internal_place()); + } + if (from._internal_guid() != 0) { + _internal_set_guid(from._internal_guid()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MessageOfProp::CopyFrom(const MessageOfProp& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfProp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MessageOfProp::IsInitialized() const { + return true; +} + +void MessageOfProp::InternalSwap(MessageOfProp* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MessageOfProp, guid_) + + sizeof(MessageOfProp::guid_) + - PROTOBUF_FIELD_OFFSET(MessageOfProp, type_)>( + reinterpret_cast(&type_), + reinterpret_cast(&other->type_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MessageOfProp::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, + file_level_metadata_Message2Clients_2eproto[2]); +} + +// =================================================================== + +class MessageOfPickedProp::_Internal { + public: +}; + +MessageOfPickedProp::MessageOfPickedProp(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfPickedProp) +} +MessageOfPickedProp::MessageOfPickedProp(const MessageOfPickedProp& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&type_, &from.type_, + static_cast(reinterpret_cast(&y_) - + reinterpret_cast(&type_)) + sizeof(y_)); + // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfPickedProp) +} + +inline void MessageOfPickedProp::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&type_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&y_) - + reinterpret_cast(&type_)) + sizeof(y_)); +} + +MessageOfPickedProp::~MessageOfPickedProp() { + // @@protoc_insertion_point(destructor:protobuf.MessageOfPickedProp) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void MessageOfPickedProp::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void MessageOfPickedProp::ArenaDtor(void* object) { + MessageOfPickedProp* _this = reinterpret_cast< MessageOfPickedProp* >(object); + (void)_this; +} +void MessageOfPickedProp::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void MessageOfPickedProp::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void MessageOfPickedProp::Clear() { +// @@protoc_insertion_point(message_clear_start:protobuf.MessageOfPickedProp) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&type_, 0, static_cast( + reinterpret_cast(&y_) - + reinterpret_cast(&type_)) + sizeof(y_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MessageOfPickedProp::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .protobuf.PropType type = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_type(static_cast<::protobuf::PropType>(val)); + } else + goto handle_unusual; + continue; + // int32 x = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + x_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 y = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + y_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double facing_direction = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 33)) { + facing_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // int64 mapping_id = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + mapping_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* MessageOfPickedProp::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfPickedProp) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .protobuf.PropType type = 1; + if (this->_internal_type() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 1, this->_internal_type(), target); + } + + // int32 x = 2; + if (this->_internal_x() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_x(), target); + } + + // int32 y = 3; + if (this->_internal_y() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_y(), target); + } + + // double facing_direction = 4; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_facing_direction = this->_internal_facing_direction(); + uint64_t raw_facing_direction; + memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction)); + if (raw_facing_direction != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->_internal_facing_direction(), target); + } + + // int64 mapping_id = 5; + if (this->_internal_mapping_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->_internal_mapping_id(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfPickedProp) + return target; +} + +size_t MessageOfPickedProp::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfPickedProp) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .protobuf.PropType type = 1; + if (this->_internal_type() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); + } + + // int32 x = 2; + if (this->_internal_x() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_x()); + } + + // double facing_direction = 4; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_facing_direction = this->_internal_facing_direction(); + uint64_t raw_facing_direction; + memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction)); + if (raw_facing_direction != 0) { + total_size += 1 + 8; + } + + // int64 mapping_id = 5; + if (this->_internal_mapping_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_mapping_id()); + } + + // int32 y = 3; + if (this->_internal_y() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_y()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfPickedProp::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MessageOfPickedProp::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MessageOfPickedProp::GetClassData() const { return &_class_data_; } + +void MessageOfPickedProp::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void MessageOfPickedProp::MergeFrom(const MessageOfPickedProp& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfPickedProp) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_type() != 0) { + _internal_set_type(from._internal_type()); + } + if (from._internal_x() != 0) { + _internal_set_x(from._internal_x()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_facing_direction = from._internal_facing_direction(); + uint64_t raw_facing_direction; + memcpy(&raw_facing_direction, &tmp_facing_direction, sizeof(tmp_facing_direction)); + if (raw_facing_direction != 0) { + _internal_set_facing_direction(from._internal_facing_direction()); + } + if (from._internal_mapping_id() != 0) { + _internal_set_mapping_id(from._internal_mapping_id()); + } + if (from._internal_y() != 0) { + _internal_set_y(from._internal_y()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MessageOfPickedProp::CopyFrom(const MessageOfPickedProp& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfPickedProp) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MessageOfPickedProp::IsInitialized() const { + return true; +} + +void MessageOfPickedProp::InternalSwap(MessageOfPickedProp* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MessageOfPickedProp, y_) + + sizeof(MessageOfPickedProp::y_) + - PROTOBUF_FIELD_OFFSET(MessageOfPickedProp, type_)>( + reinterpret_cast(&type_), + reinterpret_cast(&other->type_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MessageOfPickedProp::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, + file_level_metadata_Message2Clients_2eproto[3]); +} + +// =================================================================== + +class MessageOfMap_Row::_Internal { + public: +}; + +MessageOfMap_Row::MessageOfMap_Row(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + col_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfMap.Row) +} +MessageOfMap_Row::MessageOfMap_Row(const MessageOfMap_Row& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + col_(from.col_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfMap.Row) +} + +inline void MessageOfMap_Row::SharedCtor() { +} + +MessageOfMap_Row::~MessageOfMap_Row() { + // @@protoc_insertion_point(destructor:protobuf.MessageOfMap.Row) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void MessageOfMap_Row::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void MessageOfMap_Row::ArenaDtor(void* object) { + MessageOfMap_Row* _this = reinterpret_cast< MessageOfMap_Row* >(object); + (void)_this; +} +void MessageOfMap_Row::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void MessageOfMap_Row::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void MessageOfMap_Row::Clear() { +// @@protoc_insertion_point(message_clear_start:protobuf.MessageOfMap.Row) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + col_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MessageOfMap_Row::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated .protobuf.PlaceType col = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(_internal_mutable_col(), ptr, ctx); + CHK_(ptr); + } else if (static_cast(tag) == 8) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_add_col(static_cast<::protobuf::PlaceType>(val)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* MessageOfMap_Row::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfMap.Row) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .protobuf.PlaceType col = 1; + { + int byte_size = _col_cached_byte_size_.load(std::memory_order_relaxed); + if (byte_size > 0) { + target = stream->WriteEnumPacked( + 1, col_, byte_size, target); + } + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfMap.Row) + return target; +} + +size_t MessageOfMap_Row::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfMap.Row) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .protobuf.PlaceType col = 1; + { + size_t data_size = 0; + unsigned int count = static_cast(this->_internal_col_size());for (unsigned int i = 0; i < count; i++) { + data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( + this->_internal_col(static_cast(i))); + } + if (data_size > 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( + static_cast(data_size)); + } + int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); + _col_cached_byte_size_.store(cached_size, + std::memory_order_relaxed); + total_size += data_size; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfMap_Row::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MessageOfMap_Row::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MessageOfMap_Row::GetClassData() const { return &_class_data_; } + +void MessageOfMap_Row::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void MessageOfMap_Row::MergeFrom(const MessageOfMap_Row& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfMap.Row) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + col_.MergeFrom(from.col_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MessageOfMap_Row::CopyFrom(const MessageOfMap_Row& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfMap.Row) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MessageOfMap_Row::IsInitialized() const { + return true; +} + +void MessageOfMap_Row::InternalSwap(MessageOfMap_Row* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + col_.InternalSwap(&other->col_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MessageOfMap_Row::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, + file_level_metadata_Message2Clients_2eproto[4]); +} + +// =================================================================== + +class MessageOfMap::_Internal { + public: +}; + +MessageOfMap::MessageOfMap(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + row_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:protobuf.MessageOfMap) +} +MessageOfMap::MessageOfMap(const MessageOfMap& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + row_(from.row_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:protobuf.MessageOfMap) +} + +inline void MessageOfMap::SharedCtor() { +} + +MessageOfMap::~MessageOfMap() { + // @@protoc_insertion_point(destructor:protobuf.MessageOfMap) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void MessageOfMap::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void MessageOfMap::ArenaDtor(void* object) { + MessageOfMap* _this = reinterpret_cast< MessageOfMap* >(object); + (void)_this; +} +void MessageOfMap::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void MessageOfMap::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void MessageOfMap::Clear() { +// @@protoc_insertion_point(message_clear_start:protobuf.MessageOfMap) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + row_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MessageOfMap::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated .protobuf.MessageOfMap.Row row = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_row(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* MessageOfMap::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageOfMap) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .protobuf.MessageOfMap.Row row = 2; + for (unsigned int i = 0, + n = static_cast(this->_internal_row_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, this->_internal_row(i), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageOfMap) + return target; +} + +size_t MessageOfMap::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:protobuf.MessageOfMap) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .protobuf.MessageOfMap.Row row = 2; + total_size += 1UL * this->_internal_row_size(); + for (const auto& msg : this->row_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageOfMap::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MessageOfMap::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MessageOfMap::GetClassData() const { return &_class_data_; } + +void MessageOfMap::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void MessageOfMap::MergeFrom(const MessageOfMap& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageOfMap) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + row_.MergeFrom(from.row_); + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MessageOfMap::CopyFrom(const MessageOfMap& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageOfMap) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MessageOfMap::IsInitialized() const { + return true; +} + +void MessageOfMap::InternalSwap(MessageOfMap* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + row_.InternalSwap(&other->row_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MessageOfMap::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, + file_level_metadata_Message2Clients_2eproto[5]); +} + +// =================================================================== + +class MessageToClient::_Internal { + public: + static const ::protobuf::MessageOfMap& map_massage(const MessageToClient* msg); +}; + +const ::protobuf::MessageOfMap& +MessageToClient::_Internal::map_massage(const MessageToClient* msg) { + return *msg->map_massage_; +} +MessageToClient::MessageToClient(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned), + human_message_(arena), + butcher_message_(arena), + prop_message_(arena) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:protobuf.MessageToClient) +} +MessageToClient::MessageToClient(const MessageToClient& from) + : ::PROTOBUF_NAMESPACE_ID::Message(), + human_message_(from.human_message_), + butcher_message_(from.butcher_message_), + prop_message_(from.prop_message_) { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_map_massage()) { + map_massage_ = new ::protobuf::MessageOfMap(*from.map_massage_); + } else { + map_massage_ = nullptr; + } + // @@protoc_insertion_point(copy_constructor:protobuf.MessageToClient) +} + +inline void MessageToClient::SharedCtor() { +map_massage_ = nullptr; +} + +MessageToClient::~MessageToClient() { + // @@protoc_insertion_point(destructor:protobuf.MessageToClient) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void MessageToClient::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete map_massage_; +} + +void MessageToClient::ArenaDtor(void* object) { + MessageToClient* _this = reinterpret_cast< MessageToClient* >(object); + (void)_this; +} +void MessageToClient::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void MessageToClient::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void MessageToClient::Clear() { +// @@protoc_insertion_point(message_clear_start:protobuf.MessageToClient) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + human_message_.Clear(); + butcher_message_.Clear(); + prop_message_.Clear(); + if (GetArenaForAllocation() == nullptr && map_massage_ != nullptr) { + delete map_massage_; + } + map_massage_ = nullptr; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MessageToClient::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated .protobuf.MessageOfHuman human_message = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_human_message(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .protobuf.MessageOfButcher butcher_message = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_butcher_message(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .protobuf.MessageOfProp prop_message = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_prop_message(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); + } else + goto handle_unusual; + continue; + // .protobuf.MessageOfMap map_massage = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_map_massage(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* MessageToClient::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:protobuf.MessageToClient) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .protobuf.MessageOfHuman human_message = 1; + for (unsigned int i = 0, + n = static_cast(this->_internal_human_message_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, this->_internal_human_message(i), target, stream); + } + + // repeated .protobuf.MessageOfButcher butcher_message = 2; + for (unsigned int i = 0, + n = static_cast(this->_internal_butcher_message_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, this->_internal_butcher_message(i), target, stream); + } + + // repeated .protobuf.MessageOfProp prop_message = 3; + for (unsigned int i = 0, + n = static_cast(this->_internal_prop_message_size()); i < n; i++) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, this->_internal_prop_message(i), target, stream); + } + + // .protobuf.MessageOfMap map_massage = 4; + if (this->_internal_has_map_massage()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage( + 4, _Internal::map_massage(this), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:protobuf.MessageToClient) + return target; +} + +size_t MessageToClient::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:protobuf.MessageToClient) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .protobuf.MessageOfHuman human_message = 1; + total_size += 1UL * this->_internal_human_message_size(); + for (const auto& msg : this->human_message_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // repeated .protobuf.MessageOfButcher butcher_message = 2; + total_size += 1UL * this->_internal_butcher_message_size(); + for (const auto& msg : this->butcher_message_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // repeated .protobuf.MessageOfProp prop_message = 3; + total_size += 1UL * this->_internal_prop_message_size(); + for (const auto& msg : this->prop_message_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // .protobuf.MessageOfMap map_massage = 4; + if (this->_internal_has_map_massage()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *map_massage_); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MessageToClient::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MessageToClient::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MessageToClient::GetClassData() const { return &_class_data_; } + +void MessageToClient::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void MessageToClient::MergeFrom(const MessageToClient& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MessageToClient) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + human_message_.MergeFrom(from.human_message_); + butcher_message_.MergeFrom(from.butcher_message_); + prop_message_.MergeFrom(from.prop_message_); + if (from._internal_has_map_massage()) { + _internal_mutable_map_massage()->::protobuf::MessageOfMap::MergeFrom(from._internal_map_massage()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MessageToClient::CopyFrom(const MessageToClient& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MessageToClient) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MessageToClient::IsInitialized() const { + return true; +} + +void MessageToClient::InternalSwap(MessageToClient* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + human_message_.InternalSwap(&other->human_message_); + butcher_message_.InternalSwap(&other->butcher_message_); + prop_message_.InternalSwap(&other->prop_message_); + swap(map_massage_, other->map_massage_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MessageToClient::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, + file_level_metadata_Message2Clients_2eproto[6]); +} + +// =================================================================== + +class MoveRes::_Internal { + public: +}; + +MoveRes::MoveRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:protobuf.MoveRes) +} +MoveRes::MoveRes(const MoveRes& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&actual_speed_, &from.actual_speed_, + static_cast(reinterpret_cast(&actual_angle_) - + reinterpret_cast(&actual_speed_)) + sizeof(actual_angle_)); + // @@protoc_insertion_point(copy_constructor:protobuf.MoveRes) +} + +inline void MoveRes::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&actual_speed_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&actual_angle_) - + reinterpret_cast(&actual_speed_)) + sizeof(actual_angle_)); +} + +MoveRes::~MoveRes() { + // @@protoc_insertion_point(destructor:protobuf.MoveRes) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void MoveRes::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void MoveRes::ArenaDtor(void* object) { + MoveRes* _this = reinterpret_cast< MoveRes* >(object); + (void)_this; +} +void MoveRes::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void MoveRes::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void MoveRes::Clear() { +// @@protoc_insertion_point(message_clear_start:protobuf.MoveRes) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&actual_speed_, 0, static_cast( + reinterpret_cast(&actual_angle_) - + reinterpret_cast(&actual_speed_)) + sizeof(actual_angle_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MoveRes::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // int64 actual_speed = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + actual_speed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double actual_angle = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + actual_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* MoveRes::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:protobuf.MoveRes) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int64 actual_speed = 1; + if (this->_internal_actual_speed() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_actual_speed(), target); + } + + // double actual_angle = 2; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_actual_angle = this->_internal_actual_angle(); + uint64_t raw_actual_angle; + memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle)); + if (raw_actual_angle != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_actual_angle(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:protobuf.MoveRes) + return target; +} + +size_t MoveRes::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:protobuf.MoveRes) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 actual_speed = 1; + if (this->_internal_actual_speed() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_actual_speed()); + } + + // double actual_angle = 2; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_actual_angle = this->_internal_actual_angle(); + uint64_t raw_actual_angle; + memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle)); + if (raw_actual_angle != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveRes::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MoveRes::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveRes::GetClassData() const { return &_class_data_; } + +void MoveRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void MoveRes::MergeFrom(const MoveRes& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MoveRes) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_actual_speed() != 0) { + _internal_set_actual_speed(from._internal_actual_speed()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_actual_angle = from._internal_actual_angle(); + uint64_t raw_actual_angle; + memcpy(&raw_actual_angle, &tmp_actual_angle, sizeof(tmp_actual_angle)); + if (raw_actual_angle != 0) { + _internal_set_actual_angle(from._internal_actual_angle()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MoveRes::CopyFrom(const MoveRes& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MoveRes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoveRes::IsInitialized() const { + return true; +} + +void MoveRes::InternalSwap(MoveRes* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MoveRes, actual_angle_) + + sizeof(MoveRes::actual_angle_) + - PROTOBUF_FIELD_OFFSET(MoveRes, actual_speed_)>( + reinterpret_cast(&actual_speed_), + reinterpret_cast(&other->actual_speed_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MoveRes::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, + file_level_metadata_Message2Clients_2eproto[7]); +} + +// =================================================================== + +class BoolRes::_Internal { + public: +}; + +BoolRes::BoolRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:protobuf.BoolRes) +} +BoolRes::BoolRes(const BoolRes& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + act_success_ = from.act_success_; + // @@protoc_insertion_point(copy_constructor:protobuf.BoolRes) +} + +inline void BoolRes::SharedCtor() { +act_success_ = false; +} + +BoolRes::~BoolRes() { + // @@protoc_insertion_point(destructor:protobuf.BoolRes) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void BoolRes::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void BoolRes::ArenaDtor(void* object) { + BoolRes* _this = reinterpret_cast< BoolRes* >(object); + (void)_this; +} +void BoolRes::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void BoolRes::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void BoolRes::Clear() { +// @@protoc_insertion_point(message_clear_start:protobuf.BoolRes) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + act_success_ = false; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* BoolRes::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // bool act_success = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + act_success_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* BoolRes::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:protobuf.BoolRes) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // bool act_success = 1; + if (this->_internal_act_success() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_act_success(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:protobuf.BoolRes) + return target; +} + +size_t BoolRes::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:protobuf.BoolRes) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // bool act_success = 1; + if (this->_internal_act_success() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData BoolRes::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + BoolRes::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*BoolRes::GetClassData() const { return &_class_data_; } + +void BoolRes::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void BoolRes::MergeFrom(const BoolRes& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:protobuf.BoolRes) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_act_success() != 0) { + _internal_set_act_success(from._internal_act_success()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void BoolRes::CopyFrom(const BoolRes& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:protobuf.BoolRes) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool BoolRes::IsInitialized() const { + return true; +} + +void BoolRes::InternalSwap(BoolRes* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(act_success_, other->act_success_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata BoolRes::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_Message2Clients_2eproto_getter, &descriptor_table_Message2Clients_2eproto_once, + file_level_metadata_Message2Clients_2eproto[8]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace protobuf +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::protobuf::MessageOfHuman* Arena::CreateMaybeMessage< ::protobuf::MessageOfHuman >(Arena* arena) { + return Arena::CreateMessageInternal< ::protobuf::MessageOfHuman >(arena); +} +template<> PROTOBUF_NOINLINE ::protobuf::MessageOfButcher* Arena::CreateMaybeMessage< ::protobuf::MessageOfButcher >(Arena* arena) { + return Arena::CreateMessageInternal< ::protobuf::MessageOfButcher >(arena); +} +template<> PROTOBUF_NOINLINE ::protobuf::MessageOfProp* Arena::CreateMaybeMessage< ::protobuf::MessageOfProp >(Arena* arena) { + return Arena::CreateMessageInternal< ::protobuf::MessageOfProp >(arena); +} +template<> PROTOBUF_NOINLINE ::protobuf::MessageOfPickedProp* Arena::CreateMaybeMessage< ::protobuf::MessageOfPickedProp >(Arena* arena) { + return Arena::CreateMessageInternal< ::protobuf::MessageOfPickedProp >(arena); +} +template<> PROTOBUF_NOINLINE ::protobuf::MessageOfMap_Row* Arena::CreateMaybeMessage< ::protobuf::MessageOfMap_Row >(Arena* arena) { + return Arena::CreateMessageInternal< ::protobuf::MessageOfMap_Row >(arena); +} +template<> PROTOBUF_NOINLINE ::protobuf::MessageOfMap* Arena::CreateMaybeMessage< ::protobuf::MessageOfMap >(Arena* arena) { + return Arena::CreateMessageInternal< ::protobuf::MessageOfMap >(arena); +} +template<> PROTOBUF_NOINLINE ::protobuf::MessageToClient* Arena::CreateMaybeMessage< ::protobuf::MessageToClient >(Arena* arena) { + return Arena::CreateMessageInternal< ::protobuf::MessageToClient >(arena); +} +template<> PROTOBUF_NOINLINE ::protobuf::MoveRes* Arena::CreateMaybeMessage< ::protobuf::MoveRes >(Arena* arena) { + return Arena::CreateMessageInternal< ::protobuf::MoveRes >(arena); +} +template<> PROTOBUF_NOINLINE ::protobuf::BoolRes* Arena::CreateMaybeMessage< ::protobuf::BoolRes >(Arena* arena) { + return Arena::CreateMessageInternal< ::protobuf::BoolRes >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/CAPI/proto/Message2Clients.pb.h b/CAPI/proto/Message2Clients.pb.h new file mode 100644 index 0000000..b0fedc2 --- /dev/null +++ b/CAPI/proto/Message2Clients.pb.h @@ -0,0 +1,3166 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Message2Clients.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_Message2Clients_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_Message2Clients_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3019000 +#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 3019004 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "MessageType.pb.h" +#include "Message2Server.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_Message2Clients_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_Message2Clients_2eproto { + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[9] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Message2Clients_2eproto; +namespace protobuf { +class BoolRes; +struct BoolResDefaultTypeInternal; +extern BoolResDefaultTypeInternal _BoolRes_default_instance_; +class MessageOfButcher; +struct MessageOfButcherDefaultTypeInternal; +extern MessageOfButcherDefaultTypeInternal _MessageOfButcher_default_instance_; +class MessageOfHuman; +struct MessageOfHumanDefaultTypeInternal; +extern MessageOfHumanDefaultTypeInternal _MessageOfHuman_default_instance_; +class MessageOfMap; +struct MessageOfMapDefaultTypeInternal; +extern MessageOfMapDefaultTypeInternal _MessageOfMap_default_instance_; +class MessageOfMap_Row; +struct MessageOfMap_RowDefaultTypeInternal; +extern MessageOfMap_RowDefaultTypeInternal _MessageOfMap_Row_default_instance_; +class MessageOfPickedProp; +struct MessageOfPickedPropDefaultTypeInternal; +extern MessageOfPickedPropDefaultTypeInternal _MessageOfPickedProp_default_instance_; +class MessageOfProp; +struct MessageOfPropDefaultTypeInternal; +extern MessageOfPropDefaultTypeInternal _MessageOfProp_default_instance_; +class MessageToClient; +struct MessageToClientDefaultTypeInternal; +extern MessageToClientDefaultTypeInternal _MessageToClient_default_instance_; +class MoveRes; +struct MoveResDefaultTypeInternal; +extern MoveResDefaultTypeInternal _MoveRes_default_instance_; +} // namespace protobuf +PROTOBUF_NAMESPACE_OPEN +template<> ::protobuf::BoolRes* Arena::CreateMaybeMessage<::protobuf::BoolRes>(Arena*); +template<> ::protobuf::MessageOfButcher* Arena::CreateMaybeMessage<::protobuf::MessageOfButcher>(Arena*); +template<> ::protobuf::MessageOfHuman* Arena::CreateMaybeMessage<::protobuf::MessageOfHuman>(Arena*); +template<> ::protobuf::MessageOfMap* Arena::CreateMaybeMessage<::protobuf::MessageOfMap>(Arena*); +template<> ::protobuf::MessageOfMap_Row* Arena::CreateMaybeMessage<::protobuf::MessageOfMap_Row>(Arena*); +template<> ::protobuf::MessageOfPickedProp* Arena::CreateMaybeMessage<::protobuf::MessageOfPickedProp>(Arena*); +template<> ::protobuf::MessageOfProp* Arena::CreateMaybeMessage<::protobuf::MessageOfProp>(Arena*); +template<> ::protobuf::MessageToClient* Arena::CreateMaybeMessage<::protobuf::MessageToClient>(Arena*); +template<> ::protobuf::MoveRes* Arena::CreateMaybeMessage<::protobuf::MoveRes>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace protobuf { + +// =================================================================== + +class MessageOfHuman final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfHuman) */ { + public: + inline MessageOfHuman() : MessageOfHuman(nullptr) {} + ~MessageOfHuman() override; + explicit constexpr MessageOfHuman(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MessageOfHuman(const MessageOfHuman& from); + MessageOfHuman(MessageOfHuman&& from) noexcept + : MessageOfHuman() { + *this = ::std::move(from); + } + + inline MessageOfHuman& operator=(const MessageOfHuman& from) { + CopyFrom(from); + return *this; + } + inline MessageOfHuman& operator=(MessageOfHuman&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const MessageOfHuman& default_instance() { + return *internal_default_instance(); + } + static inline const MessageOfHuman* internal_default_instance() { + return reinterpret_cast( + &_MessageOfHuman_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(MessageOfHuman& a, MessageOfHuman& b) { + a.Swap(&b); + } + inline void Swap(MessageOfHuman* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(MessageOfHuman* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MessageOfHuman* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MessageOfHuman& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MessageOfHuman& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MessageOfHuman* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "protobuf.MessageOfHuman"; + } + protected: + explicit MessageOfHuman(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kBuffFieldNumber = 16, + kXFieldNumber = 1, + kYFieldNumber = 2, + kSpeedFieldNumber = 3, + kLifeFieldNumber = 4, + kTimeUntilSkillAvailableFieldNumber = 6, + kHangedTimeFieldNumber = 5, + kPlaceFieldNumber = 7, + kPropFieldNumber = 8, + kHumanTypeFieldNumber = 9, + kGuidFieldNumber = 10, + kChairTimeFieldNumber = 12, + kGroundTimeFieldNumber = 14, + kPlayerIdFieldNumber = 15, + kOnChairFieldNumber = 11, + kOnGroundFieldNumber = 13, + }; + // repeated .protobuf.HumanBuffType buff = 16; + int buff_size() const; + private: + int _internal_buff_size() const; + public: + void clear_buff(); + private: + ::protobuf::HumanBuffType _internal_buff(int index) const; + void _internal_add_buff(::protobuf::HumanBuffType value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_buff(); + public: + ::protobuf::HumanBuffType buff(int index) const; + void set_buff(int index, ::protobuf::HumanBuffType value); + void add_buff(::protobuf::HumanBuffType value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField& buff() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_buff(); + + // int32 x = 1; + void clear_x(); + int32_t x() const; + void set_x(int32_t value); + private: + int32_t _internal_x() const; + void _internal_set_x(int32_t value); + public: + + // int32 y = 2; + void clear_y(); + int32_t y() const; + void set_y(int32_t value); + private: + int32_t _internal_y() const; + void _internal_set_y(int32_t value); + public: + + // int32 speed = 3; + void clear_speed(); + int32_t speed() const; + void set_speed(int32_t value); + private: + int32_t _internal_speed() const; + void _internal_set_speed(int32_t value); + public: + + // int32 life = 4; + void clear_life(); + int32_t life() const; + void set_life(int32_t value); + private: + int32_t _internal_life() const; + void _internal_set_life(int32_t value); + public: + + // double time_until_skill_available = 6; + void clear_time_until_skill_available(); + double time_until_skill_available() const; + void set_time_until_skill_available(double value); + private: + double _internal_time_until_skill_available() const; + void _internal_set_time_until_skill_available(double value); + public: + + // int32 hanged_time = 5; + void clear_hanged_time(); + int32_t hanged_time() const; + void set_hanged_time(int32_t value); + private: + int32_t _internal_hanged_time() const; + void _internal_set_hanged_time(int32_t value); + public: + + // .protobuf.PlaceType place = 7; + void clear_place(); + ::protobuf::PlaceType place() const; + void set_place(::protobuf::PlaceType value); + private: + ::protobuf::PlaceType _internal_place() const; + void _internal_set_place(::protobuf::PlaceType value); + public: + + // .protobuf.PropType prop = 8; + void clear_prop(); + ::protobuf::PropType prop() const; + void set_prop(::protobuf::PropType value); + private: + ::protobuf::PropType _internal_prop() const; + void _internal_set_prop(::protobuf::PropType value); + public: + + // .protobuf.HumanType human_type = 9; + void clear_human_type(); + ::protobuf::HumanType human_type() const; + void set_human_type(::protobuf::HumanType value); + private: + ::protobuf::HumanType _internal_human_type() const; + void _internal_set_human_type(::protobuf::HumanType value); + public: + + // int64 guid = 10; + void clear_guid(); + int64_t guid() const; + void set_guid(int64_t value); + private: + int64_t _internal_guid() const; + void _internal_set_guid(int64_t value); + public: + + // double chair_time = 12; + void clear_chair_time(); + double chair_time() const; + void set_chair_time(double value); + private: + double _internal_chair_time() const; + void _internal_set_chair_time(double value); + public: + + // double ground_time = 14; + void clear_ground_time(); + double ground_time() const; + void set_ground_time(double value); + private: + double _internal_ground_time() const; + void _internal_set_ground_time(double value); + public: + + // int64 player_id = 15; + void clear_player_id(); + int64_t player_id() const; + void set_player_id(int64_t value); + private: + int64_t _internal_player_id() const; + void _internal_set_player_id(int64_t value); + public: + + // bool on_chair = 11; + void clear_on_chair(); + bool on_chair() const; + void set_on_chair(bool value); + private: + bool _internal_on_chair() const; + void _internal_set_on_chair(bool value); + public: + + // bool on_ground = 13; + void clear_on_ground(); + bool on_ground() const; + void set_on_ground(bool value); + private: + bool _internal_on_ground() const; + void _internal_set_on_ground(bool value); + public: + + // @@protoc_insertion_point(class_scope:protobuf.MessageOfHuman) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField buff_; + mutable std::atomic _buff_cached_byte_size_; + int32_t x_; + int32_t y_; + int32_t speed_; + int32_t life_; + double time_until_skill_available_; + int32_t hanged_time_; + int place_; + int prop_; + int human_type_; + int64_t guid_; + double chair_time_; + double ground_time_; + int64_t player_id_; + bool on_chair_; + bool on_ground_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_Message2Clients_2eproto; +}; +// ------------------------------------------------------------------- + +class MessageOfButcher final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfButcher) */ { + public: + inline MessageOfButcher() : MessageOfButcher(nullptr) {} + ~MessageOfButcher() override; + explicit constexpr MessageOfButcher(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MessageOfButcher(const MessageOfButcher& from); + MessageOfButcher(MessageOfButcher&& from) noexcept + : MessageOfButcher() { + *this = ::std::move(from); + } + + inline MessageOfButcher& operator=(const MessageOfButcher& from) { + CopyFrom(from); + return *this; + } + inline MessageOfButcher& operator=(MessageOfButcher&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const MessageOfButcher& default_instance() { + return *internal_default_instance(); + } + static inline const MessageOfButcher* internal_default_instance() { + return reinterpret_cast( + &_MessageOfButcher_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(MessageOfButcher& a, MessageOfButcher& b) { + a.Swap(&b); + } + inline void Swap(MessageOfButcher* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(MessageOfButcher* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MessageOfButcher* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MessageOfButcher& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MessageOfButcher& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MessageOfButcher* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "protobuf.MessageOfButcher"; + } + protected: + explicit MessageOfButcher(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kBuffFieldNumber = 12, + kXFieldNumber = 1, + kYFieldNumber = 2, + kSpeedFieldNumber = 3, + kDamageFieldNumber = 4, + kTimeUntilSkillAvailableFieldNumber = 5, + kPlaceFieldNumber = 6, + kPropFieldNumber = 7, + kGuidFieldNumber = 9, + kButcherTypeFieldNumber = 8, + kMovableFieldNumber = 10, + kPlayerIDFieldNumber = 11, + }; + // repeated .protobuf.ButcherBuffType buff = 12; + int buff_size() const; + private: + int _internal_buff_size() const; + public: + void clear_buff(); + private: + ::protobuf::ButcherBuffType _internal_buff(int index) const; + void _internal_add_buff(::protobuf::ButcherBuffType value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_buff(); + public: + ::protobuf::ButcherBuffType buff(int index) const; + void set_buff(int index, ::protobuf::ButcherBuffType value); + void add_buff(::protobuf::ButcherBuffType value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField& buff() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_buff(); + + // int32 x = 1; + void clear_x(); + int32_t x() const; + void set_x(int32_t value); + private: + int32_t _internal_x() const; + void _internal_set_x(int32_t value); + public: + + // int32 y = 2; + void clear_y(); + int32_t y() const; + void set_y(int32_t value); + private: + int32_t _internal_y() const; + void _internal_set_y(int32_t value); + public: + + // int32 speed = 3; + void clear_speed(); + int32_t speed() const; + void set_speed(int32_t value); + private: + int32_t _internal_speed() const; + void _internal_set_speed(int32_t value); + public: + + // int32 damage = 4; + void clear_damage(); + int32_t damage() const; + void set_damage(int32_t value); + private: + int32_t _internal_damage() const; + void _internal_set_damage(int32_t value); + public: + + // double time_until_skill_available = 5; + void clear_time_until_skill_available(); + double time_until_skill_available() const; + void set_time_until_skill_available(double value); + private: + double _internal_time_until_skill_available() const; + void _internal_set_time_until_skill_available(double value); + public: + + // .protobuf.PlaceType place = 6; + void clear_place(); + ::protobuf::PlaceType place() const; + void set_place(::protobuf::PlaceType value); + private: + ::protobuf::PlaceType _internal_place() const; + void _internal_set_place(::protobuf::PlaceType value); + public: + + // .protobuf.PropType prop = 7; + void clear_prop(); + ::protobuf::PropType prop() const; + void set_prop(::protobuf::PropType value); + private: + ::protobuf::PropType _internal_prop() const; + void _internal_set_prop(::protobuf::PropType value); + public: + + // int64 guid = 9; + void clear_guid(); + int64_t guid() const; + void set_guid(int64_t value); + private: + int64_t _internal_guid() const; + void _internal_set_guid(int64_t value); + public: + + // .protobuf.ButcherType butcher_type = 8; + void clear_butcher_type(); + ::protobuf::ButcherType butcher_type() const; + void set_butcher_type(::protobuf::ButcherType value); + private: + ::protobuf::ButcherType _internal_butcher_type() const; + void _internal_set_butcher_type(::protobuf::ButcherType value); + public: + + // bool movable = 10; + void clear_movable(); + bool movable() const; + void set_movable(bool value); + private: + bool _internal_movable() const; + void _internal_set_movable(bool value); + public: + + // int64 playerID = 11; + void clear_playerid(); + int64_t playerid() const; + void set_playerid(int64_t value); + private: + int64_t _internal_playerid() const; + void _internal_set_playerid(int64_t value); + public: + + // @@protoc_insertion_point(class_scope:protobuf.MessageOfButcher) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField buff_; + mutable std::atomic _buff_cached_byte_size_; + int32_t x_; + int32_t y_; + int32_t speed_; + int32_t damage_; + double time_until_skill_available_; + int place_; + int prop_; + int64_t guid_; + int butcher_type_; + bool movable_; + int64_t playerid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_Message2Clients_2eproto; +}; +// ------------------------------------------------------------------- + +class MessageOfProp final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfProp) */ { + public: + inline MessageOfProp() : MessageOfProp(nullptr) {} + ~MessageOfProp() override; + explicit constexpr MessageOfProp(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MessageOfProp(const MessageOfProp& from); + MessageOfProp(MessageOfProp&& from) noexcept + : MessageOfProp() { + *this = ::std::move(from); + } + + inline MessageOfProp& operator=(const MessageOfProp& from) { + CopyFrom(from); + return *this; + } + inline MessageOfProp& operator=(MessageOfProp&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const MessageOfProp& default_instance() { + return *internal_default_instance(); + } + static inline const MessageOfProp* internal_default_instance() { + return reinterpret_cast( + &_MessageOfProp_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(MessageOfProp& a, MessageOfProp& b) { + a.Swap(&b); + } + inline void Swap(MessageOfProp* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(MessageOfProp* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MessageOfProp* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MessageOfProp& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MessageOfProp& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MessageOfProp* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "protobuf.MessageOfProp"; + } + protected: + explicit MessageOfProp(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTypeFieldNumber = 1, + kXFieldNumber = 2, + kFacingDirectionFieldNumber = 4, + kYFieldNumber = 3, + kPlaceFieldNumber = 6, + kGuidFieldNumber = 5, + }; + // .protobuf.PropType type = 1; + void clear_type(); + ::protobuf::PropType type() const; + void set_type(::protobuf::PropType value); + private: + ::protobuf::PropType _internal_type() const; + void _internal_set_type(::protobuf::PropType value); + public: + + // int32 x = 2; + void clear_x(); + int32_t x() const; + void set_x(int32_t value); + private: + int32_t _internal_x() const; + void _internal_set_x(int32_t value); + public: + + // double facing_direction = 4; + void clear_facing_direction(); + double facing_direction() const; + void set_facing_direction(double value); + private: + double _internal_facing_direction() const; + void _internal_set_facing_direction(double value); + public: + + // int32 y = 3; + void clear_y(); + int32_t y() const; + void set_y(int32_t value); + private: + int32_t _internal_y() const; + void _internal_set_y(int32_t value); + public: + + // .protobuf.PlaceType place = 6; + void clear_place(); + ::protobuf::PlaceType place() const; + void set_place(::protobuf::PlaceType value); + private: + ::protobuf::PlaceType _internal_place() const; + void _internal_set_place(::protobuf::PlaceType value); + public: + + // int64 guid = 5; + void clear_guid(); + int64_t guid() const; + void set_guid(int64_t value); + private: + int64_t _internal_guid() const; + void _internal_set_guid(int64_t value); + public: + + // @@protoc_insertion_point(class_scope:protobuf.MessageOfProp) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int type_; + int32_t x_; + double facing_direction_; + int32_t y_; + int place_; + int64_t guid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_Message2Clients_2eproto; +}; +// ------------------------------------------------------------------- + +class MessageOfPickedProp final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfPickedProp) */ { + public: + inline MessageOfPickedProp() : MessageOfPickedProp(nullptr) {} + ~MessageOfPickedProp() override; + explicit constexpr MessageOfPickedProp(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MessageOfPickedProp(const MessageOfPickedProp& from); + MessageOfPickedProp(MessageOfPickedProp&& from) noexcept + : MessageOfPickedProp() { + *this = ::std::move(from); + } + + inline MessageOfPickedProp& operator=(const MessageOfPickedProp& from) { + CopyFrom(from); + return *this; + } + inline MessageOfPickedProp& operator=(MessageOfPickedProp&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const MessageOfPickedProp& default_instance() { + return *internal_default_instance(); + } + static inline const MessageOfPickedProp* internal_default_instance() { + return reinterpret_cast( + &_MessageOfPickedProp_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(MessageOfPickedProp& a, MessageOfPickedProp& b) { + a.Swap(&b); + } + inline void Swap(MessageOfPickedProp* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(MessageOfPickedProp* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MessageOfPickedProp* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MessageOfPickedProp& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MessageOfPickedProp& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MessageOfPickedProp* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "protobuf.MessageOfPickedProp"; + } + protected: + explicit MessageOfPickedProp(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kTypeFieldNumber = 1, + kXFieldNumber = 2, + kFacingDirectionFieldNumber = 4, + kMappingIdFieldNumber = 5, + kYFieldNumber = 3, + }; + // .protobuf.PropType type = 1; + void clear_type(); + ::protobuf::PropType type() const; + void set_type(::protobuf::PropType value); + private: + ::protobuf::PropType _internal_type() const; + void _internal_set_type(::protobuf::PropType value); + public: + + // int32 x = 2; + void clear_x(); + int32_t x() const; + void set_x(int32_t value); + private: + int32_t _internal_x() const; + void _internal_set_x(int32_t value); + public: + + // double facing_direction = 4; + void clear_facing_direction(); + double facing_direction() const; + void set_facing_direction(double value); + private: + double _internal_facing_direction() const; + void _internal_set_facing_direction(double value); + public: + + // int64 mapping_id = 5; + void clear_mapping_id(); + int64_t mapping_id() const; + void set_mapping_id(int64_t value); + private: + int64_t _internal_mapping_id() const; + void _internal_set_mapping_id(int64_t value); + public: + + // int32 y = 3; + void clear_y(); + int32_t y() const; + void set_y(int32_t value); + private: + int32_t _internal_y() const; + void _internal_set_y(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:protobuf.MessageOfPickedProp) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int type_; + int32_t x_; + double facing_direction_; + int64_t mapping_id_; + int32_t y_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_Message2Clients_2eproto; +}; +// ------------------------------------------------------------------- + +class MessageOfMap_Row final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfMap.Row) */ { + public: + inline MessageOfMap_Row() : MessageOfMap_Row(nullptr) {} + ~MessageOfMap_Row() override; + explicit constexpr MessageOfMap_Row(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MessageOfMap_Row(const MessageOfMap_Row& from); + MessageOfMap_Row(MessageOfMap_Row&& from) noexcept + : MessageOfMap_Row() { + *this = ::std::move(from); + } + + inline MessageOfMap_Row& operator=(const MessageOfMap_Row& from) { + CopyFrom(from); + return *this; + } + inline MessageOfMap_Row& operator=(MessageOfMap_Row&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const MessageOfMap_Row& default_instance() { + return *internal_default_instance(); + } + static inline const MessageOfMap_Row* internal_default_instance() { + return reinterpret_cast( + &_MessageOfMap_Row_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(MessageOfMap_Row& a, MessageOfMap_Row& b) { + a.Swap(&b); + } + inline void Swap(MessageOfMap_Row* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(MessageOfMap_Row* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MessageOfMap_Row* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MessageOfMap_Row& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MessageOfMap_Row& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MessageOfMap_Row* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "protobuf.MessageOfMap.Row"; + } + protected: + explicit MessageOfMap_Row(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kColFieldNumber = 1, + }; + // repeated .protobuf.PlaceType col = 1; + int col_size() const; + private: + int _internal_col_size() const; + public: + void clear_col(); + private: + ::protobuf::PlaceType _internal_col(int index) const; + void _internal_add_col(::protobuf::PlaceType value); + ::PROTOBUF_NAMESPACE_ID::RepeatedField* _internal_mutable_col(); + public: + ::protobuf::PlaceType col(int index) const; + void set_col(int index, ::protobuf::PlaceType value); + void add_col(::protobuf::PlaceType value); + const ::PROTOBUF_NAMESPACE_ID::RepeatedField& col() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedField* mutable_col(); + + // @@protoc_insertion_point(class_scope:protobuf.MessageOfMap.Row) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedField col_; + mutable std::atomic _col_cached_byte_size_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_Message2Clients_2eproto; +}; +// ------------------------------------------------------------------- + +class MessageOfMap final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageOfMap) */ { + public: + inline MessageOfMap() : MessageOfMap(nullptr) {} + ~MessageOfMap() override; + explicit constexpr MessageOfMap(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MessageOfMap(const MessageOfMap& from); + MessageOfMap(MessageOfMap&& from) noexcept + : MessageOfMap() { + *this = ::std::move(from); + } + + inline MessageOfMap& operator=(const MessageOfMap& from) { + CopyFrom(from); + return *this; + } + inline MessageOfMap& operator=(MessageOfMap&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const MessageOfMap& default_instance() { + return *internal_default_instance(); + } + static inline const MessageOfMap* internal_default_instance() { + return reinterpret_cast( + &_MessageOfMap_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(MessageOfMap& a, MessageOfMap& b) { + a.Swap(&b); + } + inline void Swap(MessageOfMap* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(MessageOfMap* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MessageOfMap* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MessageOfMap& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MessageOfMap& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MessageOfMap* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "protobuf.MessageOfMap"; + } + protected: + explicit MessageOfMap(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + typedef MessageOfMap_Row Row; + + // accessors ------------------------------------------------------- + + enum : int { + kRowFieldNumber = 2, + }; + // repeated .protobuf.MessageOfMap.Row row = 2; + int row_size() const; + private: + int _internal_row_size() const; + public: + void clear_row(); + ::protobuf::MessageOfMap_Row* mutable_row(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::protobuf::MessageOfMap_Row >* + mutable_row(); + private: + const ::protobuf::MessageOfMap_Row& _internal_row(int index) const; + ::protobuf::MessageOfMap_Row* _internal_add_row(); + public: + const ::protobuf::MessageOfMap_Row& row(int index) const; + ::protobuf::MessageOfMap_Row* add_row(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::protobuf::MessageOfMap_Row >& + row() const; + + // @@protoc_insertion_point(class_scope:protobuf.MessageOfMap) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::protobuf::MessageOfMap_Row > row_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_Message2Clients_2eproto; +}; +// ------------------------------------------------------------------- + +class MessageToClient final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MessageToClient) */ { + public: + inline MessageToClient() : MessageToClient(nullptr) {} + ~MessageToClient() override; + explicit constexpr MessageToClient(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MessageToClient(const MessageToClient& from); + MessageToClient(MessageToClient&& from) noexcept + : MessageToClient() { + *this = ::std::move(from); + } + + inline MessageToClient& operator=(const MessageToClient& from) { + CopyFrom(from); + return *this; + } + inline MessageToClient& operator=(MessageToClient&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const MessageToClient& default_instance() { + return *internal_default_instance(); + } + static inline const MessageToClient* internal_default_instance() { + return reinterpret_cast( + &_MessageToClient_default_instance_); + } + static constexpr int kIndexInFileMessages = + 6; + + friend void swap(MessageToClient& a, MessageToClient& b) { + a.Swap(&b); + } + inline void Swap(MessageToClient* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(MessageToClient* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MessageToClient* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MessageToClient& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MessageToClient& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MessageToClient* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "protobuf.MessageToClient"; + } + protected: + explicit MessageToClient(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kHumanMessageFieldNumber = 1, + kButcherMessageFieldNumber = 2, + kPropMessageFieldNumber = 3, + kMapMassageFieldNumber = 4, + }; + // repeated .protobuf.MessageOfHuman human_message = 1; + int human_message_size() const; + private: + int _internal_human_message_size() const; + public: + void clear_human_message(); + ::protobuf::MessageOfHuman* mutable_human_message(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::protobuf::MessageOfHuman >* + mutable_human_message(); + private: + const ::protobuf::MessageOfHuman& _internal_human_message(int index) const; + ::protobuf::MessageOfHuman* _internal_add_human_message(); + public: + const ::protobuf::MessageOfHuman& human_message(int index) const; + ::protobuf::MessageOfHuman* add_human_message(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::protobuf::MessageOfHuman >& + human_message() const; + + // repeated .protobuf.MessageOfButcher butcher_message = 2; + int butcher_message_size() const; + private: + int _internal_butcher_message_size() const; + public: + void clear_butcher_message(); + ::protobuf::MessageOfButcher* mutable_butcher_message(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::protobuf::MessageOfButcher >* + mutable_butcher_message(); + private: + const ::protobuf::MessageOfButcher& _internal_butcher_message(int index) const; + ::protobuf::MessageOfButcher* _internal_add_butcher_message(); + public: + const ::protobuf::MessageOfButcher& butcher_message(int index) const; + ::protobuf::MessageOfButcher* add_butcher_message(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::protobuf::MessageOfButcher >& + butcher_message() const; + + // repeated .protobuf.MessageOfProp prop_message = 3; + int prop_message_size() const; + private: + int _internal_prop_message_size() const; + public: + void clear_prop_message(); + ::protobuf::MessageOfProp* mutable_prop_message(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::protobuf::MessageOfProp >* + mutable_prop_message(); + private: + const ::protobuf::MessageOfProp& _internal_prop_message(int index) const; + ::protobuf::MessageOfProp* _internal_add_prop_message(); + public: + const ::protobuf::MessageOfProp& prop_message(int index) const; + ::protobuf::MessageOfProp* add_prop_message(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::protobuf::MessageOfProp >& + prop_message() const; + + // .protobuf.MessageOfMap map_massage = 4; + bool has_map_massage() const; + private: + bool _internal_has_map_massage() const; + public: + void clear_map_massage(); + const ::protobuf::MessageOfMap& map_massage() const; + PROTOBUF_NODISCARD ::protobuf::MessageOfMap* release_map_massage(); + ::protobuf::MessageOfMap* mutable_map_massage(); + void set_allocated_map_massage(::protobuf::MessageOfMap* map_massage); + private: + const ::protobuf::MessageOfMap& _internal_map_massage() const; + ::protobuf::MessageOfMap* _internal_mutable_map_massage(); + public: + void unsafe_arena_set_allocated_map_massage( + ::protobuf::MessageOfMap* map_massage); + ::protobuf::MessageOfMap* unsafe_arena_release_map_massage(); + + // @@protoc_insertion_point(class_scope:protobuf.MessageToClient) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::protobuf::MessageOfHuman > human_message_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::protobuf::MessageOfButcher > butcher_message_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::protobuf::MessageOfProp > prop_message_; + ::protobuf::MessageOfMap* map_massage_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_Message2Clients_2eproto; +}; +// ------------------------------------------------------------------- + +class MoveRes final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MoveRes) */ { + public: + inline MoveRes() : MoveRes(nullptr) {} + ~MoveRes() override; + explicit constexpr MoveRes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MoveRes(const MoveRes& from); + MoveRes(MoveRes&& from) noexcept + : MoveRes() { + *this = ::std::move(from); + } + + inline MoveRes& operator=(const MoveRes& from) { + CopyFrom(from); + return *this; + } + inline MoveRes& operator=(MoveRes&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const MoveRes& default_instance() { + return *internal_default_instance(); + } + static inline const MoveRes* internal_default_instance() { + return reinterpret_cast( + &_MoveRes_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(MoveRes& a, MoveRes& b) { + a.Swap(&b); + } + inline void Swap(MoveRes* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(MoveRes* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MoveRes* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MoveRes& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MoveRes& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoveRes* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "protobuf.MoveRes"; + } + protected: + explicit MoveRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kActualSpeedFieldNumber = 1, + kActualAngleFieldNumber = 2, + }; + // int64 actual_speed = 1; + void clear_actual_speed(); + int64_t actual_speed() const; + void set_actual_speed(int64_t value); + private: + int64_t _internal_actual_speed() const; + void _internal_set_actual_speed(int64_t value); + public: + + // double actual_angle = 2; + void clear_actual_angle(); + double actual_angle() const; + void set_actual_angle(double value); + private: + double _internal_actual_angle() const; + void _internal_set_actual_angle(double value); + public: + + // @@protoc_insertion_point(class_scope:protobuf.MoveRes) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int64_t actual_speed_; + double actual_angle_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_Message2Clients_2eproto; +}; +// ------------------------------------------------------------------- + +class BoolRes final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.BoolRes) */ { + public: + inline BoolRes() : BoolRes(nullptr) {} + ~BoolRes() override; + explicit constexpr BoolRes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + BoolRes(const BoolRes& from); + BoolRes(BoolRes&& from) noexcept + : BoolRes() { + *this = ::std::move(from); + } + + inline BoolRes& operator=(const BoolRes& from) { + CopyFrom(from); + return *this; + } + inline BoolRes& operator=(BoolRes&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const BoolRes& default_instance() { + return *internal_default_instance(); + } + static inline const BoolRes* internal_default_instance() { + return reinterpret_cast( + &_BoolRes_default_instance_); + } + static constexpr int kIndexInFileMessages = + 8; + + friend void swap(BoolRes& a, BoolRes& b) { + a.Swap(&b); + } + inline void Swap(BoolRes* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(BoolRes* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + BoolRes* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const BoolRes& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const BoolRes& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(BoolRes* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "protobuf.BoolRes"; + } + protected: + explicit BoolRes(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kActSuccessFieldNumber = 1, + }; + // bool act_success = 1; + void clear_act_success(); + bool act_success() const; + void set_act_success(bool value); + private: + bool _internal_act_success() const; + void _internal_set_act_success(bool value); + public: + + // @@protoc_insertion_point(class_scope:protobuf.BoolRes) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + bool act_success_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_Message2Clients_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// MessageOfHuman + +// int32 x = 1; +inline void MessageOfHuman::clear_x() { + x_ = 0; +} +inline int32_t MessageOfHuman::_internal_x() const { + return x_; +} +inline int32_t MessageOfHuman::x() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfHuman.x) + return _internal_x(); +} +inline void MessageOfHuman::_internal_set_x(int32_t value) { + + x_ = value; +} +inline void MessageOfHuman::set_x(int32_t value) { + _internal_set_x(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfHuman.x) +} + +// int32 y = 2; +inline void MessageOfHuman::clear_y() { + y_ = 0; +} +inline int32_t MessageOfHuman::_internal_y() const { + return y_; +} +inline int32_t MessageOfHuman::y() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfHuman.y) + return _internal_y(); +} +inline void MessageOfHuman::_internal_set_y(int32_t value) { + + y_ = value; +} +inline void MessageOfHuman::set_y(int32_t value) { + _internal_set_y(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfHuman.y) +} + +// int32 speed = 3; +inline void MessageOfHuman::clear_speed() { + speed_ = 0; +} +inline int32_t MessageOfHuman::_internal_speed() const { + return speed_; +} +inline int32_t MessageOfHuman::speed() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfHuman.speed) + return _internal_speed(); +} +inline void MessageOfHuman::_internal_set_speed(int32_t value) { + + speed_ = value; +} +inline void MessageOfHuman::set_speed(int32_t value) { + _internal_set_speed(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfHuman.speed) +} + +// int32 life = 4; +inline void MessageOfHuman::clear_life() { + life_ = 0; +} +inline int32_t MessageOfHuman::_internal_life() const { + return life_; +} +inline int32_t MessageOfHuman::life() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfHuman.life) + return _internal_life(); +} +inline void MessageOfHuman::_internal_set_life(int32_t value) { + + life_ = value; +} +inline void MessageOfHuman::set_life(int32_t value) { + _internal_set_life(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfHuman.life) +} + +// int32 hanged_time = 5; +inline void MessageOfHuman::clear_hanged_time() { + hanged_time_ = 0; +} +inline int32_t MessageOfHuman::_internal_hanged_time() const { + return hanged_time_; +} +inline int32_t MessageOfHuman::hanged_time() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfHuman.hanged_time) + return _internal_hanged_time(); +} +inline void MessageOfHuman::_internal_set_hanged_time(int32_t value) { + + hanged_time_ = value; +} +inline void MessageOfHuman::set_hanged_time(int32_t value) { + _internal_set_hanged_time(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfHuman.hanged_time) +} + +// double time_until_skill_available = 6; +inline void MessageOfHuman::clear_time_until_skill_available() { + time_until_skill_available_ = 0; +} +inline double MessageOfHuman::_internal_time_until_skill_available() const { + return time_until_skill_available_; +} +inline double MessageOfHuman::time_until_skill_available() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfHuman.time_until_skill_available) + return _internal_time_until_skill_available(); +} +inline void MessageOfHuman::_internal_set_time_until_skill_available(double value) { + + time_until_skill_available_ = value; +} +inline void MessageOfHuman::set_time_until_skill_available(double value) { + _internal_set_time_until_skill_available(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfHuman.time_until_skill_available) +} + +// .protobuf.PlaceType place = 7; +inline void MessageOfHuman::clear_place() { + place_ = 0; +} +inline ::protobuf::PlaceType MessageOfHuman::_internal_place() const { + return static_cast< ::protobuf::PlaceType >(place_); +} +inline ::protobuf::PlaceType MessageOfHuman::place() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfHuman.place) + return _internal_place(); +} +inline void MessageOfHuman::_internal_set_place(::protobuf::PlaceType value) { + + place_ = value; +} +inline void MessageOfHuman::set_place(::protobuf::PlaceType value) { + _internal_set_place(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfHuman.place) +} + +// .protobuf.PropType prop = 8; +inline void MessageOfHuman::clear_prop() { + prop_ = 0; +} +inline ::protobuf::PropType MessageOfHuman::_internal_prop() const { + return static_cast< ::protobuf::PropType >(prop_); +} +inline ::protobuf::PropType MessageOfHuman::prop() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfHuman.prop) + return _internal_prop(); +} +inline void MessageOfHuman::_internal_set_prop(::protobuf::PropType value) { + + prop_ = value; +} +inline void MessageOfHuman::set_prop(::protobuf::PropType value) { + _internal_set_prop(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfHuman.prop) +} + +// .protobuf.HumanType human_type = 9; +inline void MessageOfHuman::clear_human_type() { + human_type_ = 0; +} +inline ::protobuf::HumanType MessageOfHuman::_internal_human_type() const { + return static_cast< ::protobuf::HumanType >(human_type_); +} +inline ::protobuf::HumanType MessageOfHuman::human_type() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfHuman.human_type) + return _internal_human_type(); +} +inline void MessageOfHuman::_internal_set_human_type(::protobuf::HumanType value) { + + human_type_ = value; +} +inline void MessageOfHuman::set_human_type(::protobuf::HumanType value) { + _internal_set_human_type(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfHuman.human_type) +} + +// int64 guid = 10; +inline void MessageOfHuman::clear_guid() { + guid_ = int64_t{0}; +} +inline int64_t MessageOfHuman::_internal_guid() const { + return guid_; +} +inline int64_t MessageOfHuman::guid() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfHuman.guid) + return _internal_guid(); +} +inline void MessageOfHuman::_internal_set_guid(int64_t value) { + + guid_ = value; +} +inline void MessageOfHuman::set_guid(int64_t value) { + _internal_set_guid(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfHuman.guid) +} + +// bool on_chair = 11; +inline void MessageOfHuman::clear_on_chair() { + on_chair_ = false; +} +inline bool MessageOfHuman::_internal_on_chair() const { + return on_chair_; +} +inline bool MessageOfHuman::on_chair() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfHuman.on_chair) + return _internal_on_chair(); +} +inline void MessageOfHuman::_internal_set_on_chair(bool value) { + + on_chair_ = value; +} +inline void MessageOfHuman::set_on_chair(bool value) { + _internal_set_on_chair(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfHuman.on_chair) +} + +// double chair_time = 12; +inline void MessageOfHuman::clear_chair_time() { + chair_time_ = 0; +} +inline double MessageOfHuman::_internal_chair_time() const { + return chair_time_; +} +inline double MessageOfHuman::chair_time() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfHuman.chair_time) + return _internal_chair_time(); +} +inline void MessageOfHuman::_internal_set_chair_time(double value) { + + chair_time_ = value; +} +inline void MessageOfHuman::set_chair_time(double value) { + _internal_set_chair_time(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfHuman.chair_time) +} + +// bool on_ground = 13; +inline void MessageOfHuman::clear_on_ground() { + on_ground_ = false; +} +inline bool MessageOfHuman::_internal_on_ground() const { + return on_ground_; +} +inline bool MessageOfHuman::on_ground() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfHuman.on_ground) + return _internal_on_ground(); +} +inline void MessageOfHuman::_internal_set_on_ground(bool value) { + + on_ground_ = value; +} +inline void MessageOfHuman::set_on_ground(bool value) { + _internal_set_on_ground(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfHuman.on_ground) +} + +// double ground_time = 14; +inline void MessageOfHuman::clear_ground_time() { + ground_time_ = 0; +} +inline double MessageOfHuman::_internal_ground_time() const { + return ground_time_; +} +inline double MessageOfHuman::ground_time() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfHuman.ground_time) + return _internal_ground_time(); +} +inline void MessageOfHuman::_internal_set_ground_time(double value) { + + ground_time_ = value; +} +inline void MessageOfHuman::set_ground_time(double value) { + _internal_set_ground_time(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfHuman.ground_time) +} + +// int64 player_id = 15; +inline void MessageOfHuman::clear_player_id() { + player_id_ = int64_t{0}; +} +inline int64_t MessageOfHuman::_internal_player_id() const { + return player_id_; +} +inline int64_t MessageOfHuman::player_id() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfHuman.player_id) + return _internal_player_id(); +} +inline void MessageOfHuman::_internal_set_player_id(int64_t value) { + + player_id_ = value; +} +inline void MessageOfHuman::set_player_id(int64_t value) { + _internal_set_player_id(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfHuman.player_id) +} + +// repeated .protobuf.HumanBuffType buff = 16; +inline int MessageOfHuman::_internal_buff_size() const { + return buff_.size(); +} +inline int MessageOfHuman::buff_size() const { + return _internal_buff_size(); +} +inline void MessageOfHuman::clear_buff() { + buff_.Clear(); +} +inline ::protobuf::HumanBuffType MessageOfHuman::_internal_buff(int index) const { + return static_cast< ::protobuf::HumanBuffType >(buff_.Get(index)); +} +inline ::protobuf::HumanBuffType MessageOfHuman::buff(int index) const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfHuman.buff) + return _internal_buff(index); +} +inline void MessageOfHuman::set_buff(int index, ::protobuf::HumanBuffType value) { + buff_.Set(index, value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfHuman.buff) +} +inline void MessageOfHuman::_internal_add_buff(::protobuf::HumanBuffType value) { + buff_.Add(value); +} +inline void MessageOfHuman::add_buff(::protobuf::HumanBuffType value) { + _internal_add_buff(value); + // @@protoc_insertion_point(field_add:protobuf.MessageOfHuman.buff) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& +MessageOfHuman::buff() const { + // @@protoc_insertion_point(field_list:protobuf.MessageOfHuman.buff) + return buff_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +MessageOfHuman::_internal_mutable_buff() { + return &buff_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +MessageOfHuman::mutable_buff() { + // @@protoc_insertion_point(field_mutable_list:protobuf.MessageOfHuman.buff) + return _internal_mutable_buff(); +} + +// ------------------------------------------------------------------- + +// MessageOfButcher + +// int32 x = 1; +inline void MessageOfButcher::clear_x() { + x_ = 0; +} +inline int32_t MessageOfButcher::_internal_x() const { + return x_; +} +inline int32_t MessageOfButcher::x() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfButcher.x) + return _internal_x(); +} +inline void MessageOfButcher::_internal_set_x(int32_t value) { + + x_ = value; +} +inline void MessageOfButcher::set_x(int32_t value) { + _internal_set_x(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfButcher.x) +} + +// int32 y = 2; +inline void MessageOfButcher::clear_y() { + y_ = 0; +} +inline int32_t MessageOfButcher::_internal_y() const { + return y_; +} +inline int32_t MessageOfButcher::y() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfButcher.y) + return _internal_y(); +} +inline void MessageOfButcher::_internal_set_y(int32_t value) { + + y_ = value; +} +inline void MessageOfButcher::set_y(int32_t value) { + _internal_set_y(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfButcher.y) +} + +// int32 speed = 3; +inline void MessageOfButcher::clear_speed() { + speed_ = 0; +} +inline int32_t MessageOfButcher::_internal_speed() const { + return speed_; +} +inline int32_t MessageOfButcher::speed() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfButcher.speed) + return _internal_speed(); +} +inline void MessageOfButcher::_internal_set_speed(int32_t value) { + + speed_ = value; +} +inline void MessageOfButcher::set_speed(int32_t value) { + _internal_set_speed(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfButcher.speed) +} + +// int32 damage = 4; +inline void MessageOfButcher::clear_damage() { + damage_ = 0; +} +inline int32_t MessageOfButcher::_internal_damage() const { + return damage_; +} +inline int32_t MessageOfButcher::damage() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfButcher.damage) + return _internal_damage(); +} +inline void MessageOfButcher::_internal_set_damage(int32_t value) { + + damage_ = value; +} +inline void MessageOfButcher::set_damage(int32_t value) { + _internal_set_damage(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfButcher.damage) +} + +// double time_until_skill_available = 5; +inline void MessageOfButcher::clear_time_until_skill_available() { + time_until_skill_available_ = 0; +} +inline double MessageOfButcher::_internal_time_until_skill_available() const { + return time_until_skill_available_; +} +inline double MessageOfButcher::time_until_skill_available() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfButcher.time_until_skill_available) + return _internal_time_until_skill_available(); +} +inline void MessageOfButcher::_internal_set_time_until_skill_available(double value) { + + time_until_skill_available_ = value; +} +inline void MessageOfButcher::set_time_until_skill_available(double value) { + _internal_set_time_until_skill_available(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfButcher.time_until_skill_available) +} + +// .protobuf.PlaceType place = 6; +inline void MessageOfButcher::clear_place() { + place_ = 0; +} +inline ::protobuf::PlaceType MessageOfButcher::_internal_place() const { + return static_cast< ::protobuf::PlaceType >(place_); +} +inline ::protobuf::PlaceType MessageOfButcher::place() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfButcher.place) + return _internal_place(); +} +inline void MessageOfButcher::_internal_set_place(::protobuf::PlaceType value) { + + place_ = value; +} +inline void MessageOfButcher::set_place(::protobuf::PlaceType value) { + _internal_set_place(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfButcher.place) +} + +// .protobuf.PropType prop = 7; +inline void MessageOfButcher::clear_prop() { + prop_ = 0; +} +inline ::protobuf::PropType MessageOfButcher::_internal_prop() const { + return static_cast< ::protobuf::PropType >(prop_); +} +inline ::protobuf::PropType MessageOfButcher::prop() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfButcher.prop) + return _internal_prop(); +} +inline void MessageOfButcher::_internal_set_prop(::protobuf::PropType value) { + + prop_ = value; +} +inline void MessageOfButcher::set_prop(::protobuf::PropType value) { + _internal_set_prop(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfButcher.prop) +} + +// .protobuf.ButcherType butcher_type = 8; +inline void MessageOfButcher::clear_butcher_type() { + butcher_type_ = 0; +} +inline ::protobuf::ButcherType MessageOfButcher::_internal_butcher_type() const { + return static_cast< ::protobuf::ButcherType >(butcher_type_); +} +inline ::protobuf::ButcherType MessageOfButcher::butcher_type() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfButcher.butcher_type) + return _internal_butcher_type(); +} +inline void MessageOfButcher::_internal_set_butcher_type(::protobuf::ButcherType value) { + + butcher_type_ = value; +} +inline void MessageOfButcher::set_butcher_type(::protobuf::ButcherType value) { + _internal_set_butcher_type(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfButcher.butcher_type) +} + +// int64 guid = 9; +inline void MessageOfButcher::clear_guid() { + guid_ = int64_t{0}; +} +inline int64_t MessageOfButcher::_internal_guid() const { + return guid_; +} +inline int64_t MessageOfButcher::guid() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfButcher.guid) + return _internal_guid(); +} +inline void MessageOfButcher::_internal_set_guid(int64_t value) { + + guid_ = value; +} +inline void MessageOfButcher::set_guid(int64_t value) { + _internal_set_guid(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfButcher.guid) +} + +// bool movable = 10; +inline void MessageOfButcher::clear_movable() { + movable_ = false; +} +inline bool MessageOfButcher::_internal_movable() const { + return movable_; +} +inline bool MessageOfButcher::movable() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfButcher.movable) + return _internal_movable(); +} +inline void MessageOfButcher::_internal_set_movable(bool value) { + + movable_ = value; +} +inline void MessageOfButcher::set_movable(bool value) { + _internal_set_movable(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfButcher.movable) +} + +// int64 playerID = 11; +inline void MessageOfButcher::clear_playerid() { + playerid_ = int64_t{0}; +} +inline int64_t MessageOfButcher::_internal_playerid() const { + return playerid_; +} +inline int64_t MessageOfButcher::playerid() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfButcher.playerID) + return _internal_playerid(); +} +inline void MessageOfButcher::_internal_set_playerid(int64_t value) { + + playerid_ = value; +} +inline void MessageOfButcher::set_playerid(int64_t value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfButcher.playerID) +} + +// repeated .protobuf.ButcherBuffType buff = 12; +inline int MessageOfButcher::_internal_buff_size() const { + return buff_.size(); +} +inline int MessageOfButcher::buff_size() const { + return _internal_buff_size(); +} +inline void MessageOfButcher::clear_buff() { + buff_.Clear(); +} +inline ::protobuf::ButcherBuffType MessageOfButcher::_internal_buff(int index) const { + return static_cast< ::protobuf::ButcherBuffType >(buff_.Get(index)); +} +inline ::protobuf::ButcherBuffType MessageOfButcher::buff(int index) const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfButcher.buff) + return _internal_buff(index); +} +inline void MessageOfButcher::set_buff(int index, ::protobuf::ButcherBuffType value) { + buff_.Set(index, value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfButcher.buff) +} +inline void MessageOfButcher::_internal_add_buff(::protobuf::ButcherBuffType value) { + buff_.Add(value); +} +inline void MessageOfButcher::add_buff(::protobuf::ButcherBuffType value) { + _internal_add_buff(value); + // @@protoc_insertion_point(field_add:protobuf.MessageOfButcher.buff) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& +MessageOfButcher::buff() const { + // @@protoc_insertion_point(field_list:protobuf.MessageOfButcher.buff) + return buff_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +MessageOfButcher::_internal_mutable_buff() { + return &buff_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +MessageOfButcher::mutable_buff() { + // @@protoc_insertion_point(field_mutable_list:protobuf.MessageOfButcher.buff) + return _internal_mutable_buff(); +} + +// ------------------------------------------------------------------- + +// MessageOfProp + +// .protobuf.PropType type = 1; +inline void MessageOfProp::clear_type() { + type_ = 0; +} +inline ::protobuf::PropType MessageOfProp::_internal_type() const { + return static_cast< ::protobuf::PropType >(type_); +} +inline ::protobuf::PropType MessageOfProp::type() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfProp.type) + return _internal_type(); +} +inline void MessageOfProp::_internal_set_type(::protobuf::PropType value) { + + type_ = value; +} +inline void MessageOfProp::set_type(::protobuf::PropType value) { + _internal_set_type(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfProp.type) +} + +// int32 x = 2; +inline void MessageOfProp::clear_x() { + x_ = 0; +} +inline int32_t MessageOfProp::_internal_x() const { + return x_; +} +inline int32_t MessageOfProp::x() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfProp.x) + return _internal_x(); +} +inline void MessageOfProp::_internal_set_x(int32_t value) { + + x_ = value; +} +inline void MessageOfProp::set_x(int32_t value) { + _internal_set_x(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfProp.x) +} + +// int32 y = 3; +inline void MessageOfProp::clear_y() { + y_ = 0; +} +inline int32_t MessageOfProp::_internal_y() const { + return y_; +} +inline int32_t MessageOfProp::y() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfProp.y) + return _internal_y(); +} +inline void MessageOfProp::_internal_set_y(int32_t value) { + + y_ = value; +} +inline void MessageOfProp::set_y(int32_t value) { + _internal_set_y(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfProp.y) +} + +// double facing_direction = 4; +inline void MessageOfProp::clear_facing_direction() { + facing_direction_ = 0; +} +inline double MessageOfProp::_internal_facing_direction() const { + return facing_direction_; +} +inline double MessageOfProp::facing_direction() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfProp.facing_direction) + return _internal_facing_direction(); +} +inline void MessageOfProp::_internal_set_facing_direction(double value) { + + facing_direction_ = value; +} +inline void MessageOfProp::set_facing_direction(double value) { + _internal_set_facing_direction(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfProp.facing_direction) +} + +// int64 guid = 5; +inline void MessageOfProp::clear_guid() { + guid_ = int64_t{0}; +} +inline int64_t MessageOfProp::_internal_guid() const { + return guid_; +} +inline int64_t MessageOfProp::guid() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfProp.guid) + return _internal_guid(); +} +inline void MessageOfProp::_internal_set_guid(int64_t value) { + + guid_ = value; +} +inline void MessageOfProp::set_guid(int64_t value) { + _internal_set_guid(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfProp.guid) +} + +// .protobuf.PlaceType place = 6; +inline void MessageOfProp::clear_place() { + place_ = 0; +} +inline ::protobuf::PlaceType MessageOfProp::_internal_place() const { + return static_cast< ::protobuf::PlaceType >(place_); +} +inline ::protobuf::PlaceType MessageOfProp::place() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfProp.place) + return _internal_place(); +} +inline void MessageOfProp::_internal_set_place(::protobuf::PlaceType value) { + + place_ = value; +} +inline void MessageOfProp::set_place(::protobuf::PlaceType value) { + _internal_set_place(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfProp.place) +} + +// ------------------------------------------------------------------- + +// MessageOfPickedProp + +// .protobuf.PropType type = 1; +inline void MessageOfPickedProp::clear_type() { + type_ = 0; +} +inline ::protobuf::PropType MessageOfPickedProp::_internal_type() const { + return static_cast< ::protobuf::PropType >(type_); +} +inline ::protobuf::PropType MessageOfPickedProp::type() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfPickedProp.type) + return _internal_type(); +} +inline void MessageOfPickedProp::_internal_set_type(::protobuf::PropType value) { + + type_ = value; +} +inline void MessageOfPickedProp::set_type(::protobuf::PropType value) { + _internal_set_type(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfPickedProp.type) +} + +// int32 x = 2; +inline void MessageOfPickedProp::clear_x() { + x_ = 0; +} +inline int32_t MessageOfPickedProp::_internal_x() const { + return x_; +} +inline int32_t MessageOfPickedProp::x() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfPickedProp.x) + return _internal_x(); +} +inline void MessageOfPickedProp::_internal_set_x(int32_t value) { + + x_ = value; +} +inline void MessageOfPickedProp::set_x(int32_t value) { + _internal_set_x(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfPickedProp.x) +} + +// int32 y = 3; +inline void MessageOfPickedProp::clear_y() { + y_ = 0; +} +inline int32_t MessageOfPickedProp::_internal_y() const { + return y_; +} +inline int32_t MessageOfPickedProp::y() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfPickedProp.y) + return _internal_y(); +} +inline void MessageOfPickedProp::_internal_set_y(int32_t value) { + + y_ = value; +} +inline void MessageOfPickedProp::set_y(int32_t value) { + _internal_set_y(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfPickedProp.y) +} + +// double facing_direction = 4; +inline void MessageOfPickedProp::clear_facing_direction() { + facing_direction_ = 0; +} +inline double MessageOfPickedProp::_internal_facing_direction() const { + return facing_direction_; +} +inline double MessageOfPickedProp::facing_direction() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfPickedProp.facing_direction) + return _internal_facing_direction(); +} +inline void MessageOfPickedProp::_internal_set_facing_direction(double value) { + + facing_direction_ = value; +} +inline void MessageOfPickedProp::set_facing_direction(double value) { + _internal_set_facing_direction(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfPickedProp.facing_direction) +} + +// int64 mapping_id = 5; +inline void MessageOfPickedProp::clear_mapping_id() { + mapping_id_ = int64_t{0}; +} +inline int64_t MessageOfPickedProp::_internal_mapping_id() const { + return mapping_id_; +} +inline int64_t MessageOfPickedProp::mapping_id() const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfPickedProp.mapping_id) + return _internal_mapping_id(); +} +inline void MessageOfPickedProp::_internal_set_mapping_id(int64_t value) { + + mapping_id_ = value; +} +inline void MessageOfPickedProp::set_mapping_id(int64_t value) { + _internal_set_mapping_id(value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfPickedProp.mapping_id) +} + +// ------------------------------------------------------------------- + +// MessageOfMap_Row + +// repeated .protobuf.PlaceType col = 1; +inline int MessageOfMap_Row::_internal_col_size() const { + return col_.size(); +} +inline int MessageOfMap_Row::col_size() const { + return _internal_col_size(); +} +inline void MessageOfMap_Row::clear_col() { + col_.Clear(); +} +inline ::protobuf::PlaceType MessageOfMap_Row::_internal_col(int index) const { + return static_cast< ::protobuf::PlaceType >(col_.Get(index)); +} +inline ::protobuf::PlaceType MessageOfMap_Row::col(int index) const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfMap.Row.col) + return _internal_col(index); +} +inline void MessageOfMap_Row::set_col(int index, ::protobuf::PlaceType value) { + col_.Set(index, value); + // @@protoc_insertion_point(field_set:protobuf.MessageOfMap.Row.col) +} +inline void MessageOfMap_Row::_internal_add_col(::protobuf::PlaceType value) { + col_.Add(value); +} +inline void MessageOfMap_Row::add_col(::protobuf::PlaceType value) { + _internal_add_col(value); + // @@protoc_insertion_point(field_add:protobuf.MessageOfMap.Row.col) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField& +MessageOfMap_Row::col() const { + // @@protoc_insertion_point(field_list:protobuf.MessageOfMap.Row.col) + return col_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +MessageOfMap_Row::_internal_mutable_col() { + return &col_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedField* +MessageOfMap_Row::mutable_col() { + // @@protoc_insertion_point(field_mutable_list:protobuf.MessageOfMap.Row.col) + return _internal_mutable_col(); +} + +// ------------------------------------------------------------------- + +// MessageOfMap + +// repeated .protobuf.MessageOfMap.Row row = 2; +inline int MessageOfMap::_internal_row_size() const { + return row_.size(); +} +inline int MessageOfMap::row_size() const { + return _internal_row_size(); +} +inline void MessageOfMap::clear_row() { + row_.Clear(); +} +inline ::protobuf::MessageOfMap_Row* MessageOfMap::mutable_row(int index) { + // @@protoc_insertion_point(field_mutable:protobuf.MessageOfMap.row) + return row_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::protobuf::MessageOfMap_Row >* +MessageOfMap::mutable_row() { + // @@protoc_insertion_point(field_mutable_list:protobuf.MessageOfMap.row) + return &row_; +} +inline const ::protobuf::MessageOfMap_Row& MessageOfMap::_internal_row(int index) const { + return row_.Get(index); +} +inline const ::protobuf::MessageOfMap_Row& MessageOfMap::row(int index) const { + // @@protoc_insertion_point(field_get:protobuf.MessageOfMap.row) + return _internal_row(index); +} +inline ::protobuf::MessageOfMap_Row* MessageOfMap::_internal_add_row() { + return row_.Add(); +} +inline ::protobuf::MessageOfMap_Row* MessageOfMap::add_row() { + ::protobuf::MessageOfMap_Row* _add = _internal_add_row(); + // @@protoc_insertion_point(field_add:protobuf.MessageOfMap.row) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::protobuf::MessageOfMap_Row >& +MessageOfMap::row() const { + // @@protoc_insertion_point(field_list:protobuf.MessageOfMap.row) + return row_; +} + +// ------------------------------------------------------------------- + +// MessageToClient + +// repeated .protobuf.MessageOfHuman human_message = 1; +inline int MessageToClient::_internal_human_message_size() const { + return human_message_.size(); +} +inline int MessageToClient::human_message_size() const { + return _internal_human_message_size(); +} +inline void MessageToClient::clear_human_message() { + human_message_.Clear(); +} +inline ::protobuf::MessageOfHuman* MessageToClient::mutable_human_message(int index) { + // @@protoc_insertion_point(field_mutable:protobuf.MessageToClient.human_message) + return human_message_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::protobuf::MessageOfHuman >* +MessageToClient::mutable_human_message() { + // @@protoc_insertion_point(field_mutable_list:protobuf.MessageToClient.human_message) + return &human_message_; +} +inline const ::protobuf::MessageOfHuman& MessageToClient::_internal_human_message(int index) const { + return human_message_.Get(index); +} +inline const ::protobuf::MessageOfHuman& MessageToClient::human_message(int index) const { + // @@protoc_insertion_point(field_get:protobuf.MessageToClient.human_message) + return _internal_human_message(index); +} +inline ::protobuf::MessageOfHuman* MessageToClient::_internal_add_human_message() { + return human_message_.Add(); +} +inline ::protobuf::MessageOfHuman* MessageToClient::add_human_message() { + ::protobuf::MessageOfHuman* _add = _internal_add_human_message(); + // @@protoc_insertion_point(field_add:protobuf.MessageToClient.human_message) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::protobuf::MessageOfHuman >& +MessageToClient::human_message() const { + // @@protoc_insertion_point(field_list:protobuf.MessageToClient.human_message) + return human_message_; +} + +// repeated .protobuf.MessageOfButcher butcher_message = 2; +inline int MessageToClient::_internal_butcher_message_size() const { + return butcher_message_.size(); +} +inline int MessageToClient::butcher_message_size() const { + return _internal_butcher_message_size(); +} +inline void MessageToClient::clear_butcher_message() { + butcher_message_.Clear(); +} +inline ::protobuf::MessageOfButcher* MessageToClient::mutable_butcher_message(int index) { + // @@protoc_insertion_point(field_mutable:protobuf.MessageToClient.butcher_message) + return butcher_message_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::protobuf::MessageOfButcher >* +MessageToClient::mutable_butcher_message() { + // @@protoc_insertion_point(field_mutable_list:protobuf.MessageToClient.butcher_message) + return &butcher_message_; +} +inline const ::protobuf::MessageOfButcher& MessageToClient::_internal_butcher_message(int index) const { + return butcher_message_.Get(index); +} +inline const ::protobuf::MessageOfButcher& MessageToClient::butcher_message(int index) const { + // @@protoc_insertion_point(field_get:protobuf.MessageToClient.butcher_message) + return _internal_butcher_message(index); +} +inline ::protobuf::MessageOfButcher* MessageToClient::_internal_add_butcher_message() { + return butcher_message_.Add(); +} +inline ::protobuf::MessageOfButcher* MessageToClient::add_butcher_message() { + ::protobuf::MessageOfButcher* _add = _internal_add_butcher_message(); + // @@protoc_insertion_point(field_add:protobuf.MessageToClient.butcher_message) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::protobuf::MessageOfButcher >& +MessageToClient::butcher_message() const { + // @@protoc_insertion_point(field_list:protobuf.MessageToClient.butcher_message) + return butcher_message_; +} + +// repeated .protobuf.MessageOfProp prop_message = 3; +inline int MessageToClient::_internal_prop_message_size() const { + return prop_message_.size(); +} +inline int MessageToClient::prop_message_size() const { + return _internal_prop_message_size(); +} +inline void MessageToClient::clear_prop_message() { + prop_message_.Clear(); +} +inline ::protobuf::MessageOfProp* MessageToClient::mutable_prop_message(int index) { + // @@protoc_insertion_point(field_mutable:protobuf.MessageToClient.prop_message) + return prop_message_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::protobuf::MessageOfProp >* +MessageToClient::mutable_prop_message() { + // @@protoc_insertion_point(field_mutable_list:protobuf.MessageToClient.prop_message) + return &prop_message_; +} +inline const ::protobuf::MessageOfProp& MessageToClient::_internal_prop_message(int index) const { + return prop_message_.Get(index); +} +inline const ::protobuf::MessageOfProp& MessageToClient::prop_message(int index) const { + // @@protoc_insertion_point(field_get:protobuf.MessageToClient.prop_message) + return _internal_prop_message(index); +} +inline ::protobuf::MessageOfProp* MessageToClient::_internal_add_prop_message() { + return prop_message_.Add(); +} +inline ::protobuf::MessageOfProp* MessageToClient::add_prop_message() { + ::protobuf::MessageOfProp* _add = _internal_add_prop_message(); + // @@protoc_insertion_point(field_add:protobuf.MessageToClient.prop_message) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::protobuf::MessageOfProp >& +MessageToClient::prop_message() const { + // @@protoc_insertion_point(field_list:protobuf.MessageToClient.prop_message) + return prop_message_; +} + +// .protobuf.MessageOfMap map_massage = 4; +inline bool MessageToClient::_internal_has_map_massage() const { + return this != internal_default_instance() && map_massage_ != nullptr; +} +inline bool MessageToClient::has_map_massage() const { + return _internal_has_map_massage(); +} +inline void MessageToClient::clear_map_massage() { + if (GetArenaForAllocation() == nullptr && map_massage_ != nullptr) { + delete map_massage_; + } + map_massage_ = nullptr; +} +inline const ::protobuf::MessageOfMap& MessageToClient::_internal_map_massage() const { + const ::protobuf::MessageOfMap* p = map_massage_; + return p != nullptr ? *p : reinterpret_cast( + ::protobuf::_MessageOfMap_default_instance_); +} +inline const ::protobuf::MessageOfMap& MessageToClient::map_massage() const { + // @@protoc_insertion_point(field_get:protobuf.MessageToClient.map_massage) + return _internal_map_massage(); +} +inline void MessageToClient::unsafe_arena_set_allocated_map_massage( + ::protobuf::MessageOfMap* map_massage) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(map_massage_); + } + map_massage_ = map_massage; + if (map_massage) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:protobuf.MessageToClient.map_massage) +} +inline ::protobuf::MessageOfMap* MessageToClient::release_map_massage() { + + ::protobuf::MessageOfMap* temp = map_massage_; + map_massage_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::protobuf::MessageOfMap* MessageToClient::unsafe_arena_release_map_massage() { + // @@protoc_insertion_point(field_release:protobuf.MessageToClient.map_massage) + + ::protobuf::MessageOfMap* temp = map_massage_; + map_massage_ = nullptr; + return temp; +} +inline ::protobuf::MessageOfMap* MessageToClient::_internal_mutable_map_massage() { + + if (map_massage_ == nullptr) { + auto* p = CreateMaybeMessage<::protobuf::MessageOfMap>(GetArenaForAllocation()); + map_massage_ = p; + } + return map_massage_; +} +inline ::protobuf::MessageOfMap* MessageToClient::mutable_map_massage() { + ::protobuf::MessageOfMap* _msg = _internal_mutable_map_massage(); + // @@protoc_insertion_point(field_mutable:protobuf.MessageToClient.map_massage) + return _msg; +} +inline void MessageToClient::set_allocated_map_massage(::protobuf::MessageOfMap* map_massage) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete map_massage_; + } + if (map_massage) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper<::protobuf::MessageOfMap>::GetOwningArena(map_massage); + if (message_arena != submessage_arena) { + map_massage = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, map_massage, submessage_arena); + } + + } else { + + } + map_massage_ = map_massage; + // @@protoc_insertion_point(field_set_allocated:protobuf.MessageToClient.map_massage) +} + +// ------------------------------------------------------------------- + +// MoveRes + +// int64 actual_speed = 1; +inline void MoveRes::clear_actual_speed() { + actual_speed_ = int64_t{0}; +} +inline int64_t MoveRes::_internal_actual_speed() const { + return actual_speed_; +} +inline int64_t MoveRes::actual_speed() const { + // @@protoc_insertion_point(field_get:protobuf.MoveRes.actual_speed) + return _internal_actual_speed(); +} +inline void MoveRes::_internal_set_actual_speed(int64_t value) { + + actual_speed_ = value; +} +inline void MoveRes::set_actual_speed(int64_t value) { + _internal_set_actual_speed(value); + // @@protoc_insertion_point(field_set:protobuf.MoveRes.actual_speed) +} + +// double actual_angle = 2; +inline void MoveRes::clear_actual_angle() { + actual_angle_ = 0; +} +inline double MoveRes::_internal_actual_angle() const { + return actual_angle_; +} +inline double MoveRes::actual_angle() const { + // @@protoc_insertion_point(field_get:protobuf.MoveRes.actual_angle) + return _internal_actual_angle(); +} +inline void MoveRes::_internal_set_actual_angle(double value) { + + actual_angle_ = value; +} +inline void MoveRes::set_actual_angle(double value) { + _internal_set_actual_angle(value); + // @@protoc_insertion_point(field_set:protobuf.MoveRes.actual_angle) +} + +// ------------------------------------------------------------------- + +// BoolRes + +// bool act_success = 1; +inline void BoolRes::clear_act_success() { + act_success_ = false; +} +inline bool BoolRes::_internal_act_success() const { + return act_success_; +} +inline bool BoolRes::act_success() const { + // @@protoc_insertion_point(field_get:protobuf.BoolRes.act_success) + return _internal_act_success(); +} +inline void BoolRes::_internal_set_act_success(bool value) { + + act_success_ = value; +} +inline void BoolRes::set_act_success(bool value) { + _internal_set_act_success(value); + // @@protoc_insertion_point(field_set:protobuf.BoolRes.act_success) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace protobuf + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_Message2Clients_2eproto diff --git a/CAPI/proto/Message2Server.grpc.pb.cc b/CAPI/proto/Message2Server.grpc.pb.cc new file mode 100644 index 0000000..0634fea --- /dev/null +++ b/CAPI/proto/Message2Server.grpc.pb.cc @@ -0,0 +1,25 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: Message2Server.proto + +#include "Message2Server.pb.h" +#include "Message2Server.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace protobuf { + +} // namespace protobuf + diff --git a/CAPI/proto/Message2Server.grpc.pb.h b/CAPI/proto/Message2Server.grpc.pb.h new file mode 100644 index 0000000..54216c4 --- /dev/null +++ b/CAPI/proto/Message2Server.grpc.pb.h @@ -0,0 +1,35 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: Message2Server.proto +// Original file comments: +// Message2Server +#ifndef GRPC_Message2Server_2eproto__INCLUDED +#define GRPC_Message2Server_2eproto__INCLUDED + +#include "Message2Server.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace protobuf { + +} // namespace protobuf + + +#endif // GRPC_Message2Server_2eproto__INCLUDED diff --git a/CAPI/proto/Message2Server.pb.cc b/CAPI/proto/Message2Server.pb.cc new file mode 100644 index 0000000..8033590 --- /dev/null +++ b/CAPI/proto/Message2Server.pb.cc @@ -0,0 +1,1680 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Message2Server.proto + +#include "Message2Server.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG +namespace protobuf { +constexpr PlayerMsg::PlayerMsg( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : player_id_(int64_t{0}) + , player_type_(0) + + , _oneof_case_{}{} +struct PlayerMsgDefaultTypeInternal { + constexpr PlayerMsgDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~PlayerMsgDefaultTypeInternal() {} + union { + PlayerMsg _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PlayerMsgDefaultTypeInternal _PlayerMsg_default_instance_; +constexpr MoveMsg::MoveMsg( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : player_id_(int64_t{0}) + , angle_(0) + , time_in_milliseconds_(int64_t{0}){} +struct MoveMsgDefaultTypeInternal { + constexpr MoveMsgDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~MoveMsgDefaultTypeInternal() {} + union { + MoveMsg _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MoveMsgDefaultTypeInternal _MoveMsg_default_instance_; +constexpr PickMsg::PickMsg( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : player_id_(int64_t{0}) + , prop_type_(0) +{} +struct PickMsgDefaultTypeInternal { + constexpr PickMsgDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~PickMsgDefaultTypeInternal() {} + union { + PickMsg _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PickMsgDefaultTypeInternal _PickMsg_default_instance_; +constexpr SendMsg::SendMsg( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : message_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) + , player_id_(int64_t{0}) + , to_player_id_(int64_t{0}){} +struct SendMsgDefaultTypeInternal { + constexpr SendMsgDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~SendMsgDefaultTypeInternal() {} + union { + SendMsg _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SendMsgDefaultTypeInternal _SendMsg_default_instance_; +constexpr AttackMsg::AttackMsg( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : player_id_(int64_t{0}) + , angle_(0){} +struct AttackMsgDefaultTypeInternal { + constexpr AttackMsgDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~AttackMsgDefaultTypeInternal() {} + union { + AttackMsg _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT AttackMsgDefaultTypeInternal _AttackMsg_default_instance_; +constexpr IDMsg::IDMsg( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) + : playerid_(int64_t{0}){} +struct IDMsgDefaultTypeInternal { + constexpr IDMsgDefaultTypeInternal() + : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} + ~IDMsgDefaultTypeInternal() {} + union { + IDMsg _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT IDMsgDefaultTypeInternal _IDMsg_default_instance_; +} // namespace protobuf +static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_Message2Server_2eproto[6]; +static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_Message2Server_2eproto = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_Message2Server_2eproto = nullptr; + +const uint32_t TableStruct_Message2Server_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, _oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, player_type_), + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + ::PROTOBUF_NAMESPACE_ID::internal::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::protobuf::PlayerMsg, job_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, angle_), + PROTOBUF_FIELD_OFFSET(::protobuf::MoveMsg, time_in_milliseconds_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::protobuf::PickMsg, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::protobuf::PickMsg, player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::PickMsg, prop_type_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, to_player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::SendMsg, message_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::protobuf::AttackMsg, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::protobuf::AttackMsg, player_id_), + PROTOBUF_FIELD_OFFSET(::protobuf::AttackMsg, angle_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::protobuf::IDMsg, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::protobuf::IDMsg, playerid_), +}; +static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { + { 0, -1, -1, sizeof(::protobuf::PlayerMsg)}, + { 11, -1, -1, sizeof(::protobuf::MoveMsg)}, + { 20, -1, -1, sizeof(::protobuf::PickMsg)}, + { 28, -1, -1, sizeof(::protobuf::SendMsg)}, + { 37, -1, -1, sizeof(::protobuf::AttackMsg)}, + { 45, -1, -1, sizeof(::protobuf::IDMsg)}, +}; + +static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { + reinterpret_cast(&::protobuf::_PlayerMsg_default_instance_), + reinterpret_cast(&::protobuf::_MoveMsg_default_instance_), + reinterpret_cast(&::protobuf::_PickMsg_default_instance_), + reinterpret_cast(&::protobuf::_SendMsg_default_instance_), + reinterpret_cast(&::protobuf::_AttackMsg_default_instance_), + reinterpret_cast(&::protobuf::_IDMsg_default_instance_), +}; + +const char descriptor_table_protodef_Message2Server_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\024Message2Server.proto\022\010protobuf\032\021Messag" + "eType.proto\"\257\001\n\tPlayerMsg\022\021\n\tplayer_id\030\001" + " \001(\003\022)\n\013player_type\030\002 \001(\0162\024.protobuf.Pla" + "yerType\022)\n\nhuman_type\030\003 \001(\0162\023.protobuf.H" + "umanTypeH\000\022-\n\014butcher_type\030\004 \001(\0162\025.proto" + "buf.ButcherTypeH\000B\n\n\010job_type\"I\n\007MoveMsg" + "\022\021\n\tplayer_id\030\001 \001(\003\022\r\n\005angle\030\002 \001(\001\022\034\n\024ti" + "me_in_milliseconds\030\003 \001(\003\"C\n\007PickMsg\022\021\n\tp" + "layer_id\030\001 \001(\003\022%\n\tprop_type\030\002 \001(\0162\022.prot" + "obuf.PropType\"C\n\007SendMsg\022\021\n\tplayer_id\030\001 " + "\001(\003\022\024\n\014to_player_id\030\002 \001(\003\022\017\n\007message\030\003 \001" + "(\t\"-\n\tAttackMsg\022\021\n\tplayer_id\030\001 \001(\003\022\r\n\005an" + "gle\030\002 \001(\001\"\031\n\005IDMsg\022\020\n\010playerID\030\001 \001(\003b\006pr" + "oto3" + ; +static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_Message2Server_2eproto_deps[1] = { + &::descriptor_table_MessageType_2eproto, +}; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_Message2Server_2eproto_once; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Message2Server_2eproto = { + false, false, 524, descriptor_table_protodef_Message2Server_2eproto, "Message2Server.proto", + &descriptor_table_Message2Server_2eproto_once, descriptor_table_Message2Server_2eproto_deps, 1, 6, + schemas, file_default_instances, TableStruct_Message2Server_2eproto::offsets, + file_level_metadata_Message2Server_2eproto, file_level_enum_descriptors_Message2Server_2eproto, file_level_service_descriptors_Message2Server_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_Message2Server_2eproto_getter() { + return &descriptor_table_Message2Server_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_Message2Server_2eproto(&descriptor_table_Message2Server_2eproto); +namespace protobuf { + +// =================================================================== + +class PlayerMsg::_Internal { + public: +}; + +PlayerMsg::PlayerMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:protobuf.PlayerMsg) +} +PlayerMsg::PlayerMsg(const PlayerMsg& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&player_id_, &from.player_id_, + static_cast(reinterpret_cast(&player_type_) - + reinterpret_cast(&player_id_)) + sizeof(player_type_)); + clear_has_job_type(); + switch (from.job_type_case()) { + case kHumanType: { + _internal_set_human_type(from._internal_human_type()); + break; + } + case kButcherType: { + _internal_set_butcher_type(from._internal_butcher_type()); + break; + } + case JOB_TYPE_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:protobuf.PlayerMsg) +} + +inline void PlayerMsg::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&player_id_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&player_type_) - + reinterpret_cast(&player_id_)) + sizeof(player_type_)); +clear_has_job_type(); +} + +PlayerMsg::~PlayerMsg() { + // @@protoc_insertion_point(destructor:protobuf.PlayerMsg) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void PlayerMsg::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_job_type()) { + clear_job_type(); + } +} + +void PlayerMsg::ArenaDtor(void* object) { + PlayerMsg* _this = reinterpret_cast< PlayerMsg* >(object); + (void)_this; +} +void PlayerMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void PlayerMsg::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void PlayerMsg::clear_job_type() { +// @@protoc_insertion_point(one_of_clear_start:protobuf.PlayerMsg) + switch (job_type_case()) { + case kHumanType: { + // No need to clear + break; + } + case kButcherType: { + // No need to clear + break; + } + case JOB_TYPE_NOT_SET: { + break; + } + } + _oneof_case_[0] = JOB_TYPE_NOT_SET; +} + + +void PlayerMsg::Clear() { +// @@protoc_insertion_point(message_clear_start:protobuf.PlayerMsg) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&player_id_, 0, static_cast( + reinterpret_cast(&player_type_) - + reinterpret_cast(&player_id_)) + sizeof(player_type_)); + clear_job_type(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PlayerMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // int64 player_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .protobuf.PlayerType player_type = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_player_type(static_cast<::protobuf::PlayerType>(val)); + } else + goto handle_unusual; + continue; + // .protobuf.HumanType human_type = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_human_type(static_cast<::protobuf::HumanType>(val)); + } else + goto handle_unusual; + continue; + // .protobuf.ButcherType butcher_type = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_butcher_type(static_cast<::protobuf::ButcherType>(val)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* PlayerMsg::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:protobuf.PlayerMsg) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int64 player_id = 1; + if (this->_internal_player_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); + } + + // .protobuf.PlayerType player_type = 2; + if (this->_internal_player_type() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_player_type(), target); + } + + // .protobuf.HumanType human_type = 3; + if (_internal_has_human_type()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 3, this->_internal_human_type(), target); + } + + // .protobuf.ButcherType butcher_type = 4; + if (_internal_has_butcher_type()) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 4, this->_internal_butcher_type(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:protobuf.PlayerMsg) + return target; +} + +size_t PlayerMsg::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:protobuf.PlayerMsg) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 player_id = 1; + if (this->_internal_player_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + } + + // .protobuf.PlayerType player_type = 2; + if (this->_internal_player_type() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_player_type()); + } + + switch (job_type_case()) { + // .protobuf.HumanType human_type = 3; + case kHumanType: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_human_type()); + break; + } + // .protobuf.ButcherType butcher_type = 4; + case kButcherType: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_butcher_type()); + break; + } + case JOB_TYPE_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PlayerMsg::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PlayerMsg::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PlayerMsg::GetClassData() const { return &_class_data_; } + +void PlayerMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void PlayerMsg::MergeFrom(const PlayerMsg& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:protobuf.PlayerMsg) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_player_id() != 0) { + _internal_set_player_id(from._internal_player_id()); + } + if (from._internal_player_type() != 0) { + _internal_set_player_type(from._internal_player_type()); + } + switch (from.job_type_case()) { + case kHumanType: { + _internal_set_human_type(from._internal_human_type()); + break; + } + case kButcherType: { + _internal_set_butcher_type(from._internal_butcher_type()); + break; + } + case JOB_TYPE_NOT_SET: { + break; + } + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void PlayerMsg::CopyFrom(const PlayerMsg& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:protobuf.PlayerMsg) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PlayerMsg::IsInitialized() const { + return true; +} + +void PlayerMsg::InternalSwap(PlayerMsg* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PlayerMsg, player_type_) + + sizeof(PlayerMsg::player_type_) + - PROTOBUF_FIELD_OFFSET(PlayerMsg, player_id_)>( + reinterpret_cast(&player_id_), + reinterpret_cast(&other->player_id_)); + swap(job_type_, other->job_type_); + swap(_oneof_case_[0], other->_oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PlayerMsg::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, + file_level_metadata_Message2Server_2eproto[0]); +} + +// =================================================================== + +class MoveMsg::_Internal { + public: +}; + +MoveMsg::MoveMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:protobuf.MoveMsg) +} +MoveMsg::MoveMsg(const MoveMsg& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&player_id_, &from.player_id_, + static_cast(reinterpret_cast(&time_in_milliseconds_) - + reinterpret_cast(&player_id_)) + sizeof(time_in_milliseconds_)); + // @@protoc_insertion_point(copy_constructor:protobuf.MoveMsg) +} + +inline void MoveMsg::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&player_id_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&time_in_milliseconds_) - + reinterpret_cast(&player_id_)) + sizeof(time_in_milliseconds_)); +} + +MoveMsg::~MoveMsg() { + // @@protoc_insertion_point(destructor:protobuf.MoveMsg) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void MoveMsg::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void MoveMsg::ArenaDtor(void* object) { + MoveMsg* _this = reinterpret_cast< MoveMsg* >(object); + (void)_this; +} +void MoveMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void MoveMsg::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void MoveMsg::Clear() { +// @@protoc_insertion_point(message_clear_start:protobuf.MoveMsg) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&player_id_, 0, static_cast( + reinterpret_cast(&time_in_milliseconds_) - + reinterpret_cast(&player_id_)) + sizeof(time_in_milliseconds_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* MoveMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // int64 player_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double angle = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + // int64 time_in_milliseconds = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + time_in_milliseconds_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* MoveMsg::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:protobuf.MoveMsg) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int64 player_id = 1; + if (this->_internal_player_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); + } + + // double angle = 2; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_angle = this->_internal_angle(); + uint64_t raw_angle; + memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle)); + if (raw_angle != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_angle(), target); + } + + // int64 time_in_milliseconds = 3; + if (this->_internal_time_in_milliseconds() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_time_in_milliseconds(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:protobuf.MoveMsg) + return target; +} + +size_t MoveMsg::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:protobuf.MoveMsg) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 player_id = 1; + if (this->_internal_player_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + } + + // double angle = 2; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_angle = this->_internal_angle(); + uint64_t raw_angle; + memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle)); + if (raw_angle != 0) { + total_size += 1 + 8; + } + + // int64 time_in_milliseconds = 3; + if (this->_internal_time_in_milliseconds() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_time_in_milliseconds()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MoveMsg::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + MoveMsg::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MoveMsg::GetClassData() const { return &_class_data_; } + +void MoveMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void MoveMsg::MergeFrom(const MoveMsg& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:protobuf.MoveMsg) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_player_id() != 0) { + _internal_set_player_id(from._internal_player_id()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_angle = from._internal_angle(); + uint64_t raw_angle; + memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle)); + if (raw_angle != 0) { + _internal_set_angle(from._internal_angle()); + } + if (from._internal_time_in_milliseconds() != 0) { + _internal_set_time_in_milliseconds(from._internal_time_in_milliseconds()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void MoveMsg::CopyFrom(const MoveMsg& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:protobuf.MoveMsg) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool MoveMsg::IsInitialized() const { + return true; +} + +void MoveMsg::InternalSwap(MoveMsg* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(MoveMsg, time_in_milliseconds_) + + sizeof(MoveMsg::time_in_milliseconds_) + - PROTOBUF_FIELD_OFFSET(MoveMsg, player_id_)>( + reinterpret_cast(&player_id_), + reinterpret_cast(&other->player_id_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata MoveMsg::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, + file_level_metadata_Message2Server_2eproto[1]); +} + +// =================================================================== + +class PickMsg::_Internal { + public: +}; + +PickMsg::PickMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:protobuf.PickMsg) +} +PickMsg::PickMsg(const PickMsg& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&player_id_, &from.player_id_, + static_cast(reinterpret_cast(&prop_type_) - + reinterpret_cast(&player_id_)) + sizeof(prop_type_)); + // @@protoc_insertion_point(copy_constructor:protobuf.PickMsg) +} + +inline void PickMsg::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&player_id_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&prop_type_) - + reinterpret_cast(&player_id_)) + sizeof(prop_type_)); +} + +PickMsg::~PickMsg() { + // @@protoc_insertion_point(destructor:protobuf.PickMsg) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void PickMsg::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void PickMsg::ArenaDtor(void* object) { + PickMsg* _this = reinterpret_cast< PickMsg* >(object); + (void)_this; +} +void PickMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void PickMsg::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void PickMsg::Clear() { +// @@protoc_insertion_point(message_clear_start:protobuf.PickMsg) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&player_id_, 0, static_cast( + reinterpret_cast(&prop_type_) - + reinterpret_cast(&player_id_)) + sizeof(prop_type_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* PickMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // int64 player_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .protobuf.PropType prop_type = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_prop_type(static_cast<::protobuf::PropType>(val)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* PickMsg::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:protobuf.PickMsg) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int64 player_id = 1; + if (this->_internal_player_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); + } + + // .protobuf.PropType prop_type = 2; + if (this->_internal_prop_type() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( + 2, this->_internal_prop_type(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:protobuf.PickMsg) + return target; +} + +size_t PickMsg::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:protobuf.PickMsg) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 player_id = 1; + if (this->_internal_player_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + } + + // .protobuf.PropType prop_type = 2; + if (this->_internal_prop_type() != 0) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_prop_type()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PickMsg::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + PickMsg::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PickMsg::GetClassData() const { return &_class_data_; } + +void PickMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void PickMsg::MergeFrom(const PickMsg& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:protobuf.PickMsg) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_player_id() != 0) { + _internal_set_player_id(from._internal_player_id()); + } + if (from._internal_prop_type() != 0) { + _internal_set_prop_type(from._internal_prop_type()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void PickMsg::CopyFrom(const PickMsg& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:protobuf.PickMsg) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool PickMsg::IsInitialized() const { + return true; +} + +void PickMsg::InternalSwap(PickMsg* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(PickMsg, prop_type_) + + sizeof(PickMsg::prop_type_) + - PROTOBUF_FIELD_OFFSET(PickMsg, player_id_)>( + reinterpret_cast(&player_id_), + reinterpret_cast(&other->player_id_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata PickMsg::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, + file_level_metadata_Message2Server_2eproto[2]); +} + +// =================================================================== + +class SendMsg::_Internal { + public: +}; + +SendMsg::SendMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:protobuf.SendMsg) +} +SendMsg::SendMsg(const SendMsg& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_message().empty()) { + message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_message(), + GetArenaForAllocation()); + } + ::memcpy(&player_id_, &from.player_id_, + static_cast(reinterpret_cast(&to_player_id_) - + reinterpret_cast(&player_id_)) + sizeof(to_player_id_)); + // @@protoc_insertion_point(copy_constructor:protobuf.SendMsg) +} + +inline void SendMsg::SharedCtor() { +message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&player_id_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&to_player_id_) - + reinterpret_cast(&player_id_)) + sizeof(to_player_id_)); +} + +SendMsg::~SendMsg() { + // @@protoc_insertion_point(destructor:protobuf.SendMsg) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void SendMsg::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); +} + +void SendMsg::ArenaDtor(void* object) { + SendMsg* _this = reinterpret_cast< SendMsg* >(object); + (void)_this; +} +void SendMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void SendMsg::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void SendMsg::Clear() { +// @@protoc_insertion_point(message_clear_start:protobuf.SendMsg) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + message_.ClearToEmpty(); + ::memset(&player_id_, 0, static_cast( + reinterpret_cast(&to_player_id_) - + reinterpret_cast(&player_id_)) + sizeof(to_player_id_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SendMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // int64 player_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 to_player_id = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + to_player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string message = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_message(); + ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); + CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "protobuf.SendMsg.message")); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* SendMsg::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:protobuf.SendMsg) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int64 player_id = 1; + if (this->_internal_player_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); + } + + // int64 to_player_id = 2; + if (this->_internal_to_player_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_to_player_id(), target); + } + + // string message = 3; + if (!this->_internal_message().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_message().data(), static_cast(this->_internal_message().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "protobuf.SendMsg.message"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_message(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:protobuf.SendMsg) + return target; +} + +size_t SendMsg::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:protobuf.SendMsg) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string message = 3; + if (!this->_internal_message().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_message()); + } + + // int64 player_id = 1; + if (this->_internal_player_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + } + + // int64 to_player_id = 2; + if (this->_internal_to_player_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_to_player_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SendMsg::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + SendMsg::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SendMsg::GetClassData() const { return &_class_data_; } + +void SendMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void SendMsg::MergeFrom(const SendMsg& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:protobuf.SendMsg) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_message().empty()) { + _internal_set_message(from._internal_message()); + } + if (from._internal_player_id() != 0) { + _internal_set_player_id(from._internal_player_id()); + } + if (from._internal_to_player_id() != 0) { + _internal_set_to_player_id(from._internal_to_player_id()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void SendMsg::CopyFrom(const SendMsg& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:protobuf.SendMsg) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool SendMsg::IsInitialized() const { + return true; +} + +void SendMsg::InternalSwap(SendMsg* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), + &message_, lhs_arena, + &other->message_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(SendMsg, to_player_id_) + + sizeof(SendMsg::to_player_id_) + - PROTOBUF_FIELD_OFFSET(SendMsg, player_id_)>( + reinterpret_cast(&player_id_), + reinterpret_cast(&other->player_id_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata SendMsg::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, + file_level_metadata_Message2Server_2eproto[3]); +} + +// =================================================================== + +class AttackMsg::_Internal { + public: +}; + +AttackMsg::AttackMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:protobuf.AttackMsg) +} +AttackMsg::AttackMsg(const AttackMsg& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&player_id_, &from.player_id_, + static_cast(reinterpret_cast(&angle_) - + reinterpret_cast(&player_id_)) + sizeof(angle_)); + // @@protoc_insertion_point(copy_constructor:protobuf.AttackMsg) +} + +inline void AttackMsg::SharedCtor() { +::memset(reinterpret_cast(this) + static_cast( + reinterpret_cast(&player_id_) - reinterpret_cast(this)), + 0, static_cast(reinterpret_cast(&angle_) - + reinterpret_cast(&player_id_)) + sizeof(angle_)); +} + +AttackMsg::~AttackMsg() { + // @@protoc_insertion_point(destructor:protobuf.AttackMsg) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void AttackMsg::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void AttackMsg::ArenaDtor(void* object) { + AttackMsg* _this = reinterpret_cast< AttackMsg* >(object); + (void)_this; +} +void AttackMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void AttackMsg::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void AttackMsg::Clear() { +// @@protoc_insertion_point(message_clear_start:protobuf.AttackMsg) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&player_id_, 0, static_cast( + reinterpret_cast(&angle_) - + reinterpret_cast(&player_id_)) + sizeof(angle_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AttackMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // int64 player_id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + player_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double angle = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 17)) { + angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* AttackMsg::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:protobuf.AttackMsg) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int64 player_id = 1; + if (this->_internal_player_id() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_player_id(), target); + } + + // double angle = 2; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_angle = this->_internal_angle(); + uint64_t raw_angle; + memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle)); + if (raw_angle != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(2, this->_internal_angle(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:protobuf.AttackMsg) + return target; +} + +size_t AttackMsg::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:protobuf.AttackMsg) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 player_id = 1; + if (this->_internal_player_id() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_player_id()); + } + + // double angle = 2; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_angle = this->_internal_angle(); + uint64_t raw_angle; + memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle)); + if (raw_angle != 0) { + total_size += 1 + 8; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AttackMsg::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + AttackMsg::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AttackMsg::GetClassData() const { return &_class_data_; } + +void AttackMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void AttackMsg::MergeFrom(const AttackMsg& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:protobuf.AttackMsg) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_player_id() != 0) { + _internal_set_player_id(from._internal_player_id()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_angle = from._internal_angle(); + uint64_t raw_angle; + memcpy(&raw_angle, &tmp_angle, sizeof(tmp_angle)); + if (raw_angle != 0) { + _internal_set_angle(from._internal_angle()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void AttackMsg::CopyFrom(const AttackMsg& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:protobuf.AttackMsg) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AttackMsg::IsInitialized() const { + return true; +} + +void AttackMsg::InternalSwap(AttackMsg* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(AttackMsg, angle_) + + sizeof(AttackMsg::angle_) + - PROTOBUF_FIELD_OFFSET(AttackMsg, player_id_)>( + reinterpret_cast(&player_id_), + reinterpret_cast(&other->player_id_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AttackMsg::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, + file_level_metadata_Message2Server_2eproto[4]); +} + +// =================================================================== + +class IDMsg::_Internal { + public: +}; + +IDMsg::IDMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(); + if (!is_message_owned) { + RegisterArenaDtor(arena); + } + // @@protoc_insertion_point(arena_constructor:protobuf.IDMsg) +} +IDMsg::IDMsg(const IDMsg& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + playerid_ = from.playerid_; + // @@protoc_insertion_point(copy_constructor:protobuf.IDMsg) +} + +inline void IDMsg::SharedCtor() { +playerid_ = int64_t{0}; +} + +IDMsg::~IDMsg() { + // @@protoc_insertion_point(destructor:protobuf.IDMsg) + if (GetArenaForAllocation() != nullptr) return; + SharedDtor(); + _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +inline void IDMsg::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void IDMsg::ArenaDtor(void* object) { + IDMsg* _this = reinterpret_cast< IDMsg* >(object); + (void)_this; +} +void IDMsg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { +} +void IDMsg::SetCachedSize(int size) const { + _cached_size_.Set(size); +} + +void IDMsg::Clear() { +// @@protoc_insertion_point(message_clear_start:protobuf.IDMsg) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + playerid_ = int64_t{0}; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* IDMsg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); + switch (tag >> 3) { + // int64 playerID = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + playerid_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* IDMsg::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:protobuf.IDMsg) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int64 playerID = 1; + if (this->_internal_playerid() != 0) { + target = stream->EnsureSpace(target); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_playerid(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:protobuf.IDMsg) + return target; +} + +size_t IDMsg::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:protobuf.IDMsg) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 playerID = 1; + if (this->_internal_playerid() != 0) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64SizePlusOne(this->_internal_playerid()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IDMsg::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck, + IDMsg::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IDMsg::GetClassData() const { return &_class_data_; } + +void IDMsg::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, + const ::PROTOBUF_NAMESPACE_ID::Message& from) { + static_cast(to)->MergeFrom( + static_cast(from)); +} + + +void IDMsg::MergeFrom(const IDMsg& from) { +// @@protoc_insertion_point(class_specific_merge_from_start:protobuf.IDMsg) + GOOGLE_DCHECK_NE(&from, this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_playerid() != 0) { + _internal_set_playerid(from._internal_playerid()); + } + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void IDMsg::CopyFrom(const IDMsg& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:protobuf.IDMsg) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool IDMsg::IsInitialized() const { + return true; +} + +void IDMsg::InternalSwap(IDMsg* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(playerid_, other->playerid_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata IDMsg::GetMetadata() const { + return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( + &descriptor_table_Message2Server_2eproto_getter, &descriptor_table_Message2Server_2eproto_once, + file_level_metadata_Message2Server_2eproto[5]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace protobuf +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::protobuf::PlayerMsg* Arena::CreateMaybeMessage< ::protobuf::PlayerMsg >(Arena* arena) { + return Arena::CreateMessageInternal< ::protobuf::PlayerMsg >(arena); +} +template<> PROTOBUF_NOINLINE ::protobuf::MoveMsg* Arena::CreateMaybeMessage< ::protobuf::MoveMsg >(Arena* arena) { + return Arena::CreateMessageInternal< ::protobuf::MoveMsg >(arena); +} +template<> PROTOBUF_NOINLINE ::protobuf::PickMsg* Arena::CreateMaybeMessage< ::protobuf::PickMsg >(Arena* arena) { + return Arena::CreateMessageInternal< ::protobuf::PickMsg >(arena); +} +template<> PROTOBUF_NOINLINE ::protobuf::SendMsg* Arena::CreateMaybeMessage< ::protobuf::SendMsg >(Arena* arena) { + return Arena::CreateMessageInternal< ::protobuf::SendMsg >(arena); +} +template<> PROTOBUF_NOINLINE ::protobuf::AttackMsg* Arena::CreateMaybeMessage< ::protobuf::AttackMsg >(Arena* arena) { + return Arena::CreateMessageInternal< ::protobuf::AttackMsg >(arena); +} +template<> PROTOBUF_NOINLINE ::protobuf::IDMsg* Arena::CreateMaybeMessage< ::protobuf::IDMsg >(Arena* arena) { + return Arena::CreateMessageInternal< ::protobuf::IDMsg >(arena); +} +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/CAPI/proto/Message2Server.pb.h b/CAPI/proto/Message2Server.pb.h new file mode 100644 index 0000000..617b229 --- /dev/null +++ b/CAPI/proto/Message2Server.pb.h @@ -0,0 +1,1522 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: Message2Server.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_Message2Server_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_Message2Server_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3019000 +#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 3019004 < PROTOBUF_MIN_PROTOC_VERSION +#error This file was generated by an older version of protoc which is +#error incompatible with your Protocol Buffer headers. Please +#error regenerate this file with a newer version of protoc. +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // IWYU pragma: export +#include // IWYU pragma: export +#include +#include "MessageType.pb.h" +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_Message2Server_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_Message2Server_2eproto { + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[6] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_Message2Server_2eproto; +namespace protobuf { +class AttackMsg; +struct AttackMsgDefaultTypeInternal; +extern AttackMsgDefaultTypeInternal _AttackMsg_default_instance_; +class IDMsg; +struct IDMsgDefaultTypeInternal; +extern IDMsgDefaultTypeInternal _IDMsg_default_instance_; +class MoveMsg; +struct MoveMsgDefaultTypeInternal; +extern MoveMsgDefaultTypeInternal _MoveMsg_default_instance_; +class PickMsg; +struct PickMsgDefaultTypeInternal; +extern PickMsgDefaultTypeInternal _PickMsg_default_instance_; +class PlayerMsg; +struct PlayerMsgDefaultTypeInternal; +extern PlayerMsgDefaultTypeInternal _PlayerMsg_default_instance_; +class SendMsg; +struct SendMsgDefaultTypeInternal; +extern SendMsgDefaultTypeInternal _SendMsg_default_instance_; +} // namespace protobuf +PROTOBUF_NAMESPACE_OPEN +template<> ::protobuf::AttackMsg* Arena::CreateMaybeMessage<::protobuf::AttackMsg>(Arena*); +template<> ::protobuf::IDMsg* Arena::CreateMaybeMessage<::protobuf::IDMsg>(Arena*); +template<> ::protobuf::MoveMsg* Arena::CreateMaybeMessage<::protobuf::MoveMsg>(Arena*); +template<> ::protobuf::PickMsg* Arena::CreateMaybeMessage<::protobuf::PickMsg>(Arena*); +template<> ::protobuf::PlayerMsg* Arena::CreateMaybeMessage<::protobuf::PlayerMsg>(Arena*); +template<> ::protobuf::SendMsg* Arena::CreateMaybeMessage<::protobuf::SendMsg>(Arena*); +PROTOBUF_NAMESPACE_CLOSE +namespace protobuf { + +// =================================================================== + +class PlayerMsg final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.PlayerMsg) */ { + public: + inline PlayerMsg() : PlayerMsg(nullptr) {} + ~PlayerMsg() override; + explicit constexpr PlayerMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PlayerMsg(const PlayerMsg& from); + PlayerMsg(PlayerMsg&& from) noexcept + : PlayerMsg() { + *this = ::std::move(from); + } + + inline PlayerMsg& operator=(const PlayerMsg& from) { + CopyFrom(from); + return *this; + } + inline PlayerMsg& operator=(PlayerMsg&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const PlayerMsg& default_instance() { + return *internal_default_instance(); + } + enum JobTypeCase { + kHumanType = 3, + kButcherType = 4, + JOB_TYPE_NOT_SET = 0, + }; + + static inline const PlayerMsg* internal_default_instance() { + return reinterpret_cast( + &_PlayerMsg_default_instance_); + } + static constexpr int kIndexInFileMessages = + 0; + + friend void swap(PlayerMsg& a, PlayerMsg& b) { + a.Swap(&b); + } + inline void Swap(PlayerMsg* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PlayerMsg* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PlayerMsg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PlayerMsg& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PlayerMsg& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PlayerMsg* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "protobuf.PlayerMsg"; + } + protected: + explicit PlayerMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPlayerIdFieldNumber = 1, + kPlayerTypeFieldNumber = 2, + kHumanTypeFieldNumber = 3, + kButcherTypeFieldNumber = 4, + }; + // int64 player_id = 1; + void clear_player_id(); + int64_t player_id() const; + void set_player_id(int64_t value); + private: + int64_t _internal_player_id() const; + void _internal_set_player_id(int64_t value); + public: + + // .protobuf.PlayerType player_type = 2; + void clear_player_type(); + ::protobuf::PlayerType player_type() const; + void set_player_type(::protobuf::PlayerType value); + private: + ::protobuf::PlayerType _internal_player_type() const; + void _internal_set_player_type(::protobuf::PlayerType value); + public: + + // .protobuf.HumanType human_type = 3; + bool has_human_type() const; + private: + bool _internal_has_human_type() const; + public: + void clear_human_type(); + ::protobuf::HumanType human_type() const; + void set_human_type(::protobuf::HumanType value); + private: + ::protobuf::HumanType _internal_human_type() const; + void _internal_set_human_type(::protobuf::HumanType value); + public: + + // .protobuf.ButcherType butcher_type = 4; + bool has_butcher_type() const; + private: + bool _internal_has_butcher_type() const; + public: + void clear_butcher_type(); + ::protobuf::ButcherType butcher_type() const; + void set_butcher_type(::protobuf::ButcherType value); + private: + ::protobuf::ButcherType _internal_butcher_type() const; + void _internal_set_butcher_type(::protobuf::ButcherType value); + public: + + void clear_job_type(); + JobTypeCase job_type_case() const; + // @@protoc_insertion_point(class_scope:protobuf.PlayerMsg) + private: + class _Internal; + void set_has_human_type(); + void set_has_butcher_type(); + + inline bool has_job_type() const; + inline void clear_has_job_type(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int64_t player_id_; + int player_type_; + union JobTypeUnion { + constexpr JobTypeUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + int human_type_; + int butcher_type_; + } job_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + friend struct ::TableStruct_Message2Server_2eproto; +}; +// ------------------------------------------------------------------- + +class MoveMsg final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.MoveMsg) */ { + public: + inline MoveMsg() : MoveMsg(nullptr) {} + ~MoveMsg() override; + explicit constexpr MoveMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + MoveMsg(const MoveMsg& from); + MoveMsg(MoveMsg&& from) noexcept + : MoveMsg() { + *this = ::std::move(from); + } + + inline MoveMsg& operator=(const MoveMsg& from) { + CopyFrom(from); + return *this; + } + inline MoveMsg& operator=(MoveMsg&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const MoveMsg& default_instance() { + return *internal_default_instance(); + } + static inline const MoveMsg* internal_default_instance() { + return reinterpret_cast( + &_MoveMsg_default_instance_); + } + static constexpr int kIndexInFileMessages = + 1; + + friend void swap(MoveMsg& a, MoveMsg& b) { + a.Swap(&b); + } + inline void Swap(MoveMsg* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(MoveMsg* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + MoveMsg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const MoveMsg& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const MoveMsg& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(MoveMsg* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "protobuf.MoveMsg"; + } + protected: + explicit MoveMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPlayerIdFieldNumber = 1, + kAngleFieldNumber = 2, + kTimeInMillisecondsFieldNumber = 3, + }; + // int64 player_id = 1; + void clear_player_id(); + int64_t player_id() const; + void set_player_id(int64_t value); + private: + int64_t _internal_player_id() const; + void _internal_set_player_id(int64_t value); + public: + + // double angle = 2; + void clear_angle(); + double angle() const; + void set_angle(double value); + private: + double _internal_angle() const; + void _internal_set_angle(double value); + public: + + // int64 time_in_milliseconds = 3; + void clear_time_in_milliseconds(); + int64_t time_in_milliseconds() const; + void set_time_in_milliseconds(int64_t value); + private: + int64_t _internal_time_in_milliseconds() const; + void _internal_set_time_in_milliseconds(int64_t value); + public: + + // @@protoc_insertion_point(class_scope:protobuf.MoveMsg) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int64_t player_id_; + double angle_; + int64_t time_in_milliseconds_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_Message2Server_2eproto; +}; +// ------------------------------------------------------------------- + +class PickMsg final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.PickMsg) */ { + public: + inline PickMsg() : PickMsg(nullptr) {} + ~PickMsg() override; + explicit constexpr PickMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + PickMsg(const PickMsg& from); + PickMsg(PickMsg&& from) noexcept + : PickMsg() { + *this = ::std::move(from); + } + + inline PickMsg& operator=(const PickMsg& from) { + CopyFrom(from); + return *this; + } + inline PickMsg& operator=(PickMsg&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const PickMsg& default_instance() { + return *internal_default_instance(); + } + static inline const PickMsg* internal_default_instance() { + return reinterpret_cast( + &_PickMsg_default_instance_); + } + static constexpr int kIndexInFileMessages = + 2; + + friend void swap(PickMsg& a, PickMsg& b) { + a.Swap(&b); + } + inline void Swap(PickMsg* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(PickMsg* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + PickMsg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const PickMsg& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const PickMsg& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(PickMsg* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "protobuf.PickMsg"; + } + protected: + explicit PickMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPlayerIdFieldNumber = 1, + kPropTypeFieldNumber = 2, + }; + // int64 player_id = 1; + void clear_player_id(); + int64_t player_id() const; + void set_player_id(int64_t value); + private: + int64_t _internal_player_id() const; + void _internal_set_player_id(int64_t value); + public: + + // .protobuf.PropType prop_type = 2; + void clear_prop_type(); + ::protobuf::PropType prop_type() const; + void set_prop_type(::protobuf::PropType value); + private: + ::protobuf::PropType _internal_prop_type() const; + void _internal_set_prop_type(::protobuf::PropType value); + public: + + // @@protoc_insertion_point(class_scope:protobuf.PickMsg) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int64_t player_id_; + int prop_type_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_Message2Server_2eproto; +}; +// ------------------------------------------------------------------- + +class SendMsg final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.SendMsg) */ { + public: + inline SendMsg() : SendMsg(nullptr) {} + ~SendMsg() override; + explicit constexpr SendMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + SendMsg(const SendMsg& from); + SendMsg(SendMsg&& from) noexcept + : SendMsg() { + *this = ::std::move(from); + } + + inline SendMsg& operator=(const SendMsg& from) { + CopyFrom(from); + return *this; + } + inline SendMsg& operator=(SendMsg&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const SendMsg& default_instance() { + return *internal_default_instance(); + } + static inline const SendMsg* internal_default_instance() { + return reinterpret_cast( + &_SendMsg_default_instance_); + } + static constexpr int kIndexInFileMessages = + 3; + + friend void swap(SendMsg& a, SendMsg& b) { + a.Swap(&b); + } + inline void Swap(SendMsg* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(SendMsg* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + SendMsg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const SendMsg& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const SendMsg& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(SendMsg* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "protobuf.SendMsg"; + } + protected: + explicit SendMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kMessageFieldNumber = 3, + kPlayerIdFieldNumber = 1, + kToPlayerIdFieldNumber = 2, + }; + // string message = 3; + void clear_message(); + const std::string& message() const; + template + void set_message(ArgT0&& arg0, ArgT... args); + std::string* mutable_message(); + PROTOBUF_NODISCARD std::string* release_message(); + void set_allocated_message(std::string* message); + private: + const std::string& _internal_message() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(const std::string& value); + std::string* _internal_mutable_message(); + public: + + // int64 player_id = 1; + void clear_player_id(); + int64_t player_id() const; + void set_player_id(int64_t value); + private: + int64_t _internal_player_id() const; + void _internal_set_player_id(int64_t value); + public: + + // int64 to_player_id = 2; + void clear_to_player_id(); + int64_t to_player_id() const; + void set_to_player_id(int64_t value); + private: + int64_t _internal_to_player_id() const; + void _internal_set_to_player_id(int64_t value); + public: + + // @@protoc_insertion_point(class_scope:protobuf.SendMsg) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_; + int64_t player_id_; + int64_t to_player_id_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_Message2Server_2eproto; +}; +// ------------------------------------------------------------------- + +class AttackMsg final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.AttackMsg) */ { + public: + inline AttackMsg() : AttackMsg(nullptr) {} + ~AttackMsg() override; + explicit constexpr AttackMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AttackMsg(const AttackMsg& from); + AttackMsg(AttackMsg&& from) noexcept + : AttackMsg() { + *this = ::std::move(from); + } + + inline AttackMsg& operator=(const AttackMsg& from) { + CopyFrom(from); + return *this; + } + inline AttackMsg& operator=(AttackMsg&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const AttackMsg& default_instance() { + return *internal_default_instance(); + } + static inline const AttackMsg* internal_default_instance() { + return reinterpret_cast( + &_AttackMsg_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(AttackMsg& a, AttackMsg& b) { + a.Swap(&b); + } + inline void Swap(AttackMsg* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(AttackMsg* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AttackMsg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AttackMsg& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const AttackMsg& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(AttackMsg* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "protobuf.AttackMsg"; + } + protected: + explicit AttackMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPlayerIdFieldNumber = 1, + kAngleFieldNumber = 2, + }; + // int64 player_id = 1; + void clear_player_id(); + int64_t player_id() const; + void set_player_id(int64_t value); + private: + int64_t _internal_player_id() const; + void _internal_set_player_id(int64_t value); + public: + + // double angle = 2; + void clear_angle(); + double angle() const; + void set_angle(double value); + private: + double _internal_angle() const; + void _internal_set_angle(double value); + public: + + // @@protoc_insertion_point(class_scope:protobuf.AttackMsg) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int64_t player_id_; + double angle_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_Message2Server_2eproto; +}; +// ------------------------------------------------------------------- + +class IDMsg final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:protobuf.IDMsg) */ { + public: + inline IDMsg() : IDMsg(nullptr) {} + ~IDMsg() override; + explicit constexpr IDMsg(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + IDMsg(const IDMsg& from); + IDMsg(IDMsg&& from) noexcept + : IDMsg() { + *this = ::std::move(from); + } + + inline IDMsg& operator=(const IDMsg& from) { + CopyFrom(from); + return *this; + } + inline IDMsg& operator=(IDMsg&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const IDMsg& default_instance() { + return *internal_default_instance(); + } + static inline const IDMsg* internal_default_instance() { + return reinterpret_cast( + &_IDMsg_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(IDMsg& a, IDMsg& b) { + a.Swap(&b); + } + inline void Swap(IDMsg* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(IDMsg* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + IDMsg* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const IDMsg& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom(const IDMsg& from); + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to, const ::PROTOBUF_NAMESPACE_ID::Message& from); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _cached_size_.Get(); } + + private: + void SharedCtor(); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(IDMsg* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "protobuf.IDMsg"; + } + protected: + explicit IDMsg(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPlayerIDFieldNumber = 1, + }; + // int64 playerID = 1; + void clear_playerid(); + int64_t playerid() const; + void set_playerid(int64_t value); + private: + int64_t _internal_playerid() const; + void _internal_set_playerid(int64_t value); + public: + + // @@protoc_insertion_point(class_scope:protobuf.IDMsg) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + int64_t playerid_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + friend struct ::TableStruct_Message2Server_2eproto; +}; +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +// PlayerMsg + +// int64 player_id = 1; +inline void PlayerMsg::clear_player_id() { + player_id_ = int64_t{0}; +} +inline int64_t PlayerMsg::_internal_player_id() const { + return player_id_; +} +inline int64_t PlayerMsg::player_id() const { + // @@protoc_insertion_point(field_get:protobuf.PlayerMsg.player_id) + return _internal_player_id(); +} +inline void PlayerMsg::_internal_set_player_id(int64_t value) { + + player_id_ = value; +} +inline void PlayerMsg::set_player_id(int64_t value) { + _internal_set_player_id(value); + // @@protoc_insertion_point(field_set:protobuf.PlayerMsg.player_id) +} + +// .protobuf.PlayerType player_type = 2; +inline void PlayerMsg::clear_player_type() { + player_type_ = 0; +} +inline ::protobuf::PlayerType PlayerMsg::_internal_player_type() const { + return static_cast< ::protobuf::PlayerType >(player_type_); +} +inline ::protobuf::PlayerType PlayerMsg::player_type() const { + // @@protoc_insertion_point(field_get:protobuf.PlayerMsg.player_type) + return _internal_player_type(); +} +inline void PlayerMsg::_internal_set_player_type(::protobuf::PlayerType value) { + + player_type_ = value; +} +inline void PlayerMsg::set_player_type(::protobuf::PlayerType value) { + _internal_set_player_type(value); + // @@protoc_insertion_point(field_set:protobuf.PlayerMsg.player_type) +} + +// .protobuf.HumanType human_type = 3; +inline bool PlayerMsg::_internal_has_human_type() const { + return job_type_case() == kHumanType; +} +inline bool PlayerMsg::has_human_type() const { + return _internal_has_human_type(); +} +inline void PlayerMsg::set_has_human_type() { + _oneof_case_[0] = kHumanType; +} +inline void PlayerMsg::clear_human_type() { + if (_internal_has_human_type()) { + job_type_.human_type_ = 0; + clear_has_job_type(); + } +} +inline ::protobuf::HumanType PlayerMsg::_internal_human_type() const { + if (_internal_has_human_type()) { + return static_cast< ::protobuf::HumanType >(job_type_.human_type_); + } + return static_cast< ::protobuf::HumanType >(0); +} +inline ::protobuf::HumanType PlayerMsg::human_type() const { + // @@protoc_insertion_point(field_get:protobuf.PlayerMsg.human_type) + return _internal_human_type(); +} +inline void PlayerMsg::_internal_set_human_type(::protobuf::HumanType value) { + if (!_internal_has_human_type()) { + clear_job_type(); + set_has_human_type(); + } + job_type_.human_type_ = value; +} +inline void PlayerMsg::set_human_type(::protobuf::HumanType value) { + _internal_set_human_type(value); + // @@protoc_insertion_point(field_set:protobuf.PlayerMsg.human_type) +} + +// .protobuf.ButcherType butcher_type = 4; +inline bool PlayerMsg::_internal_has_butcher_type() const { + return job_type_case() == kButcherType; +} +inline bool PlayerMsg::has_butcher_type() const { + return _internal_has_butcher_type(); +} +inline void PlayerMsg::set_has_butcher_type() { + _oneof_case_[0] = kButcherType; +} +inline void PlayerMsg::clear_butcher_type() { + if (_internal_has_butcher_type()) { + job_type_.butcher_type_ = 0; + clear_has_job_type(); + } +} +inline ::protobuf::ButcherType PlayerMsg::_internal_butcher_type() const { + if (_internal_has_butcher_type()) { + return static_cast< ::protobuf::ButcherType >(job_type_.butcher_type_); + } + return static_cast< ::protobuf::ButcherType >(0); +} +inline ::protobuf::ButcherType PlayerMsg::butcher_type() const { + // @@protoc_insertion_point(field_get:protobuf.PlayerMsg.butcher_type) + return _internal_butcher_type(); +} +inline void PlayerMsg::_internal_set_butcher_type(::protobuf::ButcherType value) { + if (!_internal_has_butcher_type()) { + clear_job_type(); + set_has_butcher_type(); + } + job_type_.butcher_type_ = value; +} +inline void PlayerMsg::set_butcher_type(::protobuf::ButcherType value) { + _internal_set_butcher_type(value); + // @@protoc_insertion_point(field_set:protobuf.PlayerMsg.butcher_type) +} + +inline bool PlayerMsg::has_job_type() const { + return job_type_case() != JOB_TYPE_NOT_SET; +} +inline void PlayerMsg::clear_has_job_type() { + _oneof_case_[0] = JOB_TYPE_NOT_SET; +} +inline PlayerMsg::JobTypeCase PlayerMsg::job_type_case() const { + return PlayerMsg::JobTypeCase(_oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// MoveMsg + +// int64 player_id = 1; +inline void MoveMsg::clear_player_id() { + player_id_ = int64_t{0}; +} +inline int64_t MoveMsg::_internal_player_id() const { + return player_id_; +} +inline int64_t MoveMsg::player_id() const { + // @@protoc_insertion_point(field_get:protobuf.MoveMsg.player_id) + return _internal_player_id(); +} +inline void MoveMsg::_internal_set_player_id(int64_t value) { + + player_id_ = value; +} +inline void MoveMsg::set_player_id(int64_t value) { + _internal_set_player_id(value); + // @@protoc_insertion_point(field_set:protobuf.MoveMsg.player_id) +} + +// double angle = 2; +inline void MoveMsg::clear_angle() { + angle_ = 0; +} +inline double MoveMsg::_internal_angle() const { + return angle_; +} +inline double MoveMsg::angle() const { + // @@protoc_insertion_point(field_get:protobuf.MoveMsg.angle) + return _internal_angle(); +} +inline void MoveMsg::_internal_set_angle(double value) { + + angle_ = value; +} +inline void MoveMsg::set_angle(double value) { + _internal_set_angle(value); + // @@protoc_insertion_point(field_set:protobuf.MoveMsg.angle) +} + +// int64 time_in_milliseconds = 3; +inline void MoveMsg::clear_time_in_milliseconds() { + time_in_milliseconds_ = int64_t{0}; +} +inline int64_t MoveMsg::_internal_time_in_milliseconds() const { + return time_in_milliseconds_; +} +inline int64_t MoveMsg::time_in_milliseconds() const { + // @@protoc_insertion_point(field_get:protobuf.MoveMsg.time_in_milliseconds) + return _internal_time_in_milliseconds(); +} +inline void MoveMsg::_internal_set_time_in_milliseconds(int64_t value) { + + time_in_milliseconds_ = value; +} +inline void MoveMsg::set_time_in_milliseconds(int64_t value) { + _internal_set_time_in_milliseconds(value); + // @@protoc_insertion_point(field_set:protobuf.MoveMsg.time_in_milliseconds) +} + +// ------------------------------------------------------------------- + +// PickMsg + +// int64 player_id = 1; +inline void PickMsg::clear_player_id() { + player_id_ = int64_t{0}; +} +inline int64_t PickMsg::_internal_player_id() const { + return player_id_; +} +inline int64_t PickMsg::player_id() const { + // @@protoc_insertion_point(field_get:protobuf.PickMsg.player_id) + return _internal_player_id(); +} +inline void PickMsg::_internal_set_player_id(int64_t value) { + + player_id_ = value; +} +inline void PickMsg::set_player_id(int64_t value) { + _internal_set_player_id(value); + // @@protoc_insertion_point(field_set:protobuf.PickMsg.player_id) +} + +// .protobuf.PropType prop_type = 2; +inline void PickMsg::clear_prop_type() { + prop_type_ = 0; +} +inline ::protobuf::PropType PickMsg::_internal_prop_type() const { + return static_cast< ::protobuf::PropType >(prop_type_); +} +inline ::protobuf::PropType PickMsg::prop_type() const { + // @@protoc_insertion_point(field_get:protobuf.PickMsg.prop_type) + return _internal_prop_type(); +} +inline void PickMsg::_internal_set_prop_type(::protobuf::PropType value) { + + prop_type_ = value; +} +inline void PickMsg::set_prop_type(::protobuf::PropType value) { + _internal_set_prop_type(value); + // @@protoc_insertion_point(field_set:protobuf.PickMsg.prop_type) +} + +// ------------------------------------------------------------------- + +// SendMsg + +// int64 player_id = 1; +inline void SendMsg::clear_player_id() { + player_id_ = int64_t{0}; +} +inline int64_t SendMsg::_internal_player_id() const { + return player_id_; +} +inline int64_t SendMsg::player_id() const { + // @@protoc_insertion_point(field_get:protobuf.SendMsg.player_id) + return _internal_player_id(); +} +inline void SendMsg::_internal_set_player_id(int64_t value) { + + player_id_ = value; +} +inline void SendMsg::set_player_id(int64_t value) { + _internal_set_player_id(value); + // @@protoc_insertion_point(field_set:protobuf.SendMsg.player_id) +} + +// int64 to_player_id = 2; +inline void SendMsg::clear_to_player_id() { + to_player_id_ = int64_t{0}; +} +inline int64_t SendMsg::_internal_to_player_id() const { + return to_player_id_; +} +inline int64_t SendMsg::to_player_id() const { + // @@protoc_insertion_point(field_get:protobuf.SendMsg.to_player_id) + return _internal_to_player_id(); +} +inline void SendMsg::_internal_set_to_player_id(int64_t value) { + + to_player_id_ = value; +} +inline void SendMsg::set_to_player_id(int64_t value) { + _internal_set_to_player_id(value); + // @@protoc_insertion_point(field_set:protobuf.SendMsg.to_player_id) +} + +// string message = 3; +inline void SendMsg::clear_message() { + message_.ClearToEmpty(); +} +inline const std::string& SendMsg::message() const { + // @@protoc_insertion_point(field_get:protobuf.SendMsg.message) + return _internal_message(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void SendMsg::set_message(ArgT0&& arg0, ArgT... args) { + + message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:protobuf.SendMsg.message) +} +inline std::string* SendMsg::mutable_message() { + std::string* _s = _internal_mutable_message(); + // @@protoc_insertion_point(field_mutable:protobuf.SendMsg.message) + return _s; +} +inline const std::string& SendMsg::_internal_message() const { + return message_.Get(); +} +inline void SendMsg::_internal_set_message(const std::string& value) { + + message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, value, GetArenaForAllocation()); +} +inline std::string* SendMsg::_internal_mutable_message() { + + return message_.Mutable(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, GetArenaForAllocation()); +} +inline std::string* SendMsg::release_message() { + // @@protoc_insertion_point(field_release:protobuf.SendMsg.message) + return message_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaForAllocation()); +} +inline void SendMsg::set_allocated_message(std::string* message) { + if (message != nullptr) { + + } else { + + } + message_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), message, + GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (message_.IsDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited())) { + message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:protobuf.SendMsg.message) +} + +// ------------------------------------------------------------------- + +// AttackMsg + +// int64 player_id = 1; +inline void AttackMsg::clear_player_id() { + player_id_ = int64_t{0}; +} +inline int64_t AttackMsg::_internal_player_id() const { + return player_id_; +} +inline int64_t AttackMsg::player_id() const { + // @@protoc_insertion_point(field_get:protobuf.AttackMsg.player_id) + return _internal_player_id(); +} +inline void AttackMsg::_internal_set_player_id(int64_t value) { + + player_id_ = value; +} +inline void AttackMsg::set_player_id(int64_t value) { + _internal_set_player_id(value); + // @@protoc_insertion_point(field_set:protobuf.AttackMsg.player_id) +} + +// double angle = 2; +inline void AttackMsg::clear_angle() { + angle_ = 0; +} +inline double AttackMsg::_internal_angle() const { + return angle_; +} +inline double AttackMsg::angle() const { + // @@protoc_insertion_point(field_get:protobuf.AttackMsg.angle) + return _internal_angle(); +} +inline void AttackMsg::_internal_set_angle(double value) { + + angle_ = value; +} +inline void AttackMsg::set_angle(double value) { + _internal_set_angle(value); + // @@protoc_insertion_point(field_set:protobuf.AttackMsg.angle) +} + +// ------------------------------------------------------------------- + +// IDMsg + +// int64 playerID = 1; +inline void IDMsg::clear_playerid() { + playerid_ = int64_t{0}; +} +inline int64_t IDMsg::_internal_playerid() const { + return playerid_; +} +inline int64_t IDMsg::playerid() const { + // @@protoc_insertion_point(field_get:protobuf.IDMsg.playerID) + return _internal_playerid(); +} +inline void IDMsg::_internal_set_playerid(int64_t value) { + + playerid_ = value; +} +inline void IDMsg::set_playerid(int64_t value) { + _internal_set_playerid(value); + // @@protoc_insertion_point(field_set:protobuf.IDMsg.playerID) +} + +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + + +// @@protoc_insertion_point(namespace_scope) + +} // namespace protobuf + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_Message2Server_2eproto diff --git a/CAPI/proto/MessageType.grpc.pb.cc b/CAPI/proto/MessageType.grpc.pb.cc new file mode 100644 index 0000000..35fb8dd --- /dev/null +++ b/CAPI/proto/MessageType.grpc.pb.cc @@ -0,0 +1,25 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: MessageType.proto + +#include "MessageType.pb.h" +#include "MessageType.grpc.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +namespace protobuf { + +} // namespace protobuf + diff --git a/CAPI/proto/MessageType.grpc.pb.h b/CAPI/proto/MessageType.grpc.pb.h new file mode 100644 index 0000000..156956a --- /dev/null +++ b/CAPI/proto/MessageType.grpc.pb.h @@ -0,0 +1,35 @@ +// Generated by the gRPC C++ plugin. +// If you make any local change, they will be lost. +// source: MessageType.proto +// Original file comments: +// MessageType +#ifndef GRPC_MessageType_2eproto__INCLUDED +#define GRPC_MessageType_2eproto__INCLUDED + +#include "MessageType.pb.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace protobuf { + +} // namespace protobuf + + +#endif // GRPC_MessageType_2eproto__INCLUDED diff --git a/CAPI/proto/MessageType.pb.cc b/CAPI/proto/MessageType.pb.cc new file mode 100644 index 0000000..9ebab80 --- /dev/null +++ b/CAPI/proto/MessageType.pb.cc @@ -0,0 +1,201 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MessageType.proto + +#include "MessageType.pb.h" + +#include + +#include +#include +#include +#include +#include +#include +#include +// @@protoc_insertion_point(includes) +#include + +PROTOBUF_PRAGMA_INIT_SEG +namespace protobuf { +} // namespace protobuf +static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_MessageType_2eproto[8]; +static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_MessageType_2eproto = nullptr; +const uint32_t TableStruct_MessageType_2eproto::offsets[1] = {}; +static constexpr ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema* schemas = nullptr; +static constexpr ::PROTOBUF_NAMESPACE_ID::Message* const* file_default_instances = nullptr; + +const char descriptor_table_protodef_MessageType_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = + "\n\021MessageType.proto\022\010protobuf*]\n\tPlaceTy" + "pe\022\023\n\017NULL_PLACE_TYPE\020\000\022\010\n\004WALL\020\001\022\t\n\005GRA" + "SS\020\002\022\013\n\007MACHINE\020\003\022\010\n\004GATE\020\004\022\017\n\013HIDDEN_GA" + "TE\020\005*8\n\tShapeType\022\023\n\017NULL_SHAPE_TYPE\020\000\022\n" + "\n\006CIRCLE\020\001\022\n\n\006SQUARE\020\002*N\n\010PropType\022\022\n\016NU" + "LL_PROP_TYPE\020\000\022\n\n\006PTYPE1\020\001\022\n\n\006PTYPE2\020\002\022\n" + "\n\006PTYPE3\020\003\022\n\n\006PTYPE4\020\004*d\n\rHumanBuffType\022" + "\023\n\017NULL_HBUFF_TYPE\020\000\022\016\n\nHBUFFTYPE1\020\001\022\016\n\n" + "HBUFFTYPE2\020\002\022\016\n\nHBUFFTYPE3\020\003\022\016\n\nHBUFFTYP" + "E4\020\004*f\n\017ButcherBuffType\022\023\n\017NULL_BBUFF_TY" + "PE\020\000\022\016\n\nBBUFFTYPE1\020\001\022\016\n\nBBUFFTYPE2\020\002\022\016\n\n" + "BBUFFTYPE3\020\003\022\016\n\nBBUFFTYPE4\020\004*2\n\nPlayerTy" + "pe\022\020\n\014HUMAN_PLAYER\020\000\022\022\n\016BUTCHER_PLAYER\020\001" + "*`\n\tHumanType\022\023\n\017NULL_HUMAN_TYPE\020\000\022\016\n\nHU" + "MANTYPE1\020\001\022\016\n\nHUMANTYPE2\020\002\022\016\n\nHUMANTYPE3" + "\020\003\022\016\n\nHUMANTYPE4\020\004*l\n\013ButcherType\022\025\n\021NUL" + "L_BUTCHER_TYPE\020\000\022\020\n\014BUTCHERTYPE1\020\001\022\020\n\014BU" + "TCHERTYPE2\020\002\022\020\n\014BUTCHERTYPE3\020\003\022\020\n\014BUTCHE" + "RTYPE4\020\004b\006proto3" + ; +static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_MessageType_2eproto_once; +const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_MessageType_2eproto = { + false, false, 736, descriptor_table_protodef_MessageType_2eproto, "MessageType.proto", + &descriptor_table_MessageType_2eproto_once, nullptr, 0, 0, + schemas, file_default_instances, TableStruct_MessageType_2eproto::offsets, + nullptr, file_level_enum_descriptors_MessageType_2eproto, file_level_service_descriptors_MessageType_2eproto, +}; +PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_MessageType_2eproto_getter() { + return &descriptor_table_MessageType_2eproto; +} + +// Force running AddDescriptors() at dynamic initialization time. +PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_MessageType_2eproto(&descriptor_table_MessageType_2eproto); +namespace protobuf { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PlaceType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); + return file_level_enum_descriptors_MessageType_2eproto[0]; +} +bool PlaceType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + return true; + default: + return false; + } +} + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ShapeType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); + return file_level_enum_descriptors_MessageType_2eproto[1]; +} +bool ShapeType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + return true; + default: + return false; + } +} + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PropType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); + return file_level_enum_descriptors_MessageType_2eproto[2]; +} +bool PropType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* HumanBuffType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); + return file_level_enum_descriptors_MessageType_2eproto[3]; +} +bool HumanBuffType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ButcherBuffType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); + return file_level_enum_descriptors_MessageType_2eproto[4]; +} +bool ButcherBuffType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PlayerType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); + return file_level_enum_descriptors_MessageType_2eproto[5]; +} +bool PlayerType_IsValid(int value) { + switch (value) { + case 0: + case 1: + return true; + default: + return false; + } +} + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* HumanType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); + return file_level_enum_descriptors_MessageType_2eproto[6]; +} +bool HumanType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ButcherType_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_MessageType_2eproto); + return file_level_enum_descriptors_MessageType_2eproto[7]; +} +bool ButcherType_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + case 4: + return true; + default: + return false; + } +} + + +// @@protoc_insertion_point(namespace_scope) +} // namespace protobuf +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) +#include diff --git a/CAPI/proto/MessageType.pb.h b/CAPI/proto/MessageType.pb.h new file mode 100644 index 0000000..931fd1b --- /dev/null +++ b/CAPI/proto/MessageType.pb.h @@ -0,0 +1,347 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: MessageType.proto + +#ifndef GOOGLE_PROTOBUF_INCLUDED_MessageType_2eproto +#define GOOGLE_PROTOBUF_INCLUDED_MessageType_2eproto + +#include +#include + +#include +#if PROTOBUF_VERSION < 3019000 +#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 3019004 < 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 +// @@protoc_insertion_point(includes) +#include +#define PROTOBUF_INTERNAL_EXPORT_MessageType_2eproto +PROTOBUF_NAMESPACE_OPEN +namespace internal { +class AnyMetadata; +} // namespace internal +PROTOBUF_NAMESPACE_CLOSE + +// Internal implementation detail -- do not use these members. +struct TableStruct_MessageType_2eproto { + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] + PROTOBUF_SECTION_VARIABLE(protodesc_cold); + static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; + static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; + static const uint32_t offsets[]; +}; +extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_MessageType_2eproto; +PROTOBUF_NAMESPACE_OPEN +PROTOBUF_NAMESPACE_CLOSE +namespace protobuf { + +enum PlaceType : int { + NULL_PLACE_TYPE = 0, + WALL = 1, + GRASS = 2, + MACHINE = 3, + GATE = 4, + HIDDEN_GATE = 5, + PlaceType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + PlaceType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool PlaceType_IsValid(int value); +constexpr PlaceType PlaceType_MIN = NULL_PLACE_TYPE; +constexpr PlaceType PlaceType_MAX = HIDDEN_GATE; +constexpr int PlaceType_ARRAYSIZE = PlaceType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PlaceType_descriptor(); +template +inline const std::string& PlaceType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PlaceType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + PlaceType_descriptor(), enum_t_value); +} +inline bool PlaceType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PlaceType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + PlaceType_descriptor(), name, value); +} +enum ShapeType : int { + NULL_SHAPE_TYPE = 0, + CIRCLE = 1, + SQUARE = 2, + ShapeType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + ShapeType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool ShapeType_IsValid(int value); +constexpr ShapeType ShapeType_MIN = NULL_SHAPE_TYPE; +constexpr ShapeType ShapeType_MAX = SQUARE; +constexpr int ShapeType_ARRAYSIZE = ShapeType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ShapeType_descriptor(); +template +inline const std::string& ShapeType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ShapeType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + ShapeType_descriptor(), enum_t_value); +} +inline bool ShapeType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ShapeType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + ShapeType_descriptor(), name, value); +} +enum PropType : int { + NULL_PROP_TYPE = 0, + PTYPE1 = 1, + PTYPE2 = 2, + PTYPE3 = 3, + PTYPE4 = 4, + PropType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + PropType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool PropType_IsValid(int value); +constexpr PropType PropType_MIN = NULL_PROP_TYPE; +constexpr PropType PropType_MAX = PTYPE4; +constexpr int PropType_ARRAYSIZE = PropType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PropType_descriptor(); +template +inline const std::string& PropType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PropType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + PropType_descriptor(), enum_t_value); +} +inline bool PropType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PropType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + PropType_descriptor(), name, value); +} +enum HumanBuffType : int { + NULL_HBUFF_TYPE = 0, + HBUFFTYPE1 = 1, + HBUFFTYPE2 = 2, + HBUFFTYPE3 = 3, + HBUFFTYPE4 = 4, + HumanBuffType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + HumanBuffType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool HumanBuffType_IsValid(int value); +constexpr HumanBuffType HumanBuffType_MIN = NULL_HBUFF_TYPE; +constexpr HumanBuffType HumanBuffType_MAX = HBUFFTYPE4; +constexpr int HumanBuffType_ARRAYSIZE = HumanBuffType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* HumanBuffType_descriptor(); +template +inline const std::string& HumanBuffType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function HumanBuffType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + HumanBuffType_descriptor(), enum_t_value); +} +inline bool HumanBuffType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, HumanBuffType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + HumanBuffType_descriptor(), name, value); +} +enum ButcherBuffType : int { + NULL_BBUFF_TYPE = 0, + BBUFFTYPE1 = 1, + BBUFFTYPE2 = 2, + BBUFFTYPE3 = 3, + BBUFFTYPE4 = 4, + ButcherBuffType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + ButcherBuffType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool ButcherBuffType_IsValid(int value); +constexpr ButcherBuffType ButcherBuffType_MIN = NULL_BBUFF_TYPE; +constexpr ButcherBuffType ButcherBuffType_MAX = BBUFFTYPE4; +constexpr int ButcherBuffType_ARRAYSIZE = ButcherBuffType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ButcherBuffType_descriptor(); +template +inline const std::string& ButcherBuffType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ButcherBuffType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + ButcherBuffType_descriptor(), enum_t_value); +} +inline bool ButcherBuffType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ButcherBuffType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + ButcherBuffType_descriptor(), name, value); +} +enum PlayerType : int { + HUMAN_PLAYER = 0, + BUTCHER_PLAYER = 1, + PlayerType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + PlayerType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool PlayerType_IsValid(int value); +constexpr PlayerType PlayerType_MIN = HUMAN_PLAYER; +constexpr PlayerType PlayerType_MAX = BUTCHER_PLAYER; +constexpr int PlayerType_ARRAYSIZE = PlayerType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* PlayerType_descriptor(); +template +inline const std::string& PlayerType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function PlayerType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + PlayerType_descriptor(), enum_t_value); +} +inline bool PlayerType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, PlayerType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + PlayerType_descriptor(), name, value); +} +enum HumanType : int { + NULL_HUMAN_TYPE = 0, + HUMANTYPE1 = 1, + HUMANTYPE2 = 2, + HUMANTYPE3 = 3, + HUMANTYPE4 = 4, + HumanType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + HumanType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool HumanType_IsValid(int value); +constexpr HumanType HumanType_MIN = NULL_HUMAN_TYPE; +constexpr HumanType HumanType_MAX = HUMANTYPE4; +constexpr int HumanType_ARRAYSIZE = HumanType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* HumanType_descriptor(); +template +inline const std::string& HumanType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function HumanType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + HumanType_descriptor(), enum_t_value); +} +inline bool HumanType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, HumanType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + HumanType_descriptor(), name, value); +} +enum ButcherType : int { + NULL_BUTCHER_TYPE = 0, + BUTCHERTYPE1 = 1, + BUTCHERTYPE2 = 2, + BUTCHERTYPE3 = 3, + BUTCHERTYPE4 = 4, + ButcherType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + ButcherType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() +}; +bool ButcherType_IsValid(int value); +constexpr ButcherType ButcherType_MIN = NULL_BUTCHER_TYPE; +constexpr ButcherType ButcherType_MAX = BUTCHERTYPE4; +constexpr int ButcherType_ARRAYSIZE = ButcherType_MAX + 1; + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ButcherType_descriptor(); +template +inline const std::string& ButcherType_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::value, + "Incorrect type passed to function ButcherType_Name."); + return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( + ButcherType_descriptor(), enum_t_value); +} +inline bool ButcherType_Parse( + ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ButcherType* value) { + return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( + ButcherType_descriptor(), name, value); +} +// =================================================================== + + +// =================================================================== + + +// =================================================================== + +#ifdef __GNUC__ + #pragma GCC diagnostic push + #pragma GCC diagnostic ignored "-Wstrict-aliasing" +#endif // __GNUC__ +#ifdef __GNUC__ + #pragma GCC diagnostic pop +#endif // __GNUC__ + +// @@protoc_insertion_point(namespace_scope) + +} // namespace protobuf + +PROTOBUF_NAMESPACE_OPEN + +template <> struct is_proto_enum< ::protobuf::PlaceType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::protobuf::PlaceType>() { + return ::protobuf::PlaceType_descriptor(); +} +template <> struct is_proto_enum< ::protobuf::ShapeType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::protobuf::ShapeType>() { + return ::protobuf::ShapeType_descriptor(); +} +template <> struct is_proto_enum< ::protobuf::PropType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::protobuf::PropType>() { + return ::protobuf::PropType_descriptor(); +} +template <> struct is_proto_enum< ::protobuf::HumanBuffType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::protobuf::HumanBuffType>() { + return ::protobuf::HumanBuffType_descriptor(); +} +template <> struct is_proto_enum< ::protobuf::ButcherBuffType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::protobuf::ButcherBuffType>() { + return ::protobuf::ButcherBuffType_descriptor(); +} +template <> struct is_proto_enum< ::protobuf::PlayerType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::protobuf::PlayerType>() { + return ::protobuf::PlayerType_descriptor(); +} +template <> struct is_proto_enum< ::protobuf::HumanType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::protobuf::HumanType>() { + return ::protobuf::HumanType_descriptor(); +} +template <> struct is_proto_enum< ::protobuf::ButcherType> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::protobuf::ButcherType>() { + return ::protobuf::ButcherType_descriptor(); +} + +PROTOBUF_NAMESPACE_CLOSE + +// @@protoc_insertion_point(global_scope) + +#include +#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_MessageType_2eproto diff --git a/dependency/proto/Message2Clients.proto b/dependency/proto/Message2Clients.proto index 5fe8309..e2588ad 100644 --- a/dependency/proto/Message2Clients.proto +++ b/dependency/proto/Message2Clients.proto @@ -4,7 +4,6 @@ package protobuf; import "MessageType.proto"; import "Message2Server.proto"; -import "google/protobuf/empty.proto"; message MessageOfHuman { diff --git a/dependency/proto/cpp_output.sh b/dependency/proto/cpp_output.sh new file mode 100755 index 0000000..34ec741 --- /dev/null +++ b/dependency/proto/cpp_output.sh @@ -0,0 +1,8 @@ +protoc Message2Clients.proto --grpc_out=. --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` +protoc Message2Clients.proto --cpp_out=. +protoc MessageType.proto --grpc_out=. --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` +protoc MessageType.proto --cpp_out=. +protoc Message2Server.proto --grpc_out=. --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` +protoc Message2Server.proto --cpp_out=. +mv -f ./*.h ../../CAPI/proto +mv -f ./*.cc ../../CAPI/proto \ No newline at end of file