PathPlanning.grpc.pb.h 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. // Generated by the gRPC C++ plugin.
  2. // If you make any local change, they will be lost.
  3. // source: PathPlanning.proto
  4. #ifndef GRPC_PathPlanning_2eproto__INCLUDED
  5. #define GRPC_PathPlanning_2eproto__INCLUDED
  6. #include "PathPlanning.pb.h"
  7. #include <grpcpp/impl/codegen/async_generic_service.h>
  8. #include <grpcpp/impl/codegen/async_stream.h>
  9. #include <grpcpp/impl/codegen/async_unary_call.h>
  10. #include <grpcpp/impl/codegen/method_handler_impl.h>
  11. #include <grpcpp/impl/codegen/proto_utils.h>
  12. #include <grpcpp/impl/codegen/rpc_method.h>
  13. #include <grpcpp/impl/codegen/service_type.h>
  14. #include <grpcpp/impl/codegen/status.h>
  15. #include <grpcpp/impl/codegen/stub_options.h>
  16. #include <grpcpp/impl/codegen/sync_stream.h>
  17. namespace grpc {
  18. class CompletionQueue;
  19. class Channel;
  20. class ServerCompletionQueue;
  21. class ServerContext;
  22. } // namespace grpc
  23. namespace pathplanning {
  24. class CPathPlanning final {
  25. public:
  26. static constexpr char const* service_full_name() {
  27. return "pathplanning.CPathPlanning";
  28. }
  29. class StubInterface {
  30. public:
  31. virtual ~StubInterface() {}
  32. virtual ::grpc::Status CalPath(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::pathplanning::PathPlanningReply* response) = 0;
  33. std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pathplanning::PathPlanningReply>> AsyncCalPath(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::grpc::CompletionQueue* cq) {
  34. return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pathplanning::PathPlanningReply>>(AsyncCalPathRaw(context, request, cq));
  35. }
  36. std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pathplanning::PathPlanningReply>> PrepareAsyncCalPath(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::grpc::CompletionQueue* cq) {
  37. return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::pathplanning::PathPlanningReply>>(PrepareAsyncCalPathRaw(context, request, cq));
  38. }
  39. private:
  40. virtual ::grpc::ClientAsyncResponseReaderInterface< ::pathplanning::PathPlanningReply>* AsyncCalPathRaw(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::grpc::CompletionQueue* cq) = 0;
  41. virtual ::grpc::ClientAsyncResponseReaderInterface< ::pathplanning::PathPlanningReply>* PrepareAsyncCalPathRaw(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::grpc::CompletionQueue* cq) = 0;
  42. };
  43. class Stub final : public StubInterface {
  44. public:
  45. Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel);
  46. ::grpc::Status CalPath(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::pathplanning::PathPlanningReply* response) override;
  47. std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pathplanning::PathPlanningReply>> AsyncCalPath(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::grpc::CompletionQueue* cq) {
  48. return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pathplanning::PathPlanningReply>>(AsyncCalPathRaw(context, request, cq));
  49. }
  50. std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pathplanning::PathPlanningReply>> PrepareAsyncCalPath(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::grpc::CompletionQueue* cq) {
  51. return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::pathplanning::PathPlanningReply>>(PrepareAsyncCalPathRaw(context, request, cq));
  52. }
  53. private:
  54. std::shared_ptr< ::grpc::ChannelInterface> channel_;
  55. ::grpc::ClientAsyncResponseReader< ::pathplanning::PathPlanningReply>* AsyncCalPathRaw(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::grpc::CompletionQueue* cq) override;
  56. ::grpc::ClientAsyncResponseReader< ::pathplanning::PathPlanningReply>* PrepareAsyncCalPathRaw(::grpc::ClientContext* context, const ::pathplanning::PathPlanningRequest& request, ::grpc::CompletionQueue* cq) override;
  57. const ::grpc::internal::RpcMethod rpcmethod_CalPath_;
  58. };
  59. static std::unique_ptr<Stub> NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions());
  60. class Service : public ::grpc::Service {
  61. public:
  62. Service();
  63. virtual ~Service();
  64. virtual ::grpc::Status CalPath(::grpc::ServerContext* context, const ::pathplanning::PathPlanningRequest* request, ::pathplanning::PathPlanningReply* response);
  65. };
  66. template <class BaseClass>
  67. class WithAsyncMethod_CalPath : public BaseClass {
  68. private:
  69. void BaseClassMustBeDerivedFromService(const Service *service) {}
  70. public:
  71. WithAsyncMethod_CalPath() {
  72. ::grpc::Service::MarkMethodAsync(0);
  73. }
  74. ~WithAsyncMethod_CalPath() override {
  75. BaseClassMustBeDerivedFromService(this);
  76. }
  77. // disable synchronous version of this method
  78. ::grpc::Status CalPath(::grpc::ServerContext* context, const ::pathplanning::PathPlanningRequest* request, ::pathplanning::PathPlanningReply* response) override {
  79. abort();
  80. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  81. }
  82. void RequestCalPath(::grpc::ServerContext* context, ::pathplanning::PathPlanningRequest* request, ::grpc::ServerAsyncResponseWriter< ::pathplanning::PathPlanningReply>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
  83. ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
  84. }
  85. };
  86. typedef WithAsyncMethod_CalPath<Service > AsyncService;
  87. template <class BaseClass>
  88. class WithGenericMethod_CalPath : public BaseClass {
  89. private:
  90. void BaseClassMustBeDerivedFromService(const Service *service) {}
  91. public:
  92. WithGenericMethod_CalPath() {
  93. ::grpc::Service::MarkMethodGeneric(0);
  94. }
  95. ~WithGenericMethod_CalPath() override {
  96. BaseClassMustBeDerivedFromService(this);
  97. }
  98. // disable synchronous version of this method
  99. ::grpc::Status CalPath(::grpc::ServerContext* context, const ::pathplanning::PathPlanningRequest* request, ::pathplanning::PathPlanningReply* response) override {
  100. abort();
  101. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  102. }
  103. };
  104. template <class BaseClass>
  105. class WithRawMethod_CalPath : public BaseClass {
  106. private:
  107. void BaseClassMustBeDerivedFromService(const Service *service) {}
  108. public:
  109. WithRawMethod_CalPath() {
  110. ::grpc::Service::MarkMethodRaw(0);
  111. }
  112. ~WithRawMethod_CalPath() override {
  113. BaseClassMustBeDerivedFromService(this);
  114. }
  115. // disable synchronous version of this method
  116. ::grpc::Status CalPath(::grpc::ServerContext* context, const ::pathplanning::PathPlanningRequest* request, ::pathplanning::PathPlanningReply* response) override {
  117. abort();
  118. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  119. }
  120. void RequestCalPath(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) {
  121. ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag);
  122. }
  123. };
  124. template <class BaseClass>
  125. class WithStreamedUnaryMethod_CalPath : public BaseClass {
  126. private:
  127. void BaseClassMustBeDerivedFromService(const Service *service) {}
  128. public:
  129. WithStreamedUnaryMethod_CalPath() {
  130. ::grpc::Service::MarkMethodStreamed(0,
  131. new ::grpc::internal::StreamedUnaryHandler< ::pathplanning::PathPlanningRequest, ::pathplanning::PathPlanningReply>(std::bind(&WithStreamedUnaryMethod_CalPath<BaseClass>::StreamedCalPath, this, std::placeholders::_1, std::placeholders::_2)));
  132. }
  133. ~WithStreamedUnaryMethod_CalPath() override {
  134. BaseClassMustBeDerivedFromService(this);
  135. }
  136. // disable regular version of this method
  137. ::grpc::Status CalPath(::grpc::ServerContext* context, const ::pathplanning::PathPlanningRequest* request, ::pathplanning::PathPlanningReply* response) override {
  138. abort();
  139. return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
  140. }
  141. // replace default version of method with streamed unary
  142. virtual ::grpc::Status StreamedCalPath(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::pathplanning::PathPlanningRequest,::pathplanning::PathPlanningReply>* server_unary_streamer) = 0;
  143. };
  144. typedef WithStreamedUnaryMethod_CalPath<Service > StreamedUnaryService;
  145. typedef Service SplitStreamedService;
  146. typedef WithStreamedUnaryMethod_CalPath<Service > StreamedService;
  147. };
  148. } // namespace pathplanning
  149. #endif // GRPC_PathPlanning_2eproto__INCLUDED