|
|
|
|
@@ -1,649 +0,0 @@
|
|
|
|
|
// Generated by the gRPC C++ plugin.
|
|
|
|
|
// If you make any local change, they will be lost.
|
|
|
|
|
// source: daw_api.proto
|
|
|
|
|
|
|
|
|
|
#include "daw_api.pb.h"
|
|
|
|
|
#include "daw_api.grpc.pb.h"
|
|
|
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
|
#include <grpcpp/support/async_stream.h>
|
|
|
|
|
#include <grpcpp/support/async_unary_call.h>
|
|
|
|
|
#include <grpcpp/impl/channel_interface.h>
|
|
|
|
|
#include <grpcpp/impl/client_unary_call.h>
|
|
|
|
|
#include <grpcpp/support/client_callback.h>
|
|
|
|
|
#include <grpcpp/support/message_allocator.h>
|
|
|
|
|
#include <grpcpp/support/method_handler.h>
|
|
|
|
|
#include <grpcpp/impl/rpc_service_method.h>
|
|
|
|
|
#include <grpcpp/support/server_callback.h>
|
|
|
|
|
#include <grpcpp/impl/server_callback_handlers.h>
|
|
|
|
|
#include <grpcpp/server_context.h>
|
|
|
|
|
#include <grpcpp/impl/service_type.h>
|
|
|
|
|
#include <grpcpp/support/sync_stream.h>
|
|
|
|
|
namespace daw {
|
|
|
|
|
namespace api {
|
|
|
|
|
|
|
|
|
|
static const char* TransportService_method_names[] = {
|
|
|
|
|
"/daw.api.TransportService/Play",
|
|
|
|
|
"/daw.api.TransportService/Pause",
|
|
|
|
|
"/daw.api.TransportService/Stop",
|
|
|
|
|
"/daw.api.TransportService/SetTempo",
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
std::unique_ptr< TransportService::Stub> TransportService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
|
|
|
|
|
(void)options;
|
|
|
|
|
std::unique_ptr< TransportService::Stub> stub(new TransportService::Stub(channel, options));
|
|
|
|
|
return stub;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TransportService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options)
|
|
|
|
|
: channel_(channel), rpcmethod_Play_(TransportService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
|
|
|
|
, rpcmethod_Pause_(TransportService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
|
|
|
|
, rpcmethod_Stop_(TransportService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
|
|
|
|
, rpcmethod_SetTempo_(TransportService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
::grpc::Status TransportService::Stub::Play(::grpc::ClientContext* context, const ::daw::api::Empty& request, ::daw::api::StatusResponse* response) {
|
|
|
|
|
return ::grpc::internal::BlockingUnaryCall< ::daw::api::Empty, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Play_, context, request, response);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TransportService::Stub::async::Play(::grpc::ClientContext* context, const ::daw::api::Empty* request, ::daw::api::StatusResponse* response, std::function<void(::grpc::Status)> f) {
|
|
|
|
|
::grpc::internal::CallbackUnaryCall< ::daw::api::Empty, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Play_, context, request, response, std::move(f));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TransportService::Stub::async::Play(::grpc::ClientContext* context, const ::daw::api::Empty* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) {
|
|
|
|
|
::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Play_, context, request, response, reactor);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TransportService::Stub::PrepareAsyncPlayRaw(::grpc::ClientContext* context, const ::daw::api::Empty& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::StatusResponse, ::daw::api::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Play_, context, request);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TransportService::Stub::AsyncPlayRaw(::grpc::ClientContext* context, const ::daw::api::Empty& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
auto* result =
|
|
|
|
|
this->PrepareAsyncPlayRaw(context, request, cq);
|
|
|
|
|
result->StartCall();
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::Status TransportService::Stub::Pause(::grpc::ClientContext* context, const ::daw::api::Empty& request, ::daw::api::StatusResponse* response) {
|
|
|
|
|
return ::grpc::internal::BlockingUnaryCall< ::daw::api::Empty, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Pause_, context, request, response);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TransportService::Stub::async::Pause(::grpc::ClientContext* context, const ::daw::api::Empty* request, ::daw::api::StatusResponse* response, std::function<void(::grpc::Status)> f) {
|
|
|
|
|
::grpc::internal::CallbackUnaryCall< ::daw::api::Empty, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Pause_, context, request, response, std::move(f));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TransportService::Stub::async::Pause(::grpc::ClientContext* context, const ::daw::api::Empty* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) {
|
|
|
|
|
::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Pause_, context, request, response, reactor);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TransportService::Stub::PrepareAsyncPauseRaw(::grpc::ClientContext* context, const ::daw::api::Empty& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::StatusResponse, ::daw::api::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Pause_, context, request);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TransportService::Stub::AsyncPauseRaw(::grpc::ClientContext* context, const ::daw::api::Empty& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
auto* result =
|
|
|
|
|
this->PrepareAsyncPauseRaw(context, request, cq);
|
|
|
|
|
result->StartCall();
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::Status TransportService::Stub::Stop(::grpc::ClientContext* context, const ::daw::api::Empty& request, ::daw::api::StatusResponse* response) {
|
|
|
|
|
return ::grpc::internal::BlockingUnaryCall< ::daw::api::Empty, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_Stop_, context, request, response);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TransportService::Stub::async::Stop(::grpc::ClientContext* context, const ::daw::api::Empty* request, ::daw::api::StatusResponse* response, std::function<void(::grpc::Status)> f) {
|
|
|
|
|
::grpc::internal::CallbackUnaryCall< ::daw::api::Empty, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, std::move(f));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TransportService::Stub::async::Stop(::grpc::ClientContext* context, const ::daw::api::Empty* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) {
|
|
|
|
|
::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_Stop_, context, request, response, reactor);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TransportService::Stub::PrepareAsyncStopRaw(::grpc::ClientContext* context, const ::daw::api::Empty& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::StatusResponse, ::daw::api::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_Stop_, context, request);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TransportService::Stub::AsyncStopRaw(::grpc::ClientContext* context, const ::daw::api::Empty& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
auto* result =
|
|
|
|
|
this->PrepareAsyncStopRaw(context, request, cq);
|
|
|
|
|
result->StartCall();
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::Status TransportService::Stub::SetTempo(::grpc::ClientContext* context, const ::daw::api::SetTempoRequest& request, ::daw::api::StatusResponse* response) {
|
|
|
|
|
return ::grpc::internal::BlockingUnaryCall< ::daw::api::SetTempoRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetTempo_, context, request, response);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TransportService::Stub::async::SetTempo(::grpc::ClientContext* context, const ::daw::api::SetTempoRequest* request, ::daw::api::StatusResponse* response, std::function<void(::grpc::Status)> f) {
|
|
|
|
|
::grpc::internal::CallbackUnaryCall< ::daw::api::SetTempoRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetTempo_, context, request, response, std::move(f));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TransportService::Stub::async::SetTempo(::grpc::ClientContext* context, const ::daw::api::SetTempoRequest* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) {
|
|
|
|
|
::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetTempo_, context, request, response, reactor);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TransportService::Stub::PrepareAsyncSetTempoRaw(::grpc::ClientContext* context, const ::daw::api::SetTempoRequest& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::StatusResponse, ::daw::api::SetTempoRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetTempo_, context, request);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TransportService::Stub::AsyncSetTempoRaw(::grpc::ClientContext* context, const ::daw::api::SetTempoRequest& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
auto* result =
|
|
|
|
|
this->PrepareAsyncSetTempoRaw(context, request, cq);
|
|
|
|
|
result->StartCall();
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TransportService::Service::Service() {
|
|
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
|
|
|
|
TransportService_method_names[0],
|
|
|
|
|
::grpc::internal::RpcMethod::NORMAL_RPC,
|
|
|
|
|
new ::grpc::internal::RpcMethodHandler< TransportService::Service, ::daw::api::Empty, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
|
|
|
|
[](TransportService::Service* service,
|
|
|
|
|
::grpc::ServerContext* ctx,
|
|
|
|
|
const ::daw::api::Empty* req,
|
|
|
|
|
::daw::api::StatusResponse* resp) {
|
|
|
|
|
return service->Play(ctx, req, resp);
|
|
|
|
|
}, this)));
|
|
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
|
|
|
|
TransportService_method_names[1],
|
|
|
|
|
::grpc::internal::RpcMethod::NORMAL_RPC,
|
|
|
|
|
new ::grpc::internal::RpcMethodHandler< TransportService::Service, ::daw::api::Empty, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
|
|
|
|
[](TransportService::Service* service,
|
|
|
|
|
::grpc::ServerContext* ctx,
|
|
|
|
|
const ::daw::api::Empty* req,
|
|
|
|
|
::daw::api::StatusResponse* resp) {
|
|
|
|
|
return service->Pause(ctx, req, resp);
|
|
|
|
|
}, this)));
|
|
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
|
|
|
|
TransportService_method_names[2],
|
|
|
|
|
::grpc::internal::RpcMethod::NORMAL_RPC,
|
|
|
|
|
new ::grpc::internal::RpcMethodHandler< TransportService::Service, ::daw::api::Empty, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
|
|
|
|
[](TransportService::Service* service,
|
|
|
|
|
::grpc::ServerContext* ctx,
|
|
|
|
|
const ::daw::api::Empty* req,
|
|
|
|
|
::daw::api::StatusResponse* resp) {
|
|
|
|
|
return service->Stop(ctx, req, resp);
|
|
|
|
|
}, this)));
|
|
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
|
|
|
|
TransportService_method_names[3],
|
|
|
|
|
::grpc::internal::RpcMethod::NORMAL_RPC,
|
|
|
|
|
new ::grpc::internal::RpcMethodHandler< TransportService::Service, ::daw::api::SetTempoRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
|
|
|
|
[](TransportService::Service* service,
|
|
|
|
|
::grpc::ServerContext* ctx,
|
|
|
|
|
const ::daw::api::SetTempoRequest* req,
|
|
|
|
|
::daw::api::StatusResponse* resp) {
|
|
|
|
|
return service->SetTempo(ctx, req, resp);
|
|
|
|
|
}, this)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TransportService::Service::~Service() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::Status TransportService::Service::Play(::grpc::ServerContext* context, const ::daw::api::Empty* request, ::daw::api::StatusResponse* response) {
|
|
|
|
|
(void) context;
|
|
|
|
|
(void) request;
|
|
|
|
|
(void) response;
|
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::Status TransportService::Service::Pause(::grpc::ServerContext* context, const ::daw::api::Empty* request, ::daw::api::StatusResponse* response) {
|
|
|
|
|
(void) context;
|
|
|
|
|
(void) request;
|
|
|
|
|
(void) response;
|
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::Status TransportService::Service::Stop(::grpc::ServerContext* context, const ::daw::api::Empty* request, ::daw::api::StatusResponse* response) {
|
|
|
|
|
(void) context;
|
|
|
|
|
(void) request;
|
|
|
|
|
(void) response;
|
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::Status TransportService::Service::SetTempo(::grpc::ServerContext* context, const ::daw::api::SetTempoRequest* request, ::daw::api::StatusResponse* response) {
|
|
|
|
|
(void) context;
|
|
|
|
|
(void) request;
|
|
|
|
|
(void) response;
|
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static const char* ProjectService_method_names[] = {
|
|
|
|
|
"/daw.api.ProjectService/NewProject",
|
|
|
|
|
"/daw.api.ProjectService/LoadProject",
|
|
|
|
|
"/daw.api.ProjectService/SaveProject",
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
std::unique_ptr< ProjectService::Stub> ProjectService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
|
|
|
|
|
(void)options;
|
|
|
|
|
std::unique_ptr< ProjectService::Stub> stub(new ProjectService::Stub(channel, options));
|
|
|
|
|
return stub;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ProjectService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options)
|
|
|
|
|
: channel_(channel), rpcmethod_NewProject_(ProjectService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
|
|
|
|
, rpcmethod_LoadProject_(ProjectService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
|
|
|
|
, rpcmethod_SaveProject_(ProjectService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
::grpc::Status ProjectService::Stub::NewProject(::grpc::ClientContext* context, const ::daw::api::Empty& request, ::daw::api::ProjectState* response) {
|
|
|
|
|
return ::grpc::internal::BlockingUnaryCall< ::daw::api::Empty, ::daw::api::ProjectState, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_NewProject_, context, request, response);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ProjectService::Stub::async::NewProject(::grpc::ClientContext* context, const ::daw::api::Empty* request, ::daw::api::ProjectState* response, std::function<void(::grpc::Status)> f) {
|
|
|
|
|
::grpc::internal::CallbackUnaryCall< ::daw::api::Empty, ::daw::api::ProjectState, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_NewProject_, context, request, response, std::move(f));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ProjectService::Stub::async::NewProject(::grpc::ClientContext* context, const ::daw::api::Empty* request, ::daw::api::ProjectState* response, ::grpc::ClientUnaryReactor* reactor) {
|
|
|
|
|
::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_NewProject_, context, request, response, reactor);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::ProjectState>* ProjectService::Stub::PrepareAsyncNewProjectRaw(::grpc::ClientContext* context, const ::daw::api::Empty& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::ProjectState, ::daw::api::Empty, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_NewProject_, context, request);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::ProjectState>* ProjectService::Stub::AsyncNewProjectRaw(::grpc::ClientContext* context, const ::daw::api::Empty& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
auto* result =
|
|
|
|
|
this->PrepareAsyncNewProjectRaw(context, request, cq);
|
|
|
|
|
result->StartCall();
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::Status ProjectService::Stub::LoadProject(::grpc::ClientContext* context, const ::daw::api::LoadProjectRequest& request, ::daw::api::ProjectState* response) {
|
|
|
|
|
return ::grpc::internal::BlockingUnaryCall< ::daw::api::LoadProjectRequest, ::daw::api::ProjectState, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_LoadProject_, context, request, response);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ProjectService::Stub::async::LoadProject(::grpc::ClientContext* context, const ::daw::api::LoadProjectRequest* request, ::daw::api::ProjectState* response, std::function<void(::grpc::Status)> f) {
|
|
|
|
|
::grpc::internal::CallbackUnaryCall< ::daw::api::LoadProjectRequest, ::daw::api::ProjectState, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_LoadProject_, context, request, response, std::move(f));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ProjectService::Stub::async::LoadProject(::grpc::ClientContext* context, const ::daw::api::LoadProjectRequest* request, ::daw::api::ProjectState* response, ::grpc::ClientUnaryReactor* reactor) {
|
|
|
|
|
::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_LoadProject_, context, request, response, reactor);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::ProjectState>* ProjectService::Stub::PrepareAsyncLoadProjectRaw(::grpc::ClientContext* context, const ::daw::api::LoadProjectRequest& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::ProjectState, ::daw::api::LoadProjectRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_LoadProject_, context, request);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::ProjectState>* ProjectService::Stub::AsyncLoadProjectRaw(::grpc::ClientContext* context, const ::daw::api::LoadProjectRequest& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
auto* result =
|
|
|
|
|
this->PrepareAsyncLoadProjectRaw(context, request, cq);
|
|
|
|
|
result->StartCall();
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::Status ProjectService::Stub::SaveProject(::grpc::ClientContext* context, const ::daw::api::SaveProjectRequest& request, ::daw::api::StatusResponse* response) {
|
|
|
|
|
return ::grpc::internal::BlockingUnaryCall< ::daw::api::SaveProjectRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SaveProject_, context, request, response);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ProjectService::Stub::async::SaveProject(::grpc::ClientContext* context, const ::daw::api::SaveProjectRequest* request, ::daw::api::StatusResponse* response, std::function<void(::grpc::Status)> f) {
|
|
|
|
|
::grpc::internal::CallbackUnaryCall< ::daw::api::SaveProjectRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SaveProject_, context, request, response, std::move(f));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ProjectService::Stub::async::SaveProject(::grpc::ClientContext* context, const ::daw::api::SaveProjectRequest* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) {
|
|
|
|
|
::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SaveProject_, context, request, response, reactor);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* ProjectService::Stub::PrepareAsyncSaveProjectRaw(::grpc::ClientContext* context, const ::daw::api::SaveProjectRequest& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::StatusResponse, ::daw::api::SaveProjectRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SaveProject_, context, request);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* ProjectService::Stub::AsyncSaveProjectRaw(::grpc::ClientContext* context, const ::daw::api::SaveProjectRequest& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
auto* result =
|
|
|
|
|
this->PrepareAsyncSaveProjectRaw(context, request, cq);
|
|
|
|
|
result->StartCall();
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ProjectService::Service::Service() {
|
|
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
|
|
|
|
ProjectService_method_names[0],
|
|
|
|
|
::grpc::internal::RpcMethod::NORMAL_RPC,
|
|
|
|
|
new ::grpc::internal::RpcMethodHandler< ProjectService::Service, ::daw::api::Empty, ::daw::api::ProjectState, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
|
|
|
|
[](ProjectService::Service* service,
|
|
|
|
|
::grpc::ServerContext* ctx,
|
|
|
|
|
const ::daw::api::Empty* req,
|
|
|
|
|
::daw::api::ProjectState* resp) {
|
|
|
|
|
return service->NewProject(ctx, req, resp);
|
|
|
|
|
}, this)));
|
|
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
|
|
|
|
ProjectService_method_names[1],
|
|
|
|
|
::grpc::internal::RpcMethod::NORMAL_RPC,
|
|
|
|
|
new ::grpc::internal::RpcMethodHandler< ProjectService::Service, ::daw::api::LoadProjectRequest, ::daw::api::ProjectState, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
|
|
|
|
[](ProjectService::Service* service,
|
|
|
|
|
::grpc::ServerContext* ctx,
|
|
|
|
|
const ::daw::api::LoadProjectRequest* req,
|
|
|
|
|
::daw::api::ProjectState* resp) {
|
|
|
|
|
return service->LoadProject(ctx, req, resp);
|
|
|
|
|
}, this)));
|
|
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
|
|
|
|
ProjectService_method_names[2],
|
|
|
|
|
::grpc::internal::RpcMethod::NORMAL_RPC,
|
|
|
|
|
new ::grpc::internal::RpcMethodHandler< ProjectService::Service, ::daw::api::SaveProjectRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
|
|
|
|
[](ProjectService::Service* service,
|
|
|
|
|
::grpc::ServerContext* ctx,
|
|
|
|
|
const ::daw::api::SaveProjectRequest* req,
|
|
|
|
|
::daw::api::StatusResponse* resp) {
|
|
|
|
|
return service->SaveProject(ctx, req, resp);
|
|
|
|
|
}, this)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ProjectService::Service::~Service() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::Status ProjectService::Service::NewProject(::grpc::ServerContext* context, const ::daw::api::Empty* request, ::daw::api::ProjectState* response) {
|
|
|
|
|
(void) context;
|
|
|
|
|
(void) request;
|
|
|
|
|
(void) response;
|
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::Status ProjectService::Service::LoadProject(::grpc::ServerContext* context, const ::daw::api::LoadProjectRequest* request, ::daw::api::ProjectState* response) {
|
|
|
|
|
(void) context;
|
|
|
|
|
(void) request;
|
|
|
|
|
(void) response;
|
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::Status ProjectService::Service::SaveProject(::grpc::ServerContext* context, const ::daw::api::SaveProjectRequest* request, ::daw::api::StatusResponse* response) {
|
|
|
|
|
(void) context;
|
|
|
|
|
(void) request;
|
|
|
|
|
(void) response;
|
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static const char* TrackService_method_names[] = {
|
|
|
|
|
"/daw.api.TrackService/AddTrack",
|
|
|
|
|
"/daw.api.TrackService/RemoveTrack",
|
|
|
|
|
"/daw.api.TrackService/SetTrackVolume",
|
|
|
|
|
"/daw.api.TrackService/SetTrackPan",
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
std::unique_ptr< TrackService::Stub> TrackService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
|
|
|
|
|
(void)options;
|
|
|
|
|
std::unique_ptr< TrackService::Stub> stub(new TrackService::Stub(channel, options));
|
|
|
|
|
return stub;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TrackService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options)
|
|
|
|
|
: channel_(channel), rpcmethod_AddTrack_(TrackService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
|
|
|
|
, rpcmethod_RemoveTrack_(TrackService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
|
|
|
|
, rpcmethod_SetTrackVolume_(TrackService_method_names[2], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
|
|
|
|
, rpcmethod_SetTrackPan_(TrackService_method_names[3], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
::grpc::Status TrackService::Stub::AddTrack(::grpc::ClientContext* context, const ::daw::api::AddTrackRequest& request, ::daw::api::TrackInfo* response) {
|
|
|
|
|
return ::grpc::internal::BlockingUnaryCall< ::daw::api::AddTrackRequest, ::daw::api::TrackInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_AddTrack_, context, request, response);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TrackService::Stub::async::AddTrack(::grpc::ClientContext* context, const ::daw::api::AddTrackRequest* request, ::daw::api::TrackInfo* response, std::function<void(::grpc::Status)> f) {
|
|
|
|
|
::grpc::internal::CallbackUnaryCall< ::daw::api::AddTrackRequest, ::daw::api::TrackInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AddTrack_, context, request, response, std::move(f));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TrackService::Stub::async::AddTrack(::grpc::ClientContext* context, const ::daw::api::AddTrackRequest* request, ::daw::api::TrackInfo* response, ::grpc::ClientUnaryReactor* reactor) {
|
|
|
|
|
::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_AddTrack_, context, request, response, reactor);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::TrackInfo>* TrackService::Stub::PrepareAsyncAddTrackRaw(::grpc::ClientContext* context, const ::daw::api::AddTrackRequest& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::TrackInfo, ::daw::api::AddTrackRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_AddTrack_, context, request);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::TrackInfo>* TrackService::Stub::AsyncAddTrackRaw(::grpc::ClientContext* context, const ::daw::api::AddTrackRequest& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
auto* result =
|
|
|
|
|
this->PrepareAsyncAddTrackRaw(context, request, cq);
|
|
|
|
|
result->StartCall();
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::Status TrackService::Stub::RemoveTrack(::grpc::ClientContext* context, const ::daw::api::TrackIdRequest& request, ::daw::api::StatusResponse* response) {
|
|
|
|
|
return ::grpc::internal::BlockingUnaryCall< ::daw::api::TrackIdRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_RemoveTrack_, context, request, response);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TrackService::Stub::async::RemoveTrack(::grpc::ClientContext* context, const ::daw::api::TrackIdRequest* request, ::daw::api::StatusResponse* response, std::function<void(::grpc::Status)> f) {
|
|
|
|
|
::grpc::internal::CallbackUnaryCall< ::daw::api::TrackIdRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RemoveTrack_, context, request, response, std::move(f));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TrackService::Stub::async::RemoveTrack(::grpc::ClientContext* context, const ::daw::api::TrackIdRequest* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) {
|
|
|
|
|
::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_RemoveTrack_, context, request, response, reactor);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TrackService::Stub::PrepareAsyncRemoveTrackRaw(::grpc::ClientContext* context, const ::daw::api::TrackIdRequest& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::StatusResponse, ::daw::api::TrackIdRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_RemoveTrack_, context, request);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TrackService::Stub::AsyncRemoveTrackRaw(::grpc::ClientContext* context, const ::daw::api::TrackIdRequest& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
auto* result =
|
|
|
|
|
this->PrepareAsyncRemoveTrackRaw(context, request, cq);
|
|
|
|
|
result->StartCall();
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::Status TrackService::Stub::SetTrackVolume(::grpc::ClientContext* context, const ::daw::api::SetTrackVolumeRequest& request, ::daw::api::StatusResponse* response) {
|
|
|
|
|
return ::grpc::internal::BlockingUnaryCall< ::daw::api::SetTrackVolumeRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetTrackVolume_, context, request, response);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TrackService::Stub::async::SetTrackVolume(::grpc::ClientContext* context, const ::daw::api::SetTrackVolumeRequest* request, ::daw::api::StatusResponse* response, std::function<void(::grpc::Status)> f) {
|
|
|
|
|
::grpc::internal::CallbackUnaryCall< ::daw::api::SetTrackVolumeRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetTrackVolume_, context, request, response, std::move(f));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TrackService::Stub::async::SetTrackVolume(::grpc::ClientContext* context, const ::daw::api::SetTrackVolumeRequest* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) {
|
|
|
|
|
::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetTrackVolume_, context, request, response, reactor);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TrackService::Stub::PrepareAsyncSetTrackVolumeRaw(::grpc::ClientContext* context, const ::daw::api::SetTrackVolumeRequest& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::StatusResponse, ::daw::api::SetTrackVolumeRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetTrackVolume_, context, request);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TrackService::Stub::AsyncSetTrackVolumeRaw(::grpc::ClientContext* context, const ::daw::api::SetTrackVolumeRequest& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
auto* result =
|
|
|
|
|
this->PrepareAsyncSetTrackVolumeRaw(context, request, cq);
|
|
|
|
|
result->StartCall();
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::Status TrackService::Stub::SetTrackPan(::grpc::ClientContext* context, const ::daw::api::SetTrackPanRequest& request, ::daw::api::StatusResponse* response) {
|
|
|
|
|
return ::grpc::internal::BlockingUnaryCall< ::daw::api::SetTrackPanRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetTrackPan_, context, request, response);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TrackService::Stub::async::SetTrackPan(::grpc::ClientContext* context, const ::daw::api::SetTrackPanRequest* request, ::daw::api::StatusResponse* response, std::function<void(::grpc::Status)> f) {
|
|
|
|
|
::grpc::internal::CallbackUnaryCall< ::daw::api::SetTrackPanRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetTrackPan_, context, request, response, std::move(f));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TrackService::Stub::async::SetTrackPan(::grpc::ClientContext* context, const ::daw::api::SetTrackPanRequest* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) {
|
|
|
|
|
::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetTrackPan_, context, request, response, reactor);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TrackService::Stub::PrepareAsyncSetTrackPanRaw(::grpc::ClientContext* context, const ::daw::api::SetTrackPanRequest& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::StatusResponse, ::daw::api::SetTrackPanRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetTrackPan_, context, request);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* TrackService::Stub::AsyncSetTrackPanRaw(::grpc::ClientContext* context, const ::daw::api::SetTrackPanRequest& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
auto* result =
|
|
|
|
|
this->PrepareAsyncSetTrackPanRaw(context, request, cq);
|
|
|
|
|
result->StartCall();
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TrackService::Service::Service() {
|
|
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
|
|
|
|
TrackService_method_names[0],
|
|
|
|
|
::grpc::internal::RpcMethod::NORMAL_RPC,
|
|
|
|
|
new ::grpc::internal::RpcMethodHandler< TrackService::Service, ::daw::api::AddTrackRequest, ::daw::api::TrackInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
|
|
|
|
[](TrackService::Service* service,
|
|
|
|
|
::grpc::ServerContext* ctx,
|
|
|
|
|
const ::daw::api::AddTrackRequest* req,
|
|
|
|
|
::daw::api::TrackInfo* resp) {
|
|
|
|
|
return service->AddTrack(ctx, req, resp);
|
|
|
|
|
}, this)));
|
|
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
|
|
|
|
TrackService_method_names[1],
|
|
|
|
|
::grpc::internal::RpcMethod::NORMAL_RPC,
|
|
|
|
|
new ::grpc::internal::RpcMethodHandler< TrackService::Service, ::daw::api::TrackIdRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
|
|
|
|
[](TrackService::Service* service,
|
|
|
|
|
::grpc::ServerContext* ctx,
|
|
|
|
|
const ::daw::api::TrackIdRequest* req,
|
|
|
|
|
::daw::api::StatusResponse* resp) {
|
|
|
|
|
return service->RemoveTrack(ctx, req, resp);
|
|
|
|
|
}, this)));
|
|
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
|
|
|
|
TrackService_method_names[2],
|
|
|
|
|
::grpc::internal::RpcMethod::NORMAL_RPC,
|
|
|
|
|
new ::grpc::internal::RpcMethodHandler< TrackService::Service, ::daw::api::SetTrackVolumeRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
|
|
|
|
[](TrackService::Service* service,
|
|
|
|
|
::grpc::ServerContext* ctx,
|
|
|
|
|
const ::daw::api::SetTrackVolumeRequest* req,
|
|
|
|
|
::daw::api::StatusResponse* resp) {
|
|
|
|
|
return service->SetTrackVolume(ctx, req, resp);
|
|
|
|
|
}, this)));
|
|
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
|
|
|
|
TrackService_method_names[3],
|
|
|
|
|
::grpc::internal::RpcMethod::NORMAL_RPC,
|
|
|
|
|
new ::grpc::internal::RpcMethodHandler< TrackService::Service, ::daw::api::SetTrackPanRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
|
|
|
|
[](TrackService::Service* service,
|
|
|
|
|
::grpc::ServerContext* ctx,
|
|
|
|
|
const ::daw::api::SetTrackPanRequest* req,
|
|
|
|
|
::daw::api::StatusResponse* resp) {
|
|
|
|
|
return service->SetTrackPan(ctx, req, resp);
|
|
|
|
|
}, this)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TrackService::Service::~Service() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::Status TrackService::Service::AddTrack(::grpc::ServerContext* context, const ::daw::api::AddTrackRequest* request, ::daw::api::TrackInfo* response) {
|
|
|
|
|
(void) context;
|
|
|
|
|
(void) request;
|
|
|
|
|
(void) response;
|
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::Status TrackService::Service::RemoveTrack(::grpc::ServerContext* context, const ::daw::api::TrackIdRequest* request, ::daw::api::StatusResponse* response) {
|
|
|
|
|
(void) context;
|
|
|
|
|
(void) request;
|
|
|
|
|
(void) response;
|
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::Status TrackService::Service::SetTrackVolume(::grpc::ServerContext* context, const ::daw::api::SetTrackVolumeRequest* request, ::daw::api::StatusResponse* response) {
|
|
|
|
|
(void) context;
|
|
|
|
|
(void) request;
|
|
|
|
|
(void) response;
|
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::Status TrackService::Service::SetTrackPan(::grpc::ServerContext* context, const ::daw::api::SetTrackPanRequest* request, ::daw::api::StatusResponse* response) {
|
|
|
|
|
(void) context;
|
|
|
|
|
(void) request;
|
|
|
|
|
(void) response;
|
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static const char* PluginService_method_names[] = {
|
|
|
|
|
"/daw.api.PluginService/LoadPlugin",
|
|
|
|
|
"/daw.api.PluginService/SetPluginParameter",
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
std::unique_ptr< PluginService::Stub> PluginService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) {
|
|
|
|
|
(void)options;
|
|
|
|
|
std::unique_ptr< PluginService::Stub> stub(new PluginService::Stub(channel, options));
|
|
|
|
|
return stub;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PluginService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options)
|
|
|
|
|
: channel_(channel), rpcmethod_LoadPlugin_(PluginService_method_names[0], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
|
|
|
|
, rpcmethod_SetPluginParameter_(PluginService_method_names[1], options.suffix_for_stats(),::grpc::internal::RpcMethod::NORMAL_RPC, channel)
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
::grpc::Status PluginService::Stub::LoadPlugin(::grpc::ClientContext* context, const ::daw::api::LoadPluginRequest& request, ::daw::api::PluginInfo* response) {
|
|
|
|
|
return ::grpc::internal::BlockingUnaryCall< ::daw::api::LoadPluginRequest, ::daw::api::PluginInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_LoadPlugin_, context, request, response);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void PluginService::Stub::async::LoadPlugin(::grpc::ClientContext* context, const ::daw::api::LoadPluginRequest* request, ::daw::api::PluginInfo* response, std::function<void(::grpc::Status)> f) {
|
|
|
|
|
::grpc::internal::CallbackUnaryCall< ::daw::api::LoadPluginRequest, ::daw::api::PluginInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_LoadPlugin_, context, request, response, std::move(f));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void PluginService::Stub::async::LoadPlugin(::grpc::ClientContext* context, const ::daw::api::LoadPluginRequest* request, ::daw::api::PluginInfo* response, ::grpc::ClientUnaryReactor* reactor) {
|
|
|
|
|
::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_LoadPlugin_, context, request, response, reactor);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::PluginInfo>* PluginService::Stub::PrepareAsyncLoadPluginRaw(::grpc::ClientContext* context, const ::daw::api::LoadPluginRequest& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::PluginInfo, ::daw::api::LoadPluginRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_LoadPlugin_, context, request);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::PluginInfo>* PluginService::Stub::AsyncLoadPluginRaw(::grpc::ClientContext* context, const ::daw::api::LoadPluginRequest& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
auto* result =
|
|
|
|
|
this->PrepareAsyncLoadPluginRaw(context, request, cq);
|
|
|
|
|
result->StartCall();
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::Status PluginService::Stub::SetPluginParameter(::grpc::ClientContext* context, const ::daw::api::SetPluginParameterRequest& request, ::daw::api::StatusResponse* response) {
|
|
|
|
|
return ::grpc::internal::BlockingUnaryCall< ::daw::api::SetPluginParameterRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), rpcmethod_SetPluginParameter_, context, request, response);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void PluginService::Stub::async::SetPluginParameter(::grpc::ClientContext* context, const ::daw::api::SetPluginParameterRequest* request, ::daw::api::StatusResponse* response, std::function<void(::grpc::Status)> f) {
|
|
|
|
|
::grpc::internal::CallbackUnaryCall< ::daw::api::SetPluginParameterRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetPluginParameter_, context, request, response, std::move(f));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void PluginService::Stub::async::SetPluginParameter(::grpc::ClientContext* context, const ::daw::api::SetPluginParameterRequest* request, ::daw::api::StatusResponse* response, ::grpc::ClientUnaryReactor* reactor) {
|
|
|
|
|
::grpc::internal::ClientCallbackUnaryFactory::Create< ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(stub_->channel_.get(), stub_->rpcmethod_SetPluginParameter_, context, request, response, reactor);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* PluginService::Stub::PrepareAsyncSetPluginParameterRaw(::grpc::ClientContext* context, const ::daw::api::SetPluginParameterRequest& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
return ::grpc::internal::ClientAsyncResponseReaderHelper::Create< ::daw::api::StatusResponse, ::daw::api::SetPluginParameterRequest, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(channel_.get(), cq, rpcmethod_SetPluginParameter_, context, request);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::ClientAsyncResponseReader< ::daw::api::StatusResponse>* PluginService::Stub::AsyncSetPluginParameterRaw(::grpc::ClientContext* context, const ::daw::api::SetPluginParameterRequest& request, ::grpc::CompletionQueue* cq) {
|
|
|
|
|
auto* result =
|
|
|
|
|
this->PrepareAsyncSetPluginParameterRaw(context, request, cq);
|
|
|
|
|
result->StartCall();
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PluginService::Service::Service() {
|
|
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
|
|
|
|
PluginService_method_names[0],
|
|
|
|
|
::grpc::internal::RpcMethod::NORMAL_RPC,
|
|
|
|
|
new ::grpc::internal::RpcMethodHandler< PluginService::Service, ::daw::api::LoadPluginRequest, ::daw::api::PluginInfo, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
|
|
|
|
[](PluginService::Service* service,
|
|
|
|
|
::grpc::ServerContext* ctx,
|
|
|
|
|
const ::daw::api::LoadPluginRequest* req,
|
|
|
|
|
::daw::api::PluginInfo* resp) {
|
|
|
|
|
return service->LoadPlugin(ctx, req, resp);
|
|
|
|
|
}, this)));
|
|
|
|
|
AddMethod(new ::grpc::internal::RpcServiceMethod(
|
|
|
|
|
PluginService_method_names[1],
|
|
|
|
|
::grpc::internal::RpcMethod::NORMAL_RPC,
|
|
|
|
|
new ::grpc::internal::RpcMethodHandler< PluginService::Service, ::daw::api::SetPluginParameterRequest, ::daw::api::StatusResponse, ::grpc::protobuf::MessageLite, ::grpc::protobuf::MessageLite>(
|
|
|
|
|
[](PluginService::Service* service,
|
|
|
|
|
::grpc::ServerContext* ctx,
|
|
|
|
|
const ::daw::api::SetPluginParameterRequest* req,
|
|
|
|
|
::daw::api::StatusResponse* resp) {
|
|
|
|
|
return service->SetPluginParameter(ctx, req, resp);
|
|
|
|
|
}, this)));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
PluginService::Service::~Service() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::Status PluginService::Service::LoadPlugin(::grpc::ServerContext* context, const ::daw::api::LoadPluginRequest* request, ::daw::api::PluginInfo* response) {
|
|
|
|
|
(void) context;
|
|
|
|
|
(void) request;
|
|
|
|
|
(void) response;
|
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::grpc::Status PluginService::Service::SetPluginParameter(::grpc::ServerContext* context, const ::daw::api::SetPluginParameterRequest* request, ::daw::api::StatusResponse* response) {
|
|
|
|
|
(void) context;
|
|
|
|
|
(void) request;
|
|
|
|
|
(void) response;
|
|
|
|
|
return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace daw
|
|
|
|
|
} // namespace api
|
|
|
|
|
|