|
|
|
|
@ -56,11 +56,11 @@ class Focus final {
|
|
|
|
|
class StubInterface {
|
|
|
|
|
public:
|
|
|
|
|
virtual ~StubInterface() {}
|
|
|
|
|
virtual ::grpc::Status Raise(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::google::protobuf::Empty* response) = 0;
|
|
|
|
|
std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> AsyncRaise(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
virtual ::grpc::Status Raise(::grpc::ClientContext* context, const ::google::protobuf::StringValue& request, ::google::protobuf::Empty* response) = 0;
|
|
|
|
|
std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> AsyncRaise(::grpc::ClientContext* context, const ::google::protobuf::StringValue& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(AsyncRaiseRaw(context, request, cq));
|
|
|
|
|
}
|
|
|
|
|
std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncRaise(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>> PrepareAsyncRaise(::grpc::ClientContext* context, const ::google::protobuf::StringValue& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>>(PrepareAsyncRaiseRaw(context, request, cq));
|
|
|
|
|
}
|
|
|
|
|
virtual ::grpc::Status Version(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::focus::VersionResponse* response) = 0;
|
|
|
|
|
@ -73,8 +73,8 @@ class Focus final {
|
|
|
|
|
class async_interface {
|
|
|
|
|
public:
|
|
|
|
|
virtual ~async_interface() {}
|
|
|
|
|
virtual void Raise(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) = 0;
|
|
|
|
|
virtual void Raise(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0;
|
|
|
|
|
virtual void Raise(::grpc::ClientContext* context, const ::google::protobuf::StringValue* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) = 0;
|
|
|
|
|
virtual void Raise(::grpc::ClientContext* context, const ::google::protobuf::StringValue* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) = 0;
|
|
|
|
|
virtual void Version(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::focus::VersionResponse* response, std::function<void(::grpc::Status)>) = 0;
|
|
|
|
|
virtual void Version(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::focus::VersionResponse* response, ::grpc::ClientUnaryReactor* reactor) = 0;
|
|
|
|
|
};
|
|
|
|
|
@ -82,19 +82,19 @@ class Focus final {
|
|
|
|
|
virtual class async_interface* async() { return nullptr; }
|
|
|
|
|
class async_interface* experimental_async() { return async(); }
|
|
|
|
|
private:
|
|
|
|
|
virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncRaiseRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0;
|
|
|
|
|
virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncRaiseRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0;
|
|
|
|
|
virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* AsyncRaiseRaw(::grpc::ClientContext* context, const ::google::protobuf::StringValue& request, ::grpc::CompletionQueue* cq) = 0;
|
|
|
|
|
virtual ::grpc::ClientAsyncResponseReaderInterface< ::google::protobuf::Empty>* PrepareAsyncRaiseRaw(::grpc::ClientContext* context, const ::google::protobuf::StringValue& request, ::grpc::CompletionQueue* cq) = 0;
|
|
|
|
|
virtual ::grpc::ClientAsyncResponseReaderInterface< ::focus::VersionResponse>* AsyncVersionRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) = 0;
|
|
|
|
|
virtual ::grpc::ClientAsyncResponseReaderInterface< ::focus::VersionResponse>* PrepareAsyncVersionRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& 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());
|
|
|
|
|
::grpc::Status Raise(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::google::protobuf::Empty* response) override;
|
|
|
|
|
std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> AsyncRaise(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
::grpc::Status Raise(::grpc::ClientContext* context, const ::google::protobuf::StringValue& request, ::google::protobuf::Empty* response) override;
|
|
|
|
|
std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> AsyncRaise(::grpc::ClientContext* context, const ::google::protobuf::StringValue& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(AsyncRaiseRaw(context, request, cq));
|
|
|
|
|
}
|
|
|
|
|
std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncRaise(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>> PrepareAsyncRaise(::grpc::ClientContext* context, const ::google::protobuf::StringValue& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>>(PrepareAsyncRaiseRaw(context, request, cq));
|
|
|
|
|
}
|
|
|
|
|
::grpc::Status Version(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::focus::VersionResponse* response) override;
|
|
|
|
|
@ -107,8 +107,8 @@ class Focus final {
|
|
|
|
|
class async final :
|
|
|
|
|
public StubInterface::async_interface {
|
|
|
|
|
public:
|
|
|
|
|
void Raise(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) override;
|
|
|
|
|
void Raise(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) override;
|
|
|
|
|
void Raise(::grpc::ClientContext* context, const ::google::protobuf::StringValue* request, ::google::protobuf::Empty* response, std::function<void(::grpc::Status)>) override;
|
|
|
|
|
void Raise(::grpc::ClientContext* context, const ::google::protobuf::StringValue* request, ::google::protobuf::Empty* response, ::grpc::ClientUnaryReactor* reactor) override;
|
|
|
|
|
void Version(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::focus::VersionResponse* response, std::function<void(::grpc::Status)>) override;
|
|
|
|
|
void Version(::grpc::ClientContext* context, const ::google::protobuf::Empty* request, ::focus::VersionResponse* response, ::grpc::ClientUnaryReactor* reactor) override;
|
|
|
|
|
private:
|
|
|
|
|
@ -122,8 +122,8 @@ class Focus final {
|
|
|
|
|
private:
|
|
|
|
|
std::shared_ptr< ::grpc::ChannelInterface> channel_;
|
|
|
|
|
class async async_stub_{this};
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncRaiseRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override;
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncRaiseRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override;
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* AsyncRaiseRaw(::grpc::ClientContext* context, const ::google::protobuf::StringValue& request, ::grpc::CompletionQueue* cq) override;
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::google::protobuf::Empty>* PrepareAsyncRaiseRaw(::grpc::ClientContext* context, const ::google::protobuf::StringValue& request, ::grpc::CompletionQueue* cq) override;
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::focus::VersionResponse>* AsyncVersionRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override;
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::focus::VersionResponse>* PrepareAsyncVersionRaw(::grpc::ClientContext* context, const ::google::protobuf::Empty& request, ::grpc::CompletionQueue* cq) override;
|
|
|
|
|
const ::grpc::internal::RpcMethod rpcmethod_Raise_;
|
|
|
|
|
@ -135,7 +135,7 @@ class Focus final {
|
|
|
|
|
public:
|
|
|
|
|
Service();
|
|
|
|
|
virtual ~Service();
|
|
|
|
|
virtual ::grpc::Status Raise(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response);
|
|
|
|
|
virtual ::grpc::Status Raise(::grpc::ServerContext* context, const ::google::protobuf::StringValue* request, ::google::protobuf::Empty* response);
|
|
|
|
|
virtual ::grpc::Status Version(::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::focus::VersionResponse* response);
|
|
|
|
|
};
|
|
|
|
|
template <class BaseClass>
|
|
|
|
|
@ -150,11 +150,11 @@ class Focus final {
|
|
|
|
|
BaseClassMustBeDerivedFromService(this);
|
|
|
|
|
}
|
|
|
|
|
// disable synchronous version of this method
|
|
|
|
|
::grpc::Status Raise(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::google::protobuf::Empty* /*response*/) override {
|
|
|
|
|
::grpc::Status Raise(::grpc::ServerContext* /*context*/, const ::google::protobuf::StringValue* /*request*/, ::google::protobuf::Empty* /*response*/) override {
|
|
|
|
|
abort();
|
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
|
|
}
|
|
|
|
|
void RequestRaise(::grpc::ServerContext* context, ::google::protobuf::Empty* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
|
|
|
|
|
void RequestRaise(::grpc::ServerContext* context, ::google::protobuf::StringValue* request, ::grpc::ServerAsyncResponseWriter< ::google::protobuf::Empty>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
|
|
|
|
|
::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
@ -186,25 +186,25 @@ class Focus final {
|
|
|
|
|
public:
|
|
|
|
|
WithCallbackMethod_Raise() {
|
|
|
|
|
::grpc::Service::MarkMethodCallback(0,
|
|
|
|
|
new ::grpc::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::google::protobuf::Empty>(
|
|
|
|
|
new ::grpc::internal::CallbackUnaryHandler< ::google::protobuf::StringValue, ::google::protobuf::Empty>(
|
|
|
|
|
[this](
|
|
|
|
|
::grpc::CallbackServerContext* context, const ::google::protobuf::Empty* request, ::google::protobuf::Empty* response) { return this->Raise(context, request, response); }));}
|
|
|
|
|
::grpc::CallbackServerContext* context, const ::google::protobuf::StringValue* request, ::google::protobuf::Empty* response) { return this->Raise(context, request, response); }));}
|
|
|
|
|
void SetMessageAllocatorFor_Raise(
|
|
|
|
|
::grpc::MessageAllocator< ::google::protobuf::Empty, ::google::protobuf::Empty>* allocator) {
|
|
|
|
|
::grpc::MessageAllocator< ::google::protobuf::StringValue, ::google::protobuf::Empty>* allocator) {
|
|
|
|
|
::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0);
|
|
|
|
|
static_cast<::grpc::internal::CallbackUnaryHandler< ::google::protobuf::Empty, ::google::protobuf::Empty>*>(handler)
|
|
|
|
|
static_cast<::grpc::internal::CallbackUnaryHandler< ::google::protobuf::StringValue, ::google::protobuf::Empty>*>(handler)
|
|
|
|
|
->SetMessageAllocator(allocator);
|
|
|
|
|
}
|
|
|
|
|
~WithCallbackMethod_Raise() override {
|
|
|
|
|
BaseClassMustBeDerivedFromService(this);
|
|
|
|
|
}
|
|
|
|
|
// disable synchronous version of this method
|
|
|
|
|
::grpc::Status Raise(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::google::protobuf::Empty* /*response*/) override {
|
|
|
|
|
::grpc::Status Raise(::grpc::ServerContext* /*context*/, const ::google::protobuf::StringValue* /*request*/, ::google::protobuf::Empty* /*response*/) override {
|
|
|
|
|
abort();
|
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
|
|
}
|
|
|
|
|
virtual ::grpc::ServerUnaryReactor* Raise(
|
|
|
|
|
::grpc::CallbackServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::google::protobuf::Empty* /*response*/) { return nullptr; }
|
|
|
|
|
::grpc::CallbackServerContext* /*context*/, const ::google::protobuf::StringValue* /*request*/, ::google::protobuf::Empty* /*response*/) { return nullptr; }
|
|
|
|
|
};
|
|
|
|
|
template <class BaseClass>
|
|
|
|
|
class WithCallbackMethod_Version : public BaseClass {
|
|
|
|
|
@ -247,7 +247,7 @@ class Focus final {
|
|
|
|
|
BaseClassMustBeDerivedFromService(this);
|
|
|
|
|
}
|
|
|
|
|
// disable synchronous version of this method
|
|
|
|
|
::grpc::Status Raise(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::google::protobuf::Empty* /*response*/) override {
|
|
|
|
|
::grpc::Status Raise(::grpc::ServerContext* /*context*/, const ::google::protobuf::StringValue* /*request*/, ::google::protobuf::Empty* /*response*/) override {
|
|
|
|
|
abort();
|
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
|
|
}
|
|
|
|
|
@ -281,7 +281,7 @@ class Focus final {
|
|
|
|
|
BaseClassMustBeDerivedFromService(this);
|
|
|
|
|
}
|
|
|
|
|
// disable synchronous version of this method
|
|
|
|
|
::grpc::Status Raise(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::google::protobuf::Empty* /*response*/) override {
|
|
|
|
|
::grpc::Status Raise(::grpc::ServerContext* /*context*/, const ::google::protobuf::StringValue* /*request*/, ::google::protobuf::Empty* /*response*/) override {
|
|
|
|
|
abort();
|
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
|
|
}
|
|
|
|
|
@ -324,7 +324,7 @@ class Focus final {
|
|
|
|
|
BaseClassMustBeDerivedFromService(this);
|
|
|
|
|
}
|
|
|
|
|
// disable synchronous version of this method
|
|
|
|
|
::grpc::Status Raise(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::google::protobuf::Empty* /*response*/) override {
|
|
|
|
|
::grpc::Status Raise(::grpc::ServerContext* /*context*/, const ::google::protobuf::StringValue* /*request*/, ::google::protobuf::Empty* /*response*/) override {
|
|
|
|
|
abort();
|
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
|
|
}
|
|
|
|
|
@ -361,10 +361,10 @@ class Focus final {
|
|
|
|
|
WithStreamedUnaryMethod_Raise() {
|
|
|
|
|
::grpc::Service::MarkMethodStreamed(0,
|
|
|
|
|
new ::grpc::internal::StreamedUnaryHandler<
|
|
|
|
|
::google::protobuf::Empty, ::google::protobuf::Empty>(
|
|
|
|
|
::google::protobuf::StringValue, ::google::protobuf::Empty>(
|
|
|
|
|
[this](::grpc::ServerContext* context,
|
|
|
|
|
::grpc::ServerUnaryStreamer<
|
|
|
|
|
::google::protobuf::Empty, ::google::protobuf::Empty>* streamer) {
|
|
|
|
|
::google::protobuf::StringValue, ::google::protobuf::Empty>* streamer) {
|
|
|
|
|
return this->StreamedRaise(context,
|
|
|
|
|
streamer);
|
|
|
|
|
}));
|
|
|
|
|
@ -373,12 +373,12 @@ class Focus final {
|
|
|
|
|
BaseClassMustBeDerivedFromService(this);
|
|
|
|
|
}
|
|
|
|
|
// disable regular version of this method
|
|
|
|
|
::grpc::Status Raise(::grpc::ServerContext* /*context*/, const ::google::protobuf::Empty* /*request*/, ::google::protobuf::Empty* /*response*/) override {
|
|
|
|
|
::grpc::Status Raise(::grpc::ServerContext* /*context*/, const ::google::protobuf::StringValue* /*request*/, ::google::protobuf::Empty* /*response*/) override {
|
|
|
|
|
abort();
|
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
|
|
}
|
|
|
|
|
// replace default version of method with streamed unary
|
|
|
|
|
virtual ::grpc::Status StreamedRaise(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::google::protobuf::Empty,::google::protobuf::Empty>* server_unary_streamer) = 0;
|
|
|
|
|
virtual ::grpc::Status StreamedRaise(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::google::protobuf::StringValue,::google::protobuf::Empty>* server_unary_streamer) = 0;
|
|
|
|
|
};
|
|
|
|
|
template <class BaseClass>
|
|
|
|
|
class WithStreamedUnaryMethod_Version : public BaseClass {
|
|
|
|
|
|