// Generated by the gRPC C++ plugin.
// If you make any local change, they will be lost.
// source: query_analyzer.proto

#include "query_analyzer.pb.h"
#include "query_analyzer.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/message_allocator.h>
#include <grpcpp/impl/codegen/method_handler.h>
#include <grpcpp/impl/codegen/rpc_service_method.h>
#include <grpcpp/impl/codegen/server_callback.h>
#include <grpcpp/impl/codegen/server_callback_handlers.h>
#include <grpcpp/impl/codegen/server_context.h>
#include <grpcpp/impl/codegen/service_type.h>
#include <grpcpp/impl/codegen/sync_stream.h>
namespace QueryAnalyzer {

static const char* QueryInferenceService_method_names[] = {
  "/QueryAnalyzer.QueryInferenceService/QueryInference",
};

std::unique_ptr< QueryInferenceService::Stub> QueryInferenceService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
  (void)options;
  std::unique_ptr< QueryInferenceService::Stub> stub(new QueryInferenceService::Stub(channel));
  return stub;
}

QueryInferenceService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel)
  : channel_(channel), rpcmethod_QueryInference_(QueryInferenceService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel)
  {}

::grpc::Status QueryInferenceService::Stub::QueryInference(::grpc::ClientContext* context, const ::QueryAnalyzer::QueryInferenceRequest& request, ::QueryAnalyzer::QueryInferenceReply* response) {
  return ::grpc::internal::BlockingUnaryCall< ::QueryAnalyzer::QueryInferenceRequest, ::QueryAnalyzer::QueryInferenceReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_QueryInference_, context, request, response);
}

void QueryInferenceService::Stub::experimental_async::QueryInference(::grpc::ClientContext* context, const ::QueryAnalyzer::QueryInferenceRequest* request, ::QueryAnalyzer::QueryInferenceReply* response, std::function<void(::grpc::Status)> f) {
  ::grpc::internal::CallbackUnaryCall< ::QueryAnalyzer::QueryInferenceRequest, ::QueryAnalyzer::QueryInferenceReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_QueryInference_, context, request, response, std::move(f));
}

void QueryInferenceService::Stub::experimental_async::QueryInference(::grpc::ClientContext* context, const ::QueryAnalyzer::QueryInferenceRequest* request, ::QueryAnalyzer::QueryInferenceReply* response, ::grpc::experimental::ClientUnaryReactor* reactor) {
  ::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_QueryInference_, context, request, response, reactor);
}

::grpc::ClientAsyncResponseReader< ::QueryAnalyzer::QueryInferenceReply>* QueryInferenceService::Stub::PrepareAsyncQueryInferenceRaw(::grpc::ClientContext* context, const ::QueryAnalyzer::QueryInferenceRequest& request, ::grpc::CompletionQueue* cq) {
  return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::QueryAnalyzer::QueryInferenceReply, ::QueryAnalyzer::QueryInferenceRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_QueryInference_, context, request);
}

::grpc::ClientAsyncResponseReader< ::QueryAnalyzer::QueryInferenceReply>* QueryInferenceService::Stub::AsyncQueryInferenceRaw(::grpc::ClientContext* context, const ::QueryAnalyzer::QueryInferenceRequest& request, ::grpc::CompletionQueue* cq) {
  auto* result =
    this->PrepareAsyncQueryInferenceRaw(context, request, cq);
  result->StartCall();
  return result;
}

QueryInferenceService::Service::Service() {
  AddMethod(new ::grpc::internal::RpcServiceMethod(
      QueryInferenceService_method_names[0],
      ::grpc::internal::RpcMethod::NORMAL_RPC,
      new ::grpc::internal::RpcMethodHandler< QueryInferenceService::Service, ::QueryAnalyzer::QueryInferenceRequest, ::QueryAnalyzer::QueryInferenceReply, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
          [](QueryInferenceService::Service* service,
             ::grpc::ServerContext* ctx,
             const ::QueryAnalyzer::QueryInferenceRequest* req,
             ::QueryAnalyzer::QueryInferenceReply* resp) {
               return service->QueryInference(ctx, req, resp);
             }, this)));
}

QueryInferenceService::Service::~Service() {
}

::grpc::Status QueryInferenceService::Service::QueryInference(::grpc::ServerContext* context, const ::QueryAnalyzer::QueryInferenceRequest* request, ::QueryAnalyzer::QueryInferenceReply* response) {
  (void) context;
  (void) request;
  (void) response;
  return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
}


}  // namespace QueryAnalyzer

