#![allow(unknown_lints)]
#![allow(clippy::all)]
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(box_pointers)]
#![allow(dead_code)]
#![allow(missing_docs)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(non_upper_case_globals)]
#![allow(trivial_casts)]
#![allow(unsafe_code)]
#![allow(unused_imports)]
#![allow(unused_results)]
const METHOD_RELEASE_MODULE_SERVICE_VERSION: ::grpcio::Method<super::rudder::VersionReleaseRequest, super::rudder::VersionReleaseResponse> = ::grpcio::Method {
ty: ::grpcio::MethodType::Unary,
name: "/hapi.services.rudder.ReleaseModuleService/Version",
req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
};
const METHOD_RELEASE_MODULE_SERVICE_INSTALL_RELEASE: ::grpcio::Method<super::rudder::InstallReleaseRequest, super::rudder::InstallReleaseResponse> = ::grpcio::Method {
ty: ::grpcio::MethodType::Unary,
name: "/hapi.services.rudder.ReleaseModuleService/InstallRelease",
req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
};
const METHOD_RELEASE_MODULE_SERVICE_DELETE_RELEASE: ::grpcio::Method<super::rudder::DeleteReleaseRequest, super::rudder::DeleteReleaseResponse> = ::grpcio::Method {
ty: ::grpcio::MethodType::Unary,
name: "/hapi.services.rudder.ReleaseModuleService/DeleteRelease",
req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
};
const METHOD_RELEASE_MODULE_SERVICE_ROLLBACK_RELEASE: ::grpcio::Method<super::rudder::RollbackReleaseRequest, super::rudder::RollbackReleaseResponse> = ::grpcio::Method {
ty: ::grpcio::MethodType::Unary,
name: "/hapi.services.rudder.ReleaseModuleService/RollbackRelease",
req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
};
const METHOD_RELEASE_MODULE_SERVICE_UPGRADE_RELEASE: ::grpcio::Method<super::rudder::UpgradeReleaseRequest, super::rudder::UpgradeReleaseResponse> = ::grpcio::Method {
ty: ::grpcio::MethodType::Unary,
name: "/hapi.services.rudder.ReleaseModuleService/UpgradeRelease",
req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
};
const METHOD_RELEASE_MODULE_SERVICE_RELEASE_STATUS: ::grpcio::Method<super::rudder::ReleaseStatusRequest, super::rudder::ReleaseStatusResponse> = ::grpcio::Method {
ty: ::grpcio::MethodType::Unary,
name: "/hapi.services.rudder.ReleaseModuleService/ReleaseStatus",
req_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
resp_mar: ::grpcio::Marshaller { ser: ::grpcio::pb_ser, de: ::grpcio::pb_de },
};
#[derive(Clone)]
pub struct ReleaseModuleServiceClient {
client: ::grpcio::Client,
}
impl ReleaseModuleServiceClient {
pub fn new(channel: ::grpcio::Channel) -> Self {
ReleaseModuleServiceClient {
client: ::grpcio::Client::new(channel),
}
}
pub fn version_opt(&self, req: &super::rudder::VersionReleaseRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<super::rudder::VersionReleaseResponse> {
self.client.unary_call(&METHOD_RELEASE_MODULE_SERVICE_VERSION, req, opt)
}
pub fn version(&self, req: &super::rudder::VersionReleaseRequest) -> ::grpcio::Result<super::rudder::VersionReleaseResponse> {
self.version_opt(req, ::grpcio::CallOption::default())
}
pub fn version_async_opt(&self, req: &super::rudder::VersionReleaseRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::rudder::VersionReleaseResponse>> {
self.client.unary_call_async(&METHOD_RELEASE_MODULE_SERVICE_VERSION, req, opt)
}
pub fn version_async(&self, req: &super::rudder::VersionReleaseRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::rudder::VersionReleaseResponse>> {
self.version_async_opt(req, ::grpcio::CallOption::default())
}
pub fn install_release_opt(&self, req: &super::rudder::InstallReleaseRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<super::rudder::InstallReleaseResponse> {
self.client.unary_call(&METHOD_RELEASE_MODULE_SERVICE_INSTALL_RELEASE, req, opt)
}
pub fn install_release(&self, req: &super::rudder::InstallReleaseRequest) -> ::grpcio::Result<super::rudder::InstallReleaseResponse> {
self.install_release_opt(req, ::grpcio::CallOption::default())
}
pub fn install_release_async_opt(&self, req: &super::rudder::InstallReleaseRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::rudder::InstallReleaseResponse>> {
self.client.unary_call_async(&METHOD_RELEASE_MODULE_SERVICE_INSTALL_RELEASE, req, opt)
}
pub fn install_release_async(&self, req: &super::rudder::InstallReleaseRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::rudder::InstallReleaseResponse>> {
self.install_release_async_opt(req, ::grpcio::CallOption::default())
}
pub fn delete_release_opt(&self, req: &super::rudder::DeleteReleaseRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<super::rudder::DeleteReleaseResponse> {
self.client.unary_call(&METHOD_RELEASE_MODULE_SERVICE_DELETE_RELEASE, req, opt)
}
pub fn delete_release(&self, req: &super::rudder::DeleteReleaseRequest) -> ::grpcio::Result<super::rudder::DeleteReleaseResponse> {
self.delete_release_opt(req, ::grpcio::CallOption::default())
}
pub fn delete_release_async_opt(&self, req: &super::rudder::DeleteReleaseRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::rudder::DeleteReleaseResponse>> {
self.client.unary_call_async(&METHOD_RELEASE_MODULE_SERVICE_DELETE_RELEASE, req, opt)
}
pub fn delete_release_async(&self, req: &super::rudder::DeleteReleaseRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::rudder::DeleteReleaseResponse>> {
self.delete_release_async_opt(req, ::grpcio::CallOption::default())
}
pub fn rollback_release_opt(&self, req: &super::rudder::RollbackReleaseRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<super::rudder::RollbackReleaseResponse> {
self.client.unary_call(&METHOD_RELEASE_MODULE_SERVICE_ROLLBACK_RELEASE, req, opt)
}
pub fn rollback_release(&self, req: &super::rudder::RollbackReleaseRequest) -> ::grpcio::Result<super::rudder::RollbackReleaseResponse> {
self.rollback_release_opt(req, ::grpcio::CallOption::default())
}
pub fn rollback_release_async_opt(&self, req: &super::rudder::RollbackReleaseRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::rudder::RollbackReleaseResponse>> {
self.client.unary_call_async(&METHOD_RELEASE_MODULE_SERVICE_ROLLBACK_RELEASE, req, opt)
}
pub fn rollback_release_async(&self, req: &super::rudder::RollbackReleaseRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::rudder::RollbackReleaseResponse>> {
self.rollback_release_async_opt(req, ::grpcio::CallOption::default())
}
pub fn upgrade_release_opt(&self, req: &super::rudder::UpgradeReleaseRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<super::rudder::UpgradeReleaseResponse> {
self.client.unary_call(&METHOD_RELEASE_MODULE_SERVICE_UPGRADE_RELEASE, req, opt)
}
pub fn upgrade_release(&self, req: &super::rudder::UpgradeReleaseRequest) -> ::grpcio::Result<super::rudder::UpgradeReleaseResponse> {
self.upgrade_release_opt(req, ::grpcio::CallOption::default())
}
pub fn upgrade_release_async_opt(&self, req: &super::rudder::UpgradeReleaseRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::rudder::UpgradeReleaseResponse>> {
self.client.unary_call_async(&METHOD_RELEASE_MODULE_SERVICE_UPGRADE_RELEASE, req, opt)
}
pub fn upgrade_release_async(&self, req: &super::rudder::UpgradeReleaseRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::rudder::UpgradeReleaseResponse>> {
self.upgrade_release_async_opt(req, ::grpcio::CallOption::default())
}
pub fn release_status_opt(&self, req: &super::rudder::ReleaseStatusRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<super::rudder::ReleaseStatusResponse> {
self.client.unary_call(&METHOD_RELEASE_MODULE_SERVICE_RELEASE_STATUS, req, opt)
}
pub fn release_status(&self, req: &super::rudder::ReleaseStatusRequest) -> ::grpcio::Result<super::rudder::ReleaseStatusResponse> {
self.release_status_opt(req, ::grpcio::CallOption::default())
}
pub fn release_status_async_opt(&self, req: &super::rudder::ReleaseStatusRequest, opt: ::grpcio::CallOption) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::rudder::ReleaseStatusResponse>> {
self.client.unary_call_async(&METHOD_RELEASE_MODULE_SERVICE_RELEASE_STATUS, req, opt)
}
pub fn release_status_async(&self, req: &super::rudder::ReleaseStatusRequest) -> ::grpcio::Result<::grpcio::ClientUnaryReceiver<super::rudder::ReleaseStatusResponse>> {
self.release_status_async_opt(req, ::grpcio::CallOption::default())
}
pub fn spawn<F>(&self, f: F) where F: ::futures::Future<Item = (), Error = ()> + Send + 'static {
self.client.spawn(f)
}
}
pub trait ReleaseModuleService {
fn version(&mut self, ctx: ::grpcio::RpcContext, req: super::rudder::VersionReleaseRequest, sink: ::grpcio::UnarySink<super::rudder::VersionReleaseResponse>);
fn install_release(&mut self, ctx: ::grpcio::RpcContext, req: super::rudder::InstallReleaseRequest, sink: ::grpcio::UnarySink<super::rudder::InstallReleaseResponse>);
fn delete_release(&mut self, ctx: ::grpcio::RpcContext, req: super::rudder::DeleteReleaseRequest, sink: ::grpcio::UnarySink<super::rudder::DeleteReleaseResponse>);
fn rollback_release(&mut self, ctx: ::grpcio::RpcContext, req: super::rudder::RollbackReleaseRequest, sink: ::grpcio::UnarySink<super::rudder::RollbackReleaseResponse>);
fn upgrade_release(&mut self, ctx: ::grpcio::RpcContext, req: super::rudder::UpgradeReleaseRequest, sink: ::grpcio::UnarySink<super::rudder::UpgradeReleaseResponse>);
fn release_status(&mut self, ctx: ::grpcio::RpcContext, req: super::rudder::ReleaseStatusRequest, sink: ::grpcio::UnarySink<super::rudder::ReleaseStatusResponse>);
}
pub fn create_release_module_service<S: ReleaseModuleService + Send + Clone + 'static>(s: S) -> ::grpcio::Service {
let mut builder = ::grpcio::ServiceBuilder::new();
let mut instance = s.clone();
builder = builder.add_unary_handler(&METHOD_RELEASE_MODULE_SERVICE_VERSION, move |ctx, req, resp| {
instance.version(ctx, req, resp)
});
let mut instance = s.clone();
builder = builder.add_unary_handler(&METHOD_RELEASE_MODULE_SERVICE_INSTALL_RELEASE, move |ctx, req, resp| {
instance.install_release(ctx, req, resp)
});
let mut instance = s.clone();
builder = builder.add_unary_handler(&METHOD_RELEASE_MODULE_SERVICE_DELETE_RELEASE, move |ctx, req, resp| {
instance.delete_release(ctx, req, resp)
});
let mut instance = s.clone();
builder = builder.add_unary_handler(&METHOD_RELEASE_MODULE_SERVICE_ROLLBACK_RELEASE, move |ctx, req, resp| {
instance.rollback_release(ctx, req, resp)
});
let mut instance = s.clone();
builder = builder.add_unary_handler(&METHOD_RELEASE_MODULE_SERVICE_UPGRADE_RELEASE, move |ctx, req, resp| {
instance.upgrade_release(ctx, req, resp)
});
let mut instance = s;
builder = builder.add_unary_handler(&METHOD_RELEASE_MODULE_SERVICE_RELEASE_STATUS, move |ctx, req, resp| {
instance.release_status(ctx, req, resp)
});
builder.build()
}