| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- // Generated by the gRPC C++ plugin.
- // If you make any local change, they will be lost.
- // source: PathPlanning.proto
- #ifndef GRPC_PathPlanning_2eproto__INCLUDED
- #define GRPC_PathPlanning_2eproto__INCLUDED
- #include "PathPlanning.pb.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/method_handler_impl.h>
- #include <grpcpp/impl/codegen/proto_utils.h>
- #include <grpcpp/impl/codegen/rpc_method.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 grpc {
- class CompletionQueue;
- class Channel;
- class ServerCompletionQueue;
- class ServerContext;
- } // namespace grpc
- namespace pathplanning {
- class CPathPlanning final {
- public:
- static constexpr char const* service_full_name() {
- return "pathplanning.CPathPlanning";
- }
- class StubInterface {
- public:
- virtual ~StubInterface() {}
- virtual ::grpc::Status CalPath(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::pathplanning::PathPlanningReply* response) = 0;
- std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pathplanning::PathPlanningReply>> AsyncCalPath(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::grpc::CompletionQueue* cq) {
- return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pathplanning::PathPlanningReply>>(AsyncCalPathRaw(context, request, cq));
- }
- std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pathplanning::PathPlanningReply>> PrepareAsyncCalPath(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::grpc::CompletionQueue* cq) {
- return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pathplanning::PathPlanningReply>>(PrepareAsyncCalPathRaw(context, request, cq));
- }
- private:
- virtual ::grpc::ClientAsyncResponseReaderInterface< ::pathplanning::PathPlanningReply>* AsyncCalPathRaw(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::grpc::CompletionQueue* cq) = 0;
- virtual ::grpc::ClientAsyncResponseReaderInterface< ::pathplanning::PathPlanningReply>* PrepareAsyncCalPathRaw(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::grpc::CompletionQueue* cq) = 0;
- };
- class Stub final : public StubInterface {
- public:
- Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel);
- ::grpc::Status CalPath(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::pathplanning::PathPlanningReply* response) override;
- std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pathplanning::PathPlanningReply>> AsyncCalPath(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::grpc::CompletionQueue* cq) {
- return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pathplanning::PathPlanningReply>>(AsyncCalPathRaw(context, request, cq));
- }
- std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pathplanning::PathPlanningReply>> PrepareAsyncCalPath(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::grpc::CompletionQueue* cq) {
- return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pathplanning::PathPlanningReply>>(PrepareAsyncCalPathRaw(context, request, cq));
- }
- private:
- std::shared_ptr< ::grpc::ChannelInterface> channel_;
- ::grpc::ClientAsyncResponseReader< ::pathplanning::PathPlanningReply>* AsyncCalPathRaw(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::grpc::CompletionQueue* cq) override;
- ::grpc::ClientAsyncResponseReader< ::pathplanning::PathPlanningReply>* PrepareAsyncCalPathRaw(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::grpc::CompletionQueue* cq) override;
- const ::grpc::internal::RpcMethod rpcmethod_CalPath_;
- };
- 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();
- virtual ::grpc::Status CalPath(::grpc::ServerContext* context, const ::pathplanning::PathPlanningRequest* request, ::pathplanning::PathPlanningReply* response);
- };
- template <class BaseClass>
- class WithAsyncMethod_CalPath : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service *service) {}
- public:
- WithAsyncMethod_CalPath() {
- ::grpc::Service::MarkMethodAsync(0);
- }
- ~WithAsyncMethod_CalPath() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status CalPath(::grpc::ServerContext* context, const ::pathplanning::PathPlanningRequest* request, ::pathplanning::PathPlanningReply* response) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- void RequestCalPath(::grpc::ServerContext* context, ::pathplanning::PathPlanningRequest* request, ::grpc::ServerAsyncResponseWriter< ::pathplanning::PathPlanningReply>* 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);
- }
- };
- typedef WithAsyncMethod_CalPath<Service > AsyncService;
- template <class BaseClass>
- class WithGenericMethod_CalPath : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service *service) {}
- public:
- WithGenericMethod_CalPath() {
- ::grpc::Service::MarkMethodGeneric(0);
- }
- ~WithGenericMethod_CalPath() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status CalPath(::grpc::ServerContext* context, const ::pathplanning::PathPlanningRequest* request, ::pathplanning::PathPlanningReply* response) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- };
- template <class BaseClass>
- class WithRawMethod_CalPath : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service *service) {}
- public:
- WithRawMethod_CalPath() {
- ::grpc::Service::MarkMethodRaw(0);
- }
- ~WithRawMethod_CalPath() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable synchronous version of this method
- ::grpc::Status CalPath(::grpc::ServerContext* context, const ::pathplanning::PathPlanningRequest* request, ::pathplanning::PathPlanningReply* response) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- void RequestCalPath(::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 WithStreamedUnaryMethod_CalPath : public BaseClass {
- private:
- void BaseClassMustBeDerivedFromService(const Service *service) {}
- public:
- WithStreamedUnaryMethod_CalPath() {
- ::grpc::Service::MarkMethodStreamed(0,
- new ::grpc::internal::StreamedUnaryHandler< ::pathplanning::PathPlanningRequest, ::pathplanning::PathPlanningReply>(std::bind(&WithStreamedUnaryMethod_CalPath<BaseClass>::StreamedCalPath, this, std::placeholders::_1, std::placeholders::_2)));
- }
- ~WithStreamedUnaryMethod_CalPath() override {
- BaseClassMustBeDerivedFromService(this);
- }
- // disable regular version of this method
- ::grpc::Status CalPath(::grpc::ServerContext* context, const ::pathplanning::PathPlanningRequest* request, ::pathplanning::PathPlanningReply* response) override {
- abort();
- return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
- }
- // replace default version of method with streamed unary
- virtual ::grpc::Status StreamedCalPath(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::pathplanning::PathPlanningRequest,::pathplanning::PathPlanningReply>* server_unary_streamer) = 0;
- };
- typedef WithStreamedUnaryMethod_CalPath<Service > StreamedUnaryService;
- typedef Service SplitStreamedService;
- typedef WithStreamedUnaryMethod_CalPath<Service > StreamedService;
- };
- } // namespace pathplanning
- #endif // GRPC_PathPlanning_2eproto__INCLUDED
|