|
@@ -66,6 +66,13 @@ class dbservice final {
|
|
|
std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::iv::db::dataReply>> PrepareAsyncquerydata(::grpc::ClientContext* context, const ::iv::db::dataRequest& request, ::grpc::CompletionQueue* cq) {
|
|
|
return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::iv::db::dataReply>>(PrepareAsyncquerydataRaw(context, request, cq));
|
|
|
}
|
|
|
+ virtual ::grpc::Status downdbfile(::grpc::ClientContext* context, const ::iv::db::Filedbreq& request, ::iv::db::FiledbReply* response) = 0;
|
|
|
+ std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::iv::db::FiledbReply>> Asyncdowndbfile(::grpc::ClientContext* context, const ::iv::db::Filedbreq& request, ::grpc::CompletionQueue* cq) {
|
|
|
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::iv::db::FiledbReply>>(AsyncdowndbfileRaw(context, request, cq));
|
|
|
+ }
|
|
|
+ std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::iv::db::FiledbReply>> PrepareAsyncdowndbfile(::grpc::ClientContext* context, const ::iv::db::Filedbreq& request, ::grpc::CompletionQueue* cq) {
|
|
|
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::iv::db::FiledbReply>>(PrepareAsyncdowndbfileRaw(context, request, cq));
|
|
|
+ }
|
|
|
class experimental_async_interface {
|
|
|
public:
|
|
|
virtual ~experimental_async_interface() {}
|
|
@@ -81,6 +88,12 @@ class dbservice final {
|
|
|
#else
|
|
|
virtual void querydata(::grpc::ClientContext* context, const ::iv::db::dataRequest* request, ::iv::db::dataReply* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
|
|
|
#endif
|
|
|
+ virtual void downdbfile(::grpc::ClientContext* context, const ::iv::db::Filedbreq* request, ::iv::db::FiledbReply* response, std::function<void(::grpc::Status)>) = 0;
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ virtual void downdbfile(::grpc::ClientContext* context, const ::iv::db::Filedbreq* request, ::iv::db::FiledbReply* response, ::grpc::ClientUnaryReactor* reactor) = 0;
|
|
|
+ #else
|
|
|
+ virtual void downdbfile(::grpc::ClientContext* context, const ::iv::db::Filedbreq* request, ::iv::db::FiledbReply* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
|
|
|
+ #endif
|
|
|
};
|
|
|
#ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
typedef class experimental_async_interface async_interface;
|
|
@@ -94,6 +107,8 @@ class dbservice final {
|
|
|
virtual ::grpc::ClientAsyncResponseReaderInterface< ::iv::db::listReply>* PrepareAsyncquerylistRaw(::grpc::ClientContext* context, const ::iv::db::listRequest& request, ::grpc::CompletionQueue* cq) = 0;
|
|
|
virtual ::grpc::ClientAsyncResponseReaderInterface< ::iv::db::dataReply>* AsyncquerydataRaw(::grpc::ClientContext* context, const ::iv::db::dataRequest& request, ::grpc::CompletionQueue* cq) = 0;
|
|
|
virtual ::grpc::ClientAsyncResponseReaderInterface< ::iv::db::dataReply>* PrepareAsyncquerydataRaw(::grpc::ClientContext* context, const ::iv::db::dataRequest& request, ::grpc::CompletionQueue* cq) = 0;
|
|
|
+ virtual ::grpc::ClientAsyncResponseReaderInterface< ::iv::db::FiledbReply>* AsyncdowndbfileRaw(::grpc::ClientContext* context, const ::iv::db::Filedbreq& request, ::grpc::CompletionQueue* cq) = 0;
|
|
|
+ virtual ::grpc::ClientAsyncResponseReaderInterface< ::iv::db::FiledbReply>* PrepareAsyncdowndbfileRaw(::grpc::ClientContext* context, const ::iv::db::Filedbreq& request, ::grpc::CompletionQueue* cq) = 0;
|
|
|
};
|
|
|
class Stub final : public StubInterface {
|
|
|
public:
|
|
@@ -112,6 +127,13 @@ class dbservice final {
|
|
|
std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::iv::db::dataReply>> PrepareAsyncquerydata(::grpc::ClientContext* context, const ::iv::db::dataRequest& request, ::grpc::CompletionQueue* cq) {
|
|
|
return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::iv::db::dataReply>>(PrepareAsyncquerydataRaw(context, request, cq));
|
|
|
}
|
|
|
+ ::grpc::Status downdbfile(::grpc::ClientContext* context, const ::iv::db::Filedbreq& request, ::iv::db::FiledbReply* response) override;
|
|
|
+ std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::iv::db::FiledbReply>> Asyncdowndbfile(::grpc::ClientContext* context, const ::iv::db::Filedbreq& request, ::grpc::CompletionQueue* cq) {
|
|
|
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::iv::db::FiledbReply>>(AsyncdowndbfileRaw(context, request, cq));
|
|
|
+ }
|
|
|
+ std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::iv::db::FiledbReply>> PrepareAsyncdowndbfile(::grpc::ClientContext* context, const ::iv::db::Filedbreq& request, ::grpc::CompletionQueue* cq) {
|
|
|
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::iv::db::FiledbReply>>(PrepareAsyncdowndbfileRaw(context, request, cq));
|
|
|
+ }
|
|
|
class experimental_async final :
|
|
|
public StubInterface::experimental_async_interface {
|
|
|
public:
|
|
@@ -127,6 +149,12 @@ class dbservice final {
|
|
|
#else
|
|
|
void querydata(::grpc::ClientContext* context, const ::iv::db::dataRequest* request, ::iv::db::dataReply* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
|
|
|
#endif
|
|
|
+ void downdbfile(::grpc::ClientContext* context, const ::iv::db::Filedbreq* request, ::iv::db::FiledbReply* response, std::function<void(::grpc::Status)>) override;
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ void downdbfile(::grpc::ClientContext* context, const ::iv::db::Filedbreq* request, ::iv::db::FiledbReply* response, ::grpc::ClientUnaryReactor* reactor) override;
|
|
|
+ #else
|
|
|
+ void downdbfile(::grpc::ClientContext* context, const ::iv::db::Filedbreq* request, ::iv::db::FiledbReply* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
|
|
|
+ #endif
|
|
|
private:
|
|
|
friend class Stub;
|
|
|
explicit experimental_async(Stub* stub): stub_(stub) { }
|
|
@@ -142,8 +170,11 @@ class dbservice final {
|
|
|
::grpc::ClientAsyncResponseReader< ::iv::db::listReply>* PrepareAsyncquerylistRaw(::grpc::ClientContext* context, const ::iv::db::listRequest& request, ::grpc::CompletionQueue* cq) override;
|
|
|
::grpc::ClientAsyncResponseReader< ::iv::db::dataReply>* AsyncquerydataRaw(::grpc::ClientContext* context, const ::iv::db::dataRequest& request, ::grpc::CompletionQueue* cq) override;
|
|
|
::grpc::ClientAsyncResponseReader< ::iv::db::dataReply>* PrepareAsyncquerydataRaw(::grpc::ClientContext* context, const ::iv::db::dataRequest& request, ::grpc::CompletionQueue* cq) override;
|
|
|
+ ::grpc::ClientAsyncResponseReader< ::iv::db::FiledbReply>* AsyncdowndbfileRaw(::grpc::ClientContext* context, const ::iv::db::Filedbreq& request, ::grpc::CompletionQueue* cq) override;
|
|
|
+ ::grpc::ClientAsyncResponseReader< ::iv::db::FiledbReply>* PrepareAsyncdowndbfileRaw(::grpc::ClientContext* context, const ::iv::db::Filedbreq& request, ::grpc::CompletionQueue* cq) override;
|
|
|
const ::grpc::internal::RpcMethod rpcmethod_querylist_;
|
|
|
const ::grpc::internal::RpcMethod rpcmethod_querydata_;
|
|
|
+ const ::grpc::internal::RpcMethod rpcmethod_downdbfile_;
|
|
|
};
|
|
|
static std::unique_ptr<Stub> NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
|
|
|
|
|
@@ -153,6 +184,7 @@ class dbservice final {
|
|
|
virtual ~Service();
|
|
|
virtual ::grpc::Status querylist(::grpc::ServerContext* context, const ::iv::db::listRequest* request, ::iv::db::listReply* response);
|
|
|
virtual ::grpc::Status querydata(::grpc::ServerContext* context, const ::iv::db::dataRequest* request, ::iv::db::dataReply* response);
|
|
|
+ virtual ::grpc::Status downdbfile(::grpc::ServerContext* context, const ::iv::db::Filedbreq* request, ::iv::db::FiledbReply* response);
|
|
|
};
|
|
|
template <class BaseClass>
|
|
|
class WithAsyncMethod_querylist : public BaseClass {
|
|
@@ -194,7 +226,27 @@ class dbservice final {
|
|
|
::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag);
|
|
|
}
|
|
|
};
|
|
|
- typedef WithAsyncMethod_querylist<WithAsyncMethod_querydata<Service > > AsyncService;
|
|
|
+ template <class BaseClass>
|
|
|
+ class WithAsyncMethod_downdbfile : public BaseClass {
|
|
|
+ private:
|
|
|
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
|
|
+ public:
|
|
|
+ WithAsyncMethod_downdbfile() {
|
|
|
+ ::grpc::Service::MarkMethodAsync(2);
|
|
|
+ }
|
|
|
+ ~WithAsyncMethod_downdbfile() override {
|
|
|
+ BaseClassMustBeDerivedFromService(this);
|
|
|
+ }
|
|
|
+ // disable synchronous version of this method
|
|
|
+ ::grpc::Status downdbfile(::grpc::ServerContext* /*context*/, const ::iv::db::Filedbreq* /*request*/, ::iv::db::FiledbReply* /*response*/) override {
|
|
|
+ abort();
|
|
|
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
+ }
|
|
|
+ void Requestdowndbfile(::grpc::ServerContext* context, ::iv::db::Filedbreq* request, ::grpc::ServerAsyncResponseWriter< ::iv::db::FiledbReply>* 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);
|
|
|
+ }
|
|
|
+ };
|
|
|
+ typedef WithAsyncMethod_querylist<WithAsyncMethod_querydata<WithAsyncMethod_downdbfile<Service > > > AsyncService;
|
|
|
template <class BaseClass>
|
|
|
class ExperimentalWithCallbackMethod_querylist : public BaseClass {
|
|
|
private:
|
|
@@ -289,11 +341,58 @@ class dbservice final {
|
|
|
#endif
|
|
|
{ return nullptr; }
|
|
|
};
|
|
|
+ template <class BaseClass>
|
|
|
+ class ExperimentalWithCallbackMethod_downdbfile : public BaseClass {
|
|
|
+ private:
|
|
|
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
|
|
+ public:
|
|
|
+ ExperimentalWithCallbackMethod_downdbfile() {
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ ::grpc::Service::
|
|
|
+ #else
|
|
|
+ ::grpc::Service::experimental().
|
|
|
+ #endif
|
|
|
+ MarkMethodCallback(2,
|
|
|
+ new ::grpc::internal::CallbackUnaryHandler< ::iv::db::Filedbreq, ::iv::db::FiledbReply>(
|
|
|
+ [this](
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ ::grpc::CallbackServerContext*
|
|
|
+ #else
|
|
|
+ ::grpc::experimental::CallbackServerContext*
|
|
|
+ #endif
|
|
|
+ context, const ::iv::db::Filedbreq* request, ::iv::db::FiledbReply* response) { return this->downdbfile(context, request, response); }));}
|
|
|
+ void SetMessageAllocatorFor_downdbfile(
|
|
|
+ ::grpc::experimental::MessageAllocator< ::iv::db::Filedbreq, ::iv::db::FiledbReply>* allocator) {
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(2);
|
|
|
+ #else
|
|
|
+ ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(2);
|
|
|
+ #endif
|
|
|
+ static_cast<::grpc::internal::CallbackUnaryHandler< ::iv::db::Filedbreq, ::iv::db::FiledbReply>*>(handler)
|
|
|
+ ->SetMessageAllocator(allocator);
|
|
|
+ }
|
|
|
+ ~ExperimentalWithCallbackMethod_downdbfile() override {
|
|
|
+ BaseClassMustBeDerivedFromService(this);
|
|
|
+ }
|
|
|
+ // disable synchronous version of this method
|
|
|
+ ::grpc::Status downdbfile(::grpc::ServerContext* /*context*/, const ::iv::db::Filedbreq* /*request*/, ::iv::db::FiledbReply* /*response*/) override {
|
|
|
+ abort();
|
|
|
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
+ }
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ virtual ::grpc::ServerUnaryReactor* downdbfile(
|
|
|
+ ::grpc::CallbackServerContext* /*context*/, const ::iv::db::Filedbreq* /*request*/, ::iv::db::FiledbReply* /*response*/)
|
|
|
+ #else
|
|
|
+ virtual ::grpc::experimental::ServerUnaryReactor* downdbfile(
|
|
|
+ ::grpc::experimental::CallbackServerContext* /*context*/, const ::iv::db::Filedbreq* /*request*/, ::iv::db::FiledbReply* /*response*/)
|
|
|
+ #endif
|
|
|
+ { return nullptr; }
|
|
|
+ };
|
|
|
#ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
- typedef ExperimentalWithCallbackMethod_querylist<ExperimentalWithCallbackMethod_querydata<Service > > CallbackService;
|
|
|
+ typedef ExperimentalWithCallbackMethod_querylist<ExperimentalWithCallbackMethod_querydata<ExperimentalWithCallbackMethod_downdbfile<Service > > > CallbackService;
|
|
|
#endif
|
|
|
|
|
|
- typedef ExperimentalWithCallbackMethod_querylist<ExperimentalWithCallbackMethod_querydata<Service > > ExperimentalCallbackService;
|
|
|
+ typedef ExperimentalWithCallbackMethod_querylist<ExperimentalWithCallbackMethod_querydata<ExperimentalWithCallbackMethod_downdbfile<Service > > > ExperimentalCallbackService;
|
|
|
template <class BaseClass>
|
|
|
class WithGenericMethod_querylist : public BaseClass {
|
|
|
private:
|
|
@@ -329,6 +428,23 @@ class dbservice final {
|
|
|
}
|
|
|
};
|
|
|
template <class BaseClass>
|
|
|
+ class WithGenericMethod_downdbfile : public BaseClass {
|
|
|
+ private:
|
|
|
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
|
|
+ public:
|
|
|
+ WithGenericMethod_downdbfile() {
|
|
|
+ ::grpc::Service::MarkMethodGeneric(2);
|
|
|
+ }
|
|
|
+ ~WithGenericMethod_downdbfile() override {
|
|
|
+ BaseClassMustBeDerivedFromService(this);
|
|
|
+ }
|
|
|
+ // disable synchronous version of this method
|
|
|
+ ::grpc::Status downdbfile(::grpc::ServerContext* /*context*/, const ::iv::db::Filedbreq* /*request*/, ::iv::db::FiledbReply* /*response*/) override {
|
|
|
+ abort();
|
|
|
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
+ }
|
|
|
+ };
|
|
|
+ template <class BaseClass>
|
|
|
class WithRawMethod_querylist : public BaseClass {
|
|
|
private:
|
|
|
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
|
@@ -369,6 +485,26 @@ class dbservice final {
|
|
|
}
|
|
|
};
|
|
|
template <class BaseClass>
|
|
|
+ class WithRawMethod_downdbfile : public BaseClass {
|
|
|
+ private:
|
|
|
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
|
|
+ public:
|
|
|
+ WithRawMethod_downdbfile() {
|
|
|
+ ::grpc::Service::MarkMethodRaw(2);
|
|
|
+ }
|
|
|
+ ~WithRawMethod_downdbfile() override {
|
|
|
+ BaseClassMustBeDerivedFromService(this);
|
|
|
+ }
|
|
|
+ // disable synchronous version of this method
|
|
|
+ ::grpc::Status downdbfile(::grpc::ServerContext* /*context*/, const ::iv::db::Filedbreq* /*request*/, ::iv::db::FiledbReply* /*response*/) override {
|
|
|
+ abort();
|
|
|
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
+ }
|
|
|
+ void Requestdowndbfile(::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 BaseClass>
|
|
|
class ExperimentalWithRawCallbackMethod_querylist : public BaseClass {
|
|
|
private:
|
|
|
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
|
@@ -445,6 +581,44 @@ class dbservice final {
|
|
|
{ return nullptr; }
|
|
|
};
|
|
|
template <class BaseClass>
|
|
|
+ class ExperimentalWithRawCallbackMethod_downdbfile : public BaseClass {
|
|
|
+ private:
|
|
|
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
|
|
+ public:
|
|
|
+ ExperimentalWithRawCallbackMethod_downdbfile() {
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ ::grpc::Service::
|
|
|
+ #else
|
|
|
+ ::grpc::Service::experimental().
|
|
|
+ #endif
|
|
|
+ MarkMethodRawCallback(2,
|
|
|
+ new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>(
|
|
|
+ [this](
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ ::grpc::CallbackServerContext*
|
|
|
+ #else
|
|
|
+ ::grpc::experimental::CallbackServerContext*
|
|
|
+ #endif
|
|
|
+ context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response) { return this->downdbfile(context, request, response); }));
|
|
|
+ }
|
|
|
+ ~ExperimentalWithRawCallbackMethod_downdbfile() override {
|
|
|
+ BaseClassMustBeDerivedFromService(this);
|
|
|
+ }
|
|
|
+ // disable synchronous version of this method
|
|
|
+ ::grpc::Status downdbfile(::grpc::ServerContext* /*context*/, const ::iv::db::Filedbreq* /*request*/, ::iv::db::FiledbReply* /*response*/) override {
|
|
|
+ abort();
|
|
|
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
+ }
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ virtual ::grpc::ServerUnaryReactor* downdbfile(
|
|
|
+ ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
|
|
|
+ #else
|
|
|
+ virtual ::grpc::experimental::ServerUnaryReactor* downdbfile(
|
|
|
+ ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
|
|
|
+ #endif
|
|
|
+ { return nullptr; }
|
|
|
+ };
|
|
|
+ template <class BaseClass>
|
|
|
class WithStreamedUnaryMethod_querylist : public BaseClass {
|
|
|
private:
|
|
|
void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
|
@@ -498,9 +672,36 @@ class dbservice final {
|
|
|
// replace default version of method with streamed unary
|
|
|
virtual ::grpc::Status Streamedquerydata(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::iv::db::dataRequest,::iv::db::dataReply>* server_unary_streamer) = 0;
|
|
|
};
|
|
|
- typedef WithStreamedUnaryMethod_querylist<WithStreamedUnaryMethod_querydata<Service > > StreamedUnaryService;
|
|
|
+ template <class BaseClass>
|
|
|
+ class WithStreamedUnaryMethod_downdbfile : public BaseClass {
|
|
|
+ private:
|
|
|
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
|
|
+ public:
|
|
|
+ WithStreamedUnaryMethod_downdbfile() {
|
|
|
+ ::grpc::Service::MarkMethodStreamed(2,
|
|
|
+ new ::grpc::internal::StreamedUnaryHandler<
|
|
|
+ ::iv::db::Filedbreq, ::iv::db::FiledbReply>(
|
|
|
+ [this](::grpc::ServerContext* context,
|
|
|
+ ::grpc::ServerUnaryStreamer<
|
|
|
+ ::iv::db::Filedbreq, ::iv::db::FiledbReply>* streamer) {
|
|
|
+ return this->Streameddowndbfile(context,
|
|
|
+ streamer);
|
|
|
+ }));
|
|
|
+ }
|
|
|
+ ~WithStreamedUnaryMethod_downdbfile() override {
|
|
|
+ BaseClassMustBeDerivedFromService(this);
|
|
|
+ }
|
|
|
+ // disable regular version of this method
|
|
|
+ ::grpc::Status downdbfile(::grpc::ServerContext* /*context*/, const ::iv::db::Filedbreq* /*request*/, ::iv::db::FiledbReply* /*response*/) override {
|
|
|
+ abort();
|
|
|
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
+ }
|
|
|
+ // replace default version of method with streamed unary
|
|
|
+ virtual ::grpc::Status Streameddowndbfile(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::iv::db::Filedbreq,::iv::db::FiledbReply>* server_unary_streamer) = 0;
|
|
|
+ };
|
|
|
+ typedef WithStreamedUnaryMethod_querylist<WithStreamedUnaryMethod_querydata<WithStreamedUnaryMethod_downdbfile<Service > > > StreamedUnaryService;
|
|
|
typedef Service SplitStreamedService;
|
|
|
- typedef WithStreamedUnaryMethod_querylist<WithStreamedUnaryMethod_querydata<Service > > StreamedService;
|
|
|
+ typedef WithStreamedUnaryMethod_querylist<WithStreamedUnaryMethod_querydata<WithStreamedUnaryMethod_downdbfile<Service > > > StreamedService;
|
|
|
};
|
|
|
|
|
|
} // namespace db
|