|
@@ -0,0 +1,514 @@
|
|
|
+// Generated by the gRPC C++ plugin.
|
|
|
+// If you make any local change, they will be lost.
|
|
|
+// source: carmaker.proto
|
|
|
+// Original file comments:
|
|
|
+// Copyright 2015 gRPC authors.
|
|
|
+//
|
|
|
+// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
+// you may not use this file except in compliance with the License.
|
|
|
+// You may obtain a copy of the License at
|
|
|
+//
|
|
|
+// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
+//
|
|
|
+// Unless required by applicable law or agreed to in writing, software
|
|
|
+// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
+// See the License for the specific language governing permissions and
|
|
|
+// limitations under the License.
|
|
|
+//
|
|
|
+#ifndef GRPC_carmaker_2eproto__INCLUDED
|
|
|
+#define GRPC_carmaker_2eproto__INCLUDED
|
|
|
+
|
|
|
+#include "carmaker.pb.h"
|
|
|
+
|
|
|
+#include <functional>
|
|
|
+#include <grpc/impl/codegen/port_platform.h>
|
|
|
+#include <grpcpp/impl/codegen/async_generic_service.h>
|
|
|
+#include <grpcpp/impl/codegen/async_stream.h>
|
|
|
+#include <grpcpp/impl/codegen/async_unary_call.h>
|
|
|
+#include <grpcpp/impl/codegen/client_callback.h>
|
|
|
+#include <grpcpp/impl/codegen/client_context.h>
|
|
|
+#include <grpcpp/impl/codegen/completion_queue.h>
|
|
|
+#include <grpcpp/impl/codegen/message_allocator.h>
|
|
|
+#include <grpcpp/impl/codegen/method_handler.h>
|
|
|
+#include <grpcpp/impl/codegen/proto_utils.h>
|
|
|
+#include <grpcpp/impl/codegen/rpc_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/status.h>
|
|
|
+#include <grpcpp/impl/codegen/stub_options.h>
|
|
|
+#include <grpcpp/impl/codegen/sync_stream.h>
|
|
|
+
|
|
|
+namespace iv {
|
|
|
+namespace ipg {
|
|
|
+
|
|
|
+// The Upload service definition.
|
|
|
+class Carmaker final {
|
|
|
+ public:
|
|
|
+ static constexpr char const* service_full_name() {
|
|
|
+ return "iv.ipg.Carmaker";
|
|
|
+ }
|
|
|
+ class StubInterface {
|
|
|
+ public:
|
|
|
+ virtual ~StubInterface() {}
|
|
|
+ // Sends a Upload
|
|
|
+ virtual ::grpc::Status convertreq(::grpc::ClientContext* context, const ::iv::ipg::cvtReq& request, ::iv::ipg::cvtReply* response) = 0;
|
|
|
+ std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::iv::ipg::cvtReply>> Asyncconvertreq(::grpc::ClientContext* context, const ::iv::ipg::cvtReq& request, ::grpc::CompletionQueue* cq) {
|
|
|
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::iv::ipg::cvtReply>>(AsyncconvertreqRaw(context, request, cq));
|
|
|
+ }
|
|
|
+ std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::iv::ipg::cvtReply>> PrepareAsyncconvertreq(::grpc::ClientContext* context, const ::iv::ipg::cvtReq& request, ::grpc::CompletionQueue* cq) {
|
|
|
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::iv::ipg::cvtReply>>(PrepareAsyncconvertreqRaw(context, request, cq));
|
|
|
+ }
|
|
|
+ virtual ::grpc::Status convertwork(::grpc::ClientContext* context, const ::iv::ipg::workReq& request, ::iv::ipg::workReply* response) = 0;
|
|
|
+ std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::iv::ipg::workReply>> Asyncconvertwork(::grpc::ClientContext* context, const ::iv::ipg::workReq& request, ::grpc::CompletionQueue* cq) {
|
|
|
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::iv::ipg::workReply>>(AsyncconvertworkRaw(context, request, cq));
|
|
|
+ }
|
|
|
+ std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::iv::ipg::workReply>> PrepareAsyncconvertwork(::grpc::ClientContext* context, const ::iv::ipg::workReq& request, ::grpc::CompletionQueue* cq) {
|
|
|
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::iv::ipg::workReply>>(PrepareAsyncconvertworkRaw(context, request, cq));
|
|
|
+ }
|
|
|
+ class experimental_async_interface {
|
|
|
+ public:
|
|
|
+ virtual ~experimental_async_interface() {}
|
|
|
+ // Sends a Upload
|
|
|
+ virtual void convertreq(::grpc::ClientContext* context, const ::iv::ipg::cvtReq* request, ::iv::ipg::cvtReply* response, std::function<void(::grpc::Status)>) = 0;
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ virtual void convertreq(::grpc::ClientContext* context, const ::iv::ipg::cvtReq* request, ::iv::ipg::cvtReply* response, ::grpc::ClientUnaryReactor* reactor) = 0;
|
|
|
+ #else
|
|
|
+ virtual void convertreq(::grpc::ClientContext* context, const ::iv::ipg::cvtReq* request, ::iv::ipg::cvtReply* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
|
|
|
+ #endif
|
|
|
+ virtual void convertwork(::grpc::ClientContext* context, const ::iv::ipg::workReq* request, ::iv::ipg::workReply* response, std::function<void(::grpc::Status)>) = 0;
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ virtual void convertwork(::grpc::ClientContext* context, const ::iv::ipg::workReq* request, ::iv::ipg::workReply* response, ::grpc::ClientUnaryReactor* reactor) = 0;
|
|
|
+ #else
|
|
|
+ virtual void convertwork(::grpc::ClientContext* context, const ::iv::ipg::workReq* request, ::iv::ipg::workReply* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0;
|
|
|
+ #endif
|
|
|
+ };
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ typedef class experimental_async_interface async_interface;
|
|
|
+ #endif
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ async_interface* async() { return experimental_async(); }
|
|
|
+ #endif
|
|
|
+ virtual class experimental_async_interface* experimental_async() { return nullptr; }
|
|
|
+ private:
|
|
|
+ virtual ::grpc::ClientAsyncResponseReaderInterface< ::iv::ipg::cvtReply>* AsyncconvertreqRaw(::grpc::ClientContext* context, const ::iv::ipg::cvtReq& request, ::grpc::CompletionQueue* cq) = 0;
|
|
|
+ virtual ::grpc::ClientAsyncResponseReaderInterface< ::iv::ipg::cvtReply>* PrepareAsyncconvertreqRaw(::grpc::ClientContext* context, const ::iv::ipg::cvtReq& request, ::grpc::CompletionQueue* cq) = 0;
|
|
|
+ virtual ::grpc::ClientAsyncResponseReaderInterface< ::iv::ipg::workReply>* AsyncconvertworkRaw(::grpc::ClientContext* context, const ::iv::ipg::workReq& request, ::grpc::CompletionQueue* cq) = 0;
|
|
|
+ virtual ::grpc::ClientAsyncResponseReaderInterface< ::iv::ipg::workReply>* PrepareAsyncconvertworkRaw(::grpc::ClientContext* context, const ::iv::ipg::workReq& request, ::grpc::CompletionQueue* cq) = 0;
|
|
|
+ };
|
|
|
+ class Stub final : public StubInterface {
|
|
|
+ public:
|
|
|
+ Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel);
|
|
|
+ ::grpc::Status convertreq(::grpc::ClientContext* context, const ::iv::ipg::cvtReq& request, ::iv::ipg::cvtReply* response) override;
|
|
|
+ std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::iv::ipg::cvtReply>> Asyncconvertreq(::grpc::ClientContext* context, const ::iv::ipg::cvtReq& request, ::grpc::CompletionQueue* cq) {
|
|
|
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::iv::ipg::cvtReply>>(AsyncconvertreqRaw(context, request, cq));
|
|
|
+ }
|
|
|
+ std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::iv::ipg::cvtReply>> PrepareAsyncconvertreq(::grpc::ClientContext* context, const ::iv::ipg::cvtReq& request, ::grpc::CompletionQueue* cq) {
|
|
|
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::iv::ipg::cvtReply>>(PrepareAsyncconvertreqRaw(context, request, cq));
|
|
|
+ }
|
|
|
+ ::grpc::Status convertwork(::grpc::ClientContext* context, const ::iv::ipg::workReq& request, ::iv::ipg::workReply* response) override;
|
|
|
+ std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::iv::ipg::workReply>> Asyncconvertwork(::grpc::ClientContext* context, const ::iv::ipg::workReq& request, ::grpc::CompletionQueue* cq) {
|
|
|
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::iv::ipg::workReply>>(AsyncconvertworkRaw(context, request, cq));
|
|
|
+ }
|
|
|
+ std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::iv::ipg::workReply>> PrepareAsyncconvertwork(::grpc::ClientContext* context, const ::iv::ipg::workReq& request, ::grpc::CompletionQueue* cq) {
|
|
|
+ return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::iv::ipg::workReply>>(PrepareAsyncconvertworkRaw(context, request, cq));
|
|
|
+ }
|
|
|
+ class experimental_async final :
|
|
|
+ public StubInterface::experimental_async_interface {
|
|
|
+ public:
|
|
|
+ void convertreq(::grpc::ClientContext* context, const ::iv::ipg::cvtReq* request, ::iv::ipg::cvtReply* response, std::function<void(::grpc::Status)>) override;
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ void convertreq(::grpc::ClientContext* context, const ::iv::ipg::cvtReq* request, ::iv::ipg::cvtReply* response, ::grpc::ClientUnaryReactor* reactor) override;
|
|
|
+ #else
|
|
|
+ void convertreq(::grpc::ClientContext* context, const ::iv::ipg::cvtReq* request, ::iv::ipg::cvtReply* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
|
|
|
+ #endif
|
|
|
+ void convertwork(::grpc::ClientContext* context, const ::iv::ipg::workReq* request, ::iv::ipg::workReply* response, std::function<void(::grpc::Status)>) override;
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ void convertwork(::grpc::ClientContext* context, const ::iv::ipg::workReq* request, ::iv::ipg::workReply* response, ::grpc::ClientUnaryReactor* reactor) override;
|
|
|
+ #else
|
|
|
+ void convertwork(::grpc::ClientContext* context, const ::iv::ipg::workReq* request, ::iv::ipg::workReply* response, ::grpc::experimental::ClientUnaryReactor* reactor) override;
|
|
|
+ #endif
|
|
|
+ private:
|
|
|
+ friend class Stub;
|
|
|
+ explicit experimental_async(Stub* stub): stub_(stub) { }
|
|
|
+ Stub* stub() { return stub_; }
|
|
|
+ Stub* stub_;
|
|
|
+ };
|
|
|
+ class experimental_async_interface* experimental_async() override { return &async_stub_; }
|
|
|
+
|
|
|
+ private:
|
|
|
+ std::shared_ptr< ::grpc::ChannelInterface> channel_;
|
|
|
+ class experimental_async async_stub_{this};
|
|
|
+ ::grpc::ClientAsyncResponseReader< ::iv::ipg::cvtReply>* AsyncconvertreqRaw(::grpc::ClientContext* context, const ::iv::ipg::cvtReq& request, ::grpc::CompletionQueue* cq) override;
|
|
|
+ ::grpc::ClientAsyncResponseReader< ::iv::ipg::cvtReply>* PrepareAsyncconvertreqRaw(::grpc::ClientContext* context, const ::iv::ipg::cvtReq& request, ::grpc::CompletionQueue* cq) override;
|
|
|
+ ::grpc::ClientAsyncResponseReader< ::iv::ipg::workReply>* AsyncconvertworkRaw(::grpc::ClientContext* context, const ::iv::ipg::workReq& request, ::grpc::CompletionQueue* cq) override;
|
|
|
+ ::grpc::ClientAsyncResponseReader< ::iv::ipg::workReply>* PrepareAsyncconvertworkRaw(::grpc::ClientContext* context, const ::iv::ipg::workReq& request, ::grpc::CompletionQueue* cq) override;
|
|
|
+ const ::grpc::internal::RpcMethod rpcmethod_convertreq_;
|
|
|
+ const ::grpc::internal::RpcMethod rpcmethod_convertwork_;
|
|
|
+ };
|
|
|
+ static std::unique_ptr<Stub> NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
|
|
|
+
|
|
|
+ class Service : public ::grpc::Service {
|
|
|
+ public:
|
|
|
+ Service();
|
|
|
+ virtual ~Service();
|
|
|
+ // Sends a Upload
|
|
|
+ virtual ::grpc::Status convertreq(::grpc::ServerContext* context, const ::iv::ipg::cvtReq* request, ::iv::ipg::cvtReply* response);
|
|
|
+ virtual ::grpc::Status convertwork(::grpc::ServerContext* context, const ::iv::ipg::workReq* request, ::iv::ipg::workReply* response);
|
|
|
+ };
|
|
|
+ template <class BaseClass>
|
|
|
+ class WithAsyncMethod_convertreq : public BaseClass {
|
|
|
+ private:
|
|
|
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
|
|
+ public:
|
|
|
+ WithAsyncMethod_convertreq() {
|
|
|
+ ::grpc::Service::MarkMethodAsync(0);
|
|
|
+ }
|
|
|
+ ~WithAsyncMethod_convertreq() override {
|
|
|
+ BaseClassMustBeDerivedFromService(this);
|
|
|
+ }
|
|
|
+ // disable synchronous version of this method
|
|
|
+ ::grpc::Status convertreq(::grpc::ServerContext* /*context*/, const ::iv::ipg::cvtReq* /*request*/, ::iv::ipg::cvtReply* /*response*/) override {
|
|
|
+ abort();
|
|
|
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
+ }
|
|
|
+ void Requestconvertreq(::grpc::ServerContext* context, ::iv::ipg::cvtReq* request, ::grpc::ServerAsyncResponseWriter< ::iv::ipg::cvtReply>* 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);
|
|
|
+ }
|
|
|
+ };
|
|
|
+ template <class BaseClass>
|
|
|
+ class WithAsyncMethod_convertwork : public BaseClass {
|
|
|
+ private:
|
|
|
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
|
|
+ public:
|
|
|
+ WithAsyncMethod_convertwork() {
|
|
|
+ ::grpc::Service::MarkMethodAsync(1);
|
|
|
+ }
|
|
|
+ ~WithAsyncMethod_convertwork() override {
|
|
|
+ BaseClassMustBeDerivedFromService(this);
|
|
|
+ }
|
|
|
+ // disable synchronous version of this method
|
|
|
+ ::grpc::Status convertwork(::grpc::ServerContext* /*context*/, const ::iv::ipg::workReq* /*request*/, ::iv::ipg::workReply* /*response*/) override {
|
|
|
+ abort();
|
|
|
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
+ }
|
|
|
+ void Requestconvertwork(::grpc::ServerContext* context, ::iv::ipg::workReq* request, ::grpc::ServerAsyncResponseWriter< ::iv::ipg::workReply>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
|
|
|
+ ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag);
|
|
|
+ }
|
|
|
+ };
|
|
|
+ typedef WithAsyncMethod_convertreq<WithAsyncMethod_convertwork<Service > > AsyncService;
|
|
|
+ template <class BaseClass>
|
|
|
+ class ExperimentalWithCallbackMethod_convertreq : public BaseClass {
|
|
|
+ private:
|
|
|
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
|
|
+ public:
|
|
|
+ ExperimentalWithCallbackMethod_convertreq() {
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ ::grpc::Service::
|
|
|
+ #else
|
|
|
+ ::grpc::Service::experimental().
|
|
|
+ #endif
|
|
|
+ MarkMethodCallback(0,
|
|
|
+ new ::grpc::internal::CallbackUnaryHandler< ::iv::ipg::cvtReq, ::iv::ipg::cvtReply>(
|
|
|
+ [this](
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ ::grpc::CallbackServerContext*
|
|
|
+ #else
|
|
|
+ ::grpc::experimental::CallbackServerContext*
|
|
|
+ #endif
|
|
|
+ context, const ::iv::ipg::cvtReq* request, ::iv::ipg::cvtReply* response) { return this->convertreq(context, request, response); }));}
|
|
|
+ void SetMessageAllocatorFor_convertreq(
|
|
|
+ ::grpc::experimental::MessageAllocator< ::iv::ipg::cvtReq, ::iv::ipg::cvtReply>* allocator) {
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(0);
|
|
|
+ #else
|
|
|
+ ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(0);
|
|
|
+ #endif
|
|
|
+ static_cast<::grpc::internal::CallbackUnaryHandler< ::iv::ipg::cvtReq, ::iv::ipg::cvtReply>*>(handler)
|
|
|
+ ->SetMessageAllocator(allocator);
|
|
|
+ }
|
|
|
+ ~ExperimentalWithCallbackMethod_convertreq() override {
|
|
|
+ BaseClassMustBeDerivedFromService(this);
|
|
|
+ }
|
|
|
+ // disable synchronous version of this method
|
|
|
+ ::grpc::Status convertreq(::grpc::ServerContext* /*context*/, const ::iv::ipg::cvtReq* /*request*/, ::iv::ipg::cvtReply* /*response*/) override {
|
|
|
+ abort();
|
|
|
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
+ }
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ virtual ::grpc::ServerUnaryReactor* convertreq(
|
|
|
+ ::grpc::CallbackServerContext* /*context*/, const ::iv::ipg::cvtReq* /*request*/, ::iv::ipg::cvtReply* /*response*/)
|
|
|
+ #else
|
|
|
+ virtual ::grpc::experimental::ServerUnaryReactor* convertreq(
|
|
|
+ ::grpc::experimental::CallbackServerContext* /*context*/, const ::iv::ipg::cvtReq* /*request*/, ::iv::ipg::cvtReply* /*response*/)
|
|
|
+ #endif
|
|
|
+ { return nullptr; }
|
|
|
+ };
|
|
|
+ template <class BaseClass>
|
|
|
+ class ExperimentalWithCallbackMethod_convertwork : public BaseClass {
|
|
|
+ private:
|
|
|
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
|
|
+ public:
|
|
|
+ ExperimentalWithCallbackMethod_convertwork() {
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ ::grpc::Service::
|
|
|
+ #else
|
|
|
+ ::grpc::Service::experimental().
|
|
|
+ #endif
|
|
|
+ MarkMethodCallback(1,
|
|
|
+ new ::grpc::internal::CallbackUnaryHandler< ::iv::ipg::workReq, ::iv::ipg::workReply>(
|
|
|
+ [this](
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ ::grpc::CallbackServerContext*
|
|
|
+ #else
|
|
|
+ ::grpc::experimental::CallbackServerContext*
|
|
|
+ #endif
|
|
|
+ context, const ::iv::ipg::workReq* request, ::iv::ipg::workReply* response) { return this->convertwork(context, request, response); }));}
|
|
|
+ void SetMessageAllocatorFor_convertwork(
|
|
|
+ ::grpc::experimental::MessageAllocator< ::iv::ipg::workReq, ::iv::ipg::workReply>* allocator) {
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ ::grpc::internal::MethodHandler* const handler = ::grpc::Service::GetHandler(1);
|
|
|
+ #else
|
|
|
+ ::grpc::internal::MethodHandler* const handler = ::grpc::Service::experimental().GetHandler(1);
|
|
|
+ #endif
|
|
|
+ static_cast<::grpc::internal::CallbackUnaryHandler< ::iv::ipg::workReq, ::iv::ipg::workReply>*>(handler)
|
|
|
+ ->SetMessageAllocator(allocator);
|
|
|
+ }
|
|
|
+ ~ExperimentalWithCallbackMethod_convertwork() override {
|
|
|
+ BaseClassMustBeDerivedFromService(this);
|
|
|
+ }
|
|
|
+ // disable synchronous version of this method
|
|
|
+ ::grpc::Status convertwork(::grpc::ServerContext* /*context*/, const ::iv::ipg::workReq* /*request*/, ::iv::ipg::workReply* /*response*/) override {
|
|
|
+ abort();
|
|
|
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
+ }
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ virtual ::grpc::ServerUnaryReactor* convertwork(
|
|
|
+ ::grpc::CallbackServerContext* /*context*/, const ::iv::ipg::workReq* /*request*/, ::iv::ipg::workReply* /*response*/)
|
|
|
+ #else
|
|
|
+ virtual ::grpc::experimental::ServerUnaryReactor* convertwork(
|
|
|
+ ::grpc::experimental::CallbackServerContext* /*context*/, const ::iv::ipg::workReq* /*request*/, ::iv::ipg::workReply* /*response*/)
|
|
|
+ #endif
|
|
|
+ { return nullptr; }
|
|
|
+ };
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ typedef ExperimentalWithCallbackMethod_convertreq<ExperimentalWithCallbackMethod_convertwork<Service > > CallbackService;
|
|
|
+ #endif
|
|
|
+
|
|
|
+ typedef ExperimentalWithCallbackMethod_convertreq<ExperimentalWithCallbackMethod_convertwork<Service > > ExperimentalCallbackService;
|
|
|
+ template <class BaseClass>
|
|
|
+ class WithGenericMethod_convertreq : public BaseClass {
|
|
|
+ private:
|
|
|
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
|
|
+ public:
|
|
|
+ WithGenericMethod_convertreq() {
|
|
|
+ ::grpc::Service::MarkMethodGeneric(0);
|
|
|
+ }
|
|
|
+ ~WithGenericMethod_convertreq() override {
|
|
|
+ BaseClassMustBeDerivedFromService(this);
|
|
|
+ }
|
|
|
+ // disable synchronous version of this method
|
|
|
+ ::grpc::Status convertreq(::grpc::ServerContext* /*context*/, const ::iv::ipg::cvtReq* /*request*/, ::iv::ipg::cvtReply* /*response*/) override {
|
|
|
+ abort();
|
|
|
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
+ }
|
|
|
+ };
|
|
|
+ template <class BaseClass>
|
|
|
+ class WithGenericMethod_convertwork : public BaseClass {
|
|
|
+ private:
|
|
|
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
|
|
+ public:
|
|
|
+ WithGenericMethod_convertwork() {
|
|
|
+ ::grpc::Service::MarkMethodGeneric(1);
|
|
|
+ }
|
|
|
+ ~WithGenericMethod_convertwork() override {
|
|
|
+ BaseClassMustBeDerivedFromService(this);
|
|
|
+ }
|
|
|
+ // disable synchronous version of this method
|
|
|
+ ::grpc::Status convertwork(::grpc::ServerContext* /*context*/, const ::iv::ipg::workReq* /*request*/, ::iv::ipg::workReply* /*response*/) override {
|
|
|
+ abort();
|
|
|
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
+ }
|
|
|
+ };
|
|
|
+ template <class BaseClass>
|
|
|
+ class WithRawMethod_convertreq : public BaseClass {
|
|
|
+ private:
|
|
|
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
|
|
+ public:
|
|
|
+ WithRawMethod_convertreq() {
|
|
|
+ ::grpc::Service::MarkMethodRaw(0);
|
|
|
+ }
|
|
|
+ ~WithRawMethod_convertreq() override {
|
|
|
+ BaseClassMustBeDerivedFromService(this);
|
|
|
+ }
|
|
|
+ // disable synchronous version of this method
|
|
|
+ ::grpc::Status convertreq(::grpc::ServerContext* /*context*/, const ::iv::ipg::cvtReq* /*request*/, ::iv::ipg::cvtReply* /*response*/) override {
|
|
|
+ abort();
|
|
|
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
+ }
|
|
|
+ void Requestconvertreq(::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(0, context, request, response, new_call_cq, notification_cq, tag);
|
|
|
+ }
|
|
|
+ };
|
|
|
+ template <class BaseClass>
|
|
|
+ class WithRawMethod_convertwork : public BaseClass {
|
|
|
+ private:
|
|
|
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
|
|
+ public:
|
|
|
+ WithRawMethod_convertwork() {
|
|
|
+ ::grpc::Service::MarkMethodRaw(1);
|
|
|
+ }
|
|
|
+ ~WithRawMethod_convertwork() override {
|
|
|
+ BaseClassMustBeDerivedFromService(this);
|
|
|
+ }
|
|
|
+ // disable synchronous version of this method
|
|
|
+ ::grpc::Status convertwork(::grpc::ServerContext* /*context*/, const ::iv::ipg::workReq* /*request*/, ::iv::ipg::workReply* /*response*/) override {
|
|
|
+ abort();
|
|
|
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
+ }
|
|
|
+ void Requestconvertwork(::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(1, context, request, response, new_call_cq, notification_cq, tag);
|
|
|
+ }
|
|
|
+ };
|
|
|
+ template <class BaseClass>
|
|
|
+ class ExperimentalWithRawCallbackMethod_convertreq : public BaseClass {
|
|
|
+ private:
|
|
|
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
|
|
+ public:
|
|
|
+ ExperimentalWithRawCallbackMethod_convertreq() {
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ ::grpc::Service::
|
|
|
+ #else
|
|
|
+ ::grpc::Service::experimental().
|
|
|
+ #endif
|
|
|
+ MarkMethodRawCallback(0,
|
|
|
+ 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->convertreq(context, request, response); }));
|
|
|
+ }
|
|
|
+ ~ExperimentalWithRawCallbackMethod_convertreq() override {
|
|
|
+ BaseClassMustBeDerivedFromService(this);
|
|
|
+ }
|
|
|
+ // disable synchronous version of this method
|
|
|
+ ::grpc::Status convertreq(::grpc::ServerContext* /*context*/, const ::iv::ipg::cvtReq* /*request*/, ::iv::ipg::cvtReply* /*response*/) override {
|
|
|
+ abort();
|
|
|
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
+ }
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ virtual ::grpc::ServerUnaryReactor* convertreq(
|
|
|
+ ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
|
|
|
+ #else
|
|
|
+ virtual ::grpc::experimental::ServerUnaryReactor* convertreq(
|
|
|
+ ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
|
|
|
+ #endif
|
|
|
+ { return nullptr; }
|
|
|
+ };
|
|
|
+ template <class BaseClass>
|
|
|
+ class ExperimentalWithRawCallbackMethod_convertwork : public BaseClass {
|
|
|
+ private:
|
|
|
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
|
|
+ public:
|
|
|
+ ExperimentalWithRawCallbackMethod_convertwork() {
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ ::grpc::Service::
|
|
|
+ #else
|
|
|
+ ::grpc::Service::experimental().
|
|
|
+ #endif
|
|
|
+ MarkMethodRawCallback(1,
|
|
|
+ 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->convertwork(context, request, response); }));
|
|
|
+ }
|
|
|
+ ~ExperimentalWithRawCallbackMethod_convertwork() override {
|
|
|
+ BaseClassMustBeDerivedFromService(this);
|
|
|
+ }
|
|
|
+ // disable synchronous version of this method
|
|
|
+ ::grpc::Status convertwork(::grpc::ServerContext* /*context*/, const ::iv::ipg::workReq* /*request*/, ::iv::ipg::workReply* /*response*/) override {
|
|
|
+ abort();
|
|
|
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
+ }
|
|
|
+ #ifdef GRPC_CALLBACK_API_NONEXPERIMENTAL
|
|
|
+ virtual ::grpc::ServerUnaryReactor* convertwork(
|
|
|
+ ::grpc::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
|
|
|
+ #else
|
|
|
+ virtual ::grpc::experimental::ServerUnaryReactor* convertwork(
|
|
|
+ ::grpc::experimental::CallbackServerContext* /*context*/, const ::grpc::ByteBuffer* /*request*/, ::grpc::ByteBuffer* /*response*/)
|
|
|
+ #endif
|
|
|
+ { return nullptr; }
|
|
|
+ };
|
|
|
+ template <class BaseClass>
|
|
|
+ class WithStreamedUnaryMethod_convertreq : public BaseClass {
|
|
|
+ private:
|
|
|
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
|
|
+ public:
|
|
|
+ WithStreamedUnaryMethod_convertreq() {
|
|
|
+ ::grpc::Service::MarkMethodStreamed(0,
|
|
|
+ new ::grpc::internal::StreamedUnaryHandler<
|
|
|
+ ::iv::ipg::cvtReq, ::iv::ipg::cvtReply>(
|
|
|
+ [this](::grpc::ServerContext* context,
|
|
|
+ ::grpc::ServerUnaryStreamer<
|
|
|
+ ::iv::ipg::cvtReq, ::iv::ipg::cvtReply>* streamer) {
|
|
|
+ return this->Streamedconvertreq(context,
|
|
|
+ streamer);
|
|
|
+ }));
|
|
|
+ }
|
|
|
+ ~WithStreamedUnaryMethod_convertreq() override {
|
|
|
+ BaseClassMustBeDerivedFromService(this);
|
|
|
+ }
|
|
|
+ // disable regular version of this method
|
|
|
+ ::grpc::Status convertreq(::grpc::ServerContext* /*context*/, const ::iv::ipg::cvtReq* /*request*/, ::iv::ipg::cvtReply* /*response*/) override {
|
|
|
+ abort();
|
|
|
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
+ }
|
|
|
+ // replace default version of method with streamed unary
|
|
|
+ virtual ::grpc::Status Streamedconvertreq(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::iv::ipg::cvtReq,::iv::ipg::cvtReply>* server_unary_streamer) = 0;
|
|
|
+ };
|
|
|
+ template <class BaseClass>
|
|
|
+ class WithStreamedUnaryMethod_convertwork : public BaseClass {
|
|
|
+ private:
|
|
|
+ void BaseClassMustBeDerivedFromService(const Service* /*service*/) {}
|
|
|
+ public:
|
|
|
+ WithStreamedUnaryMethod_convertwork() {
|
|
|
+ ::grpc::Service::MarkMethodStreamed(1,
|
|
|
+ new ::grpc::internal::StreamedUnaryHandler<
|
|
|
+ ::iv::ipg::workReq, ::iv::ipg::workReply>(
|
|
|
+ [this](::grpc::ServerContext* context,
|
|
|
+ ::grpc::ServerUnaryStreamer<
|
|
|
+ ::iv::ipg::workReq, ::iv::ipg::workReply>* streamer) {
|
|
|
+ return this->Streamedconvertwork(context,
|
|
|
+ streamer);
|
|
|
+ }));
|
|
|
+ }
|
|
|
+ ~WithStreamedUnaryMethod_convertwork() override {
|
|
|
+ BaseClassMustBeDerivedFromService(this);
|
|
|
+ }
|
|
|
+ // disable regular version of this method
|
|
|
+ ::grpc::Status convertwork(::grpc::ServerContext* /*context*/, const ::iv::ipg::workReq* /*request*/, ::iv::ipg::workReply* /*response*/) override {
|
|
|
+ abort();
|
|
|
+ return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
+ }
|
|
|
+ // replace default version of method with streamed unary
|
|
|
+ virtual ::grpc::Status Streamedconvertwork(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::iv::ipg::workReq,::iv::ipg::workReply>* server_unary_streamer) = 0;
|
|
|
+ };
|
|
|
+ typedef WithStreamedUnaryMethod_convertreq<WithStreamedUnaryMethod_convertwork<Service > > StreamedUnaryService;
|
|
|
+ typedef Service SplitStreamedService;
|
|
|
+ typedef WithStreamedUnaryMethod_convertreq<WithStreamedUnaryMethod_convertwork<Service > > StreamedService;
|
|
|
+};
|
|
|
+
|
|
|
+} // namespace ipg
|
|
|
+} // namespace iv
|
|
|
+
|
|
|
+
|
|
|
+#endif // GRPC_carmaker_2eproto__INCLUDED
|