|
|
|
@@ -23,6 +23,7 @@ namespace protobuf |
|
|
|
{ |
|
|
|
|
|
|
|
static const char* AvailableService_method_names[] = { |
|
|
|
"/protobuf.AvailableService/TryConnection", |
|
|
|
"/protobuf.AvailableService/AddPlayer", |
|
|
|
"/protobuf.AvailableService/Move", |
|
|
|
"/protobuf.AvailableService/PickProp", |
|
|
|
@@ -49,24 +50,53 @@ namespace protobuf |
|
|
|
|
|
|
|
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_HaveMessage_(AvailableService_method_names[6], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), |
|
|
|
rpcmethod_GetMessage_(AvailableService_method_names[7], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), |
|
|
|
rpcmethod_FixMachine_(AvailableService_method_names[8], options.suffix_for_stats(), ::grpc::internal::RpcMethod::BIDI_STREAMING, channel), |
|
|
|
rpcmethod_SaveHuman_(AvailableService_method_names[9], options.suffix_for_stats(), ::grpc::internal::RpcMethod::BIDI_STREAMING, channel), |
|
|
|
rpcmethod_Attack_(AvailableService_method_names[10], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), |
|
|
|
rpcmethod_CarryHuman_(AvailableService_method_names[11], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), |
|
|
|
rpcmethod_ReleaseHuman_(AvailableService_method_names[12], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), |
|
|
|
rpcmethod_HangHuman_(AvailableService_method_names[13], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), |
|
|
|
rpcmethod_Escape_(AvailableService_method_names[14], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel) |
|
|
|
rpcmethod_TryConnection_(AvailableService_method_names[0], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), |
|
|
|
rpcmethod_AddPlayer_(AvailableService_method_names[1], options.suffix_for_stats(), ::grpc::internal::RpcMethod::SERVER_STREAMING, channel), |
|
|
|
rpcmethod_Move_(AvailableService_method_names[2], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), |
|
|
|
rpcmethod_PickProp_(AvailableService_method_names[3], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), |
|
|
|
rpcmethod_UseProp_(AvailableService_method_names[4], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), |
|
|
|
rpcmethod_UseSkill_(AvailableService_method_names[5], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), |
|
|
|
rpcmethod_SendMessage_(AvailableService_method_names[6], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), |
|
|
|
rpcmethod_HaveMessage_(AvailableService_method_names[7], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), |
|
|
|
rpcmethod_GetMessage_(AvailableService_method_names[8], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), |
|
|
|
rpcmethod_FixMachine_(AvailableService_method_names[9], options.suffix_for_stats(), ::grpc::internal::RpcMethod::BIDI_STREAMING, channel), |
|
|
|
rpcmethod_SaveHuman_(AvailableService_method_names[10], options.suffix_for_stats(), ::grpc::internal::RpcMethod::BIDI_STREAMING, channel), |
|
|
|
rpcmethod_Attack_(AvailableService_method_names[11], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), |
|
|
|
rpcmethod_CarryHuman_(AvailableService_method_names[12], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), |
|
|
|
rpcmethod_ReleaseHuman_(AvailableService_method_names[13], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), |
|
|
|
rpcmethod_HangHuman_(AvailableService_method_names[14], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel), |
|
|
|
rpcmethod_Escape_(AvailableService_method_names[15], options.suffix_for_stats(), ::grpc::internal::RpcMethod::NORMAL_RPC, channel) |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
::grpc::Status AvailableService::Stub::TryConnection(::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_TryConnection_, context, request, response); |
|
|
|
} |
|
|
|
|
|
|
|
void AvailableService::Stub::async::TryConnection(::grpc::ClientContext* context, const ::protobuf::IDMsg* request, ::protobuf::BoolRes* response, std::function<void(::grpc::Status)> f) |
|
|
|
{ |
|
|
|
::grpc::internal::CallbackUnaryCall<::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_TryConnection_, context, request, response, std::move(f)); |
|
|
|
} |
|
|
|
|
|
|
|
void AvailableService::Stub::async::TryConnection(::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_TryConnection_, context, request, response, reactor); |
|
|
|
} |
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AvailableService::Stub::PrepareAsyncTryConnectionRaw(::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_TryConnection_, context, request); |
|
|
|
} |
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader<::protobuf::BoolRes>* AvailableService::Stub::AsyncTryConnectionRaw(::grpc::ClientContext* context, const ::protobuf::IDMsg& request, ::grpc::CompletionQueue* cq) |
|
|
|
{ |
|
|
|
auto* result = |
|
|
|
this->PrepareAsyncTryConnectionRaw(context, request, cq); |
|
|
|
result->StartCall(); |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
::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); |
|
|
|
@@ -467,6 +497,20 @@ namespace protobuf |
|
|
|
{ |
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod( |
|
|
|
AvailableService_method_names[0], |
|
|
|
::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->TryConnection(ctx, req, resp); |
|
|
|
}, |
|
|
|
this |
|
|
|
) |
|
|
|
)); |
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod( |
|
|
|
AvailableService_method_names[1], |
|
|
|
::grpc::internal::RpcMethod::SERVER_STREAMING, |
|
|
|
new ::grpc::internal::ServerStreamingHandler<AvailableService::Service, ::protobuf::PlayerMsg, ::protobuf::MessageToClient>( |
|
|
|
[](AvailableService::Service* service, |
|
|
|
@@ -480,7 +524,7 @@ namespace protobuf |
|
|
|
) |
|
|
|
)); |
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod( |
|
|
|
AvailableService_method_names[1], |
|
|
|
AvailableService_method_names[2], |
|
|
|
::grpc::internal::RpcMethod::NORMAL_RPC, |
|
|
|
new ::grpc::internal::RpcMethodHandler<AvailableService::Service, ::protobuf::MoveMsg, ::protobuf::MoveRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( |
|
|
|
[](AvailableService::Service* service, |
|
|
|
@@ -494,7 +538,7 @@ namespace protobuf |
|
|
|
) |
|
|
|
)); |
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod( |
|
|
|
AvailableService_method_names[2], |
|
|
|
AvailableService_method_names[3], |
|
|
|
::grpc::internal::RpcMethod::NORMAL_RPC, |
|
|
|
new ::grpc::internal::RpcMethodHandler<AvailableService::Service, ::protobuf::PickMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( |
|
|
|
[](AvailableService::Service* service, |
|
|
|
@@ -508,7 +552,7 @@ namespace protobuf |
|
|
|
) |
|
|
|
)); |
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod( |
|
|
|
AvailableService_method_names[3], |
|
|
|
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, |
|
|
|
@@ -522,7 +566,7 @@ namespace protobuf |
|
|
|
) |
|
|
|
)); |
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod( |
|
|
|
AvailableService_method_names[4], |
|
|
|
AvailableService_method_names[5], |
|
|
|
::grpc::internal::RpcMethod::NORMAL_RPC, |
|
|
|
new ::grpc::internal::RpcMethodHandler<AvailableService::Service, ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( |
|
|
|
[](AvailableService::Service* service, |
|
|
|
@@ -536,7 +580,7 @@ namespace protobuf |
|
|
|
) |
|
|
|
)); |
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod( |
|
|
|
AvailableService_method_names[5], |
|
|
|
AvailableService_method_names[6], |
|
|
|
::grpc::internal::RpcMethod::NORMAL_RPC, |
|
|
|
new ::grpc::internal::RpcMethodHandler<AvailableService::Service, ::protobuf::SendMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( |
|
|
|
[](AvailableService::Service* service, |
|
|
|
@@ -550,7 +594,7 @@ namespace protobuf |
|
|
|
) |
|
|
|
)); |
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod( |
|
|
|
AvailableService_method_names[6], |
|
|
|
AvailableService_method_names[7], |
|
|
|
::grpc::internal::RpcMethod::NORMAL_RPC, |
|
|
|
new ::grpc::internal::RpcMethodHandler<AvailableService::Service, ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( |
|
|
|
[](AvailableService::Service* service, |
|
|
|
@@ -564,7 +608,7 @@ namespace protobuf |
|
|
|
) |
|
|
|
)); |
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod( |
|
|
|
AvailableService_method_names[7], |
|
|
|
AvailableService_method_names[8], |
|
|
|
::grpc::internal::RpcMethod::NORMAL_RPC, |
|
|
|
new ::grpc::internal::RpcMethodHandler<AvailableService::Service, ::protobuf::IDMsg, ::protobuf::MsgRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( |
|
|
|
[](AvailableService::Service* service, |
|
|
|
@@ -578,7 +622,7 @@ namespace protobuf |
|
|
|
) |
|
|
|
)); |
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod( |
|
|
|
AvailableService_method_names[8], |
|
|
|
AvailableService_method_names[9], |
|
|
|
::grpc::internal::RpcMethod::BIDI_STREAMING, |
|
|
|
new ::grpc::internal::BidiStreamingHandler<AvailableService::Service, ::protobuf::IDMsg, ::protobuf::BoolRes>( |
|
|
|
[](AvailableService::Service* service, |
|
|
|
@@ -591,7 +635,7 @@ namespace protobuf |
|
|
|
) |
|
|
|
)); |
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod( |
|
|
|
AvailableService_method_names[9], |
|
|
|
AvailableService_method_names[10], |
|
|
|
::grpc::internal::RpcMethod::BIDI_STREAMING, |
|
|
|
new ::grpc::internal::BidiStreamingHandler<AvailableService::Service, ::protobuf::IDMsg, ::protobuf::BoolRes>( |
|
|
|
[](AvailableService::Service* service, |
|
|
|
@@ -604,7 +648,7 @@ namespace protobuf |
|
|
|
) |
|
|
|
)); |
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod( |
|
|
|
AvailableService_method_names[10], |
|
|
|
AvailableService_method_names[11], |
|
|
|
::grpc::internal::RpcMethod::NORMAL_RPC, |
|
|
|
new ::grpc::internal::RpcMethodHandler<AvailableService::Service, ::protobuf::AttackMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( |
|
|
|
[](AvailableService::Service* service, |
|
|
|
@@ -618,7 +662,7 @@ namespace protobuf |
|
|
|
) |
|
|
|
)); |
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod( |
|
|
|
AvailableService_method_names[11], |
|
|
|
AvailableService_method_names[12], |
|
|
|
::grpc::internal::RpcMethod::NORMAL_RPC, |
|
|
|
new ::grpc::internal::RpcMethodHandler<AvailableService::Service, ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( |
|
|
|
[](AvailableService::Service* service, |
|
|
|
@@ -632,7 +676,7 @@ namespace protobuf |
|
|
|
) |
|
|
|
)); |
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod( |
|
|
|
AvailableService_method_names[12], |
|
|
|
AvailableService_method_names[13], |
|
|
|
::grpc::internal::RpcMethod::NORMAL_RPC, |
|
|
|
new ::grpc::internal::RpcMethodHandler<AvailableService::Service, ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( |
|
|
|
[](AvailableService::Service* service, |
|
|
|
@@ -646,7 +690,7 @@ namespace protobuf |
|
|
|
) |
|
|
|
)); |
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod( |
|
|
|
AvailableService_method_names[13], |
|
|
|
AvailableService_method_names[14], |
|
|
|
::grpc::internal::RpcMethod::NORMAL_RPC, |
|
|
|
new ::grpc::internal::RpcMethodHandler<AvailableService::Service, ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( |
|
|
|
[](AvailableService::Service* service, |
|
|
|
@@ -660,7 +704,7 @@ namespace protobuf |
|
|
|
) |
|
|
|
)); |
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod( |
|
|
|
AvailableService_method_names[14], |
|
|
|
AvailableService_method_names[15], |
|
|
|
::grpc::internal::RpcMethod::NORMAL_RPC, |
|
|
|
new ::grpc::internal::RpcMethodHandler<AvailableService::Service, ::protobuf::IDMsg, ::protobuf::BoolRes, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>( |
|
|
|
[](AvailableService::Service* service, |
|
|
|
@@ -679,6 +723,14 @@ namespace protobuf |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
::grpc::Status AvailableService::Service::TryConnection(::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::AddPlayer(::grpc::ServerContext* context, const ::protobuf::PlayerMsg* request, ::grpc::ServerWriter<::protobuf::MessageToClient>* writer) |
|
|
|
{ |
|
|
|
(void)context; |
|
|
|
|