Слияние кода завершено, страница обновится автоматически
// Generated by the gRPC C++ plugin.
// If you make any local change, they will be lost.
// source: WechatProto.proto
#include "WechatProto.pb.h"
#include "WechatProto.grpc.pb.h"
#include <functional>
#include <grpcpp/impl/codegen/async_stream.h>
#include <grpcpp/impl/codegen/async_unary_call.h>
#include <grpcpp/impl/codegen/channel_interface.h>
#include <grpcpp/impl/codegen/client_unary_call.h>
#include <grpcpp/impl/codegen/client_callback.h>
#include <grpcpp/impl/codegen/method_handler_impl.h>
#include <grpcpp/impl/codegen/rpc_service_method.h>
#include <grpcpp/impl/codegen/server_callback.h>
#include <grpcpp/impl/codegen/service_type.h>
#include <grpcpp/impl/codegen/sync_stream.h>
namespace WechatProto {
static const char* Wechat_method_names[] = {
"/WechatProto.Wechat/HelloWechat",
};
std::unique_ptr< Wechat::Stub> Wechat::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
(void)options;
std::unique_ptr< Wechat::Stub> stub(new Wechat::Stub(channel));
return stub;
}
Wechat::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel)
: channel_(channel), rpcmethod_HelloWechat_(Wechat_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
{}
::grpc::Status Wechat::Stub::HelloWechat(::grpc::ClientContext* context, const ::WechatProto::WechatMsg& request, ::WechatProto::WechatMsg* response) {
return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_HelloWechat_, context, request, response);
}
void Wechat::Stub::experimental_async::HelloWechat(::grpc::ClientContext* context, const ::WechatProto::WechatMsg* request, ::WechatProto::WechatMsg* response, std::function<void(::grpc::Status)> f) {
return ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_HelloWechat_, context, request, response, std::move(f));
}
::grpc::ClientAsyncResponseReader< ::WechatProto::WechatMsg>* Wechat::Stub::AsyncHelloWechatRaw(::grpc::ClientContext* context, const ::WechatProto::WechatMsg& request, ::grpc::CompletionQueue* cq) {
return ::grpc::internal::ClientAsyncResponseReaderFactory< ::WechatProto::WechatMsg>::Create(channel_.get(), cq, rpcmethod_HelloWechat_, context, request, true);
}
::grpc::ClientAsyncResponseReader< ::WechatProto::WechatMsg>* Wechat::Stub::PrepareAsyncHelloWechatRaw(::grpc::ClientContext* context, const ::WechatProto::WechatMsg& request, ::grpc::CompletionQueue* cq) {
return ::grpc::internal::ClientAsyncResponseReaderFactory< ::WechatProto::WechatMsg>::Create(channel_.get(), cq, rpcmethod_HelloWechat_, context, request, false);
}
Wechat::Service::Service() {
AddMethod(new ::grpc::internal::RpcServiceMethod(
Wechat_method_names[0],
::grpc::internal::RpcMethod::NORMAL_RPC,
new ::grpc::internal::RpcMethodHandler< Wechat::Service, ::WechatProto::WechatMsg, ::WechatProto::WechatMsg>(
std::mem_fn(&Wechat::Service::HelloWechat), this)));
}
Wechat::Service::~Service() {
}
::grpc::Status Wechat::Service::HelloWechat(::grpc::ServerContext* context, const ::WechatProto::WechatMsg* request, ::WechatProto::WechatMsg* response) {
(void) context;
(void) request;
(void) response;
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}
} // namespace WechatProto
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )