#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Request {
#[prost(oneof="request::RequestType", tags="1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16")]
pub request_type: ::std::option::Option<request::RequestType>,
}
pub mod request {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum RequestType {
#[prost(message, tag="1")]
Preq(super::PingRequest),
#[prost(message, tag="2")]
Mareq(super::MakeAvailableRequest),
#[prost(message, tag="3")]
Rareq(super::RemoveAvailableRequest),
#[prost(message, tag="4")]
Lareq(super::ListAvailableRequest),
#[prost(message, tag="5")]
Sumreq(super::SetUpMachineRequest),
#[prost(message, tag="6")]
Svreq(super::SetVarRequest),
#[prost(message, tag="7")]
Lvreq(super::ListVarsRequest),
#[prost(message, tag="8")]
Ajreq(super::AddJobRequest),
#[prost(message, tag="9")]
Ljreq(super::ListJobsRequest),
#[prost(message, tag="10")]
Cjreq(super::CancelJobRequest),
#[prost(message, tag="11")]
Jsreq(super::JobStatusRequest),
#[prost(message, tag="12")]
Cljreq(super::CloneJobRequest),
#[prost(message, tag="13")]
Hjreq(super::HoldJobRequest),
#[prost(message, tag="14")]
Ujreq(super::UnholdJobRequest),
#[prost(message, tag="15")]
Amreq(super::AddMatrixRequest),
#[prost(message, tag="16")]
Smreq(super::StatMatrixRequest),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Response {
#[prost(oneof="response::ResponseType", tags="1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13")]
pub response_type: ::std::option::Option<response::ResponseType>,
}
pub mod response {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum ResponseType {
#[prost(message, tag="1")]
Okresp(super::OkResp),
#[prost(message, tag="2")]
Mresp(super::MachinesResp),
#[prost(message, tag="3")]
Jresp(super::JobsResp),
#[prost(message, tag="4")]
Vresp(super::VarsResp),
#[prost(message, tag="5")]
Jiresp(super::JobIdResp),
#[prost(message, tag="6")]
Miresp(super::MatrixIdResp),
#[prost(message, tag="7")]
Jsresp(super::JobStatusResp),
#[prost(message, tag="8")]
Msresp(super::MatrixStatusResp),
#[prost(message, tag="9")]
Nsmresp(super::NoSuchMachineResp),
#[prost(message, tag="10")]
Nsjresp(super::NoSuchJobResp),
#[prost(message, tag="11")]
Nsmatresp(super::NoSuchMatrixResp),
#[prost(message, tag="12")]
Nwresp(super::NotWaitingResp),
#[prost(message, tag="13")]
Ierr(super::InternalError),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PingRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MakeAvailableRequest {
#[prost(string, tag="1")]
pub addr: std::string::String,
#[prost(string, tag="2")]
pub class: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveAvailableRequest {
#[prost(string, tag="1")]
pub addr: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListAvailableRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetUpMachineRequest {
#[prost(string, tag="1")]
pub addr: std::string::String,
#[prost(string, repeated, tag="3")]
pub cmds: ::std::vec::Vec<std::string::String>,
#[prost(uint64, tag="5")]
pub timeout: u64,
#[prost(oneof="set_up_machine_request::Classopt", tags="2")]
pub classopt: ::std::option::Option<set_up_machine_request::Classopt>,
}
pub mod set_up_machine_request {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Classopt {
#[prost(string, tag="2")]
Class(std::string::String),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetVarRequest {
#[prost(string, tag="1")]
pub name: std::string::String,
#[prost(string, tag="2")]
pub value: std::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListVarsRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddJobRequest {
#[prost(string, tag="1")]
pub class: std::string::String,
#[prost(string, tag="2")]
pub cmd: std::string::String,
#[prost(bool, tag="4")]
pub repeat_on_fail: bool,
#[prost(uint64, tag="5")]
pub timeout: u64,
#[prost(oneof="add_job_request::CpResultsopt", tags="3")]
pub cp_resultsopt: ::std::option::Option<add_job_request::CpResultsopt>,
}
pub mod add_job_request {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum CpResultsopt {
#[prost(string, tag="3")]
CpResults(std::string::String),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListJobsRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CancelJobRequest {
#[prost(uint64, tag="1")]
pub jid: u64,
#[prost(bool, tag="2")]
pub remove: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct JobStatusRequest {
#[prost(uint64, tag="1")]
pub jid: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CloneJobRequest {
#[prost(uint64, tag="1")]
pub jid: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HoldJobRequest {
#[prost(uint64, tag="1")]
pub jid: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnholdJobRequest {
#[prost(uint64, tag="1")]
pub jid: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddMatrixRequest {
#[prost(map="string, message", tag="1")]
pub vars: ::std::collections::HashMap<std::string::String, MatrixVarValues>,
#[prost(string, tag="2")]
pub cmd: std::string::String,
#[prost(string, tag="3")]
pub class: std::string::String,
#[prost(uint64, tag="5")]
pub repeat: u64,
#[prost(uint64, tag="6")]
pub timeout: u64,
#[prost(oneof="add_matrix_request::CpResultsopt", tags="4")]
pub cp_resultsopt: ::std::option::Option<add_matrix_request::CpResultsopt>,
}
pub mod add_matrix_request {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum CpResultsopt {
#[prost(string, tag="4")]
CpResults(std::string::String),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StatMatrixRequest {
#[prost(uint64, tag="1")]
pub id: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MatrixVarValues {
#[prost(string, repeated, tag="1")]
pub values: ::std::vec::Vec<std::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OkResp {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MachinesResp {
#[prost(map="string, message", tag="2")]
pub machine_status: ::std::collections::HashMap<std::string::String, MachineStatus>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MachineStatus {
#[prost(string, tag="1")]
pub class: std::string::String,
#[prost(bool, tag="2")]
pub is_free: bool,
#[prost(uint64, tag="3")]
pub running_job: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct JobsResp {
#[prost(uint64, repeated, tag="1")]
pub jobs: ::std::vec::Vec<u64>,
#[prost(message, repeated, tag="2")]
pub matrices: ::std::vec::Vec<MatrixStatusResp>,
#[prost(uint64, repeated, tag="3")]
pub running: ::std::vec::Vec<u64>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VarsResp {
#[prost(map="string, string", tag="1")]
pub vars: ::std::collections::HashMap<std::string::String, std::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct JobIdResp {
#[prost(uint64, tag="1")]
pub jid: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MatrixIdResp {
#[prost(uint64, tag="1")]
pub id: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct JobStatusResp {
#[prost(string, tag="1")]
pub class: std::string::String,
#[prost(string, tag="2")]
pub cmd: std::string::String,
#[prost(uint64, tag="3")]
pub jid: u64,
#[prost(message, optional, tag="4")]
pub status: ::std::option::Option<Status>,
#[prost(map="string, string", tag="5")]
pub variables: ::std::collections::HashMap<std::string::String, std::string::String>,
#[prost(string, tag="6")]
pub log: std::string::String,
#[prost(string, tag="9")]
pub cp_results: std::string::String,
#[prost(string, tag="7")]
pub timestamp: std::string::String,
#[prost(oneof="job_status_resp::Matrixidopt", tags="10")]
pub matrixidopt: ::std::option::Option<job_status_resp::Matrixidopt>,
#[prost(oneof="job_status_resp::Donetsop", tags="8")]
pub donetsop: ::std::option::Option<job_status_resp::Donetsop>,
}
pub mod job_status_resp {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Matrixidopt {
#[prost(uint64, tag="10")]
Matrix(u64),
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Donetsop {
#[prost(string, tag="8")]
DoneTimestamp(std::string::String),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MatrixStatusResp {
#[prost(string, tag="1")]
pub cmd: std::string::String,
#[prost(string, tag="2")]
pub class: std::string::String,
#[prost(uint64, tag="4")]
pub id: u64,
#[prost(uint64, repeated, tag="5")]
pub jobs: ::std::vec::Vec<u64>,
#[prost(map="string, message", tag="6")]
pub variables: ::std::collections::HashMap<std::string::String, MatrixVarValues>,
#[prost(oneof="matrix_status_resp::CpResultsopt", tags="3")]
pub cp_resultsopt: ::std::option::Option<matrix_status_resp::CpResultsopt>,
}
pub mod matrix_status_resp {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum CpResultsopt {
#[prost(string, tag="3")]
CpResults(std::string::String),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NoSuchMachineResp {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NoSuchJobResp {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NoSuchMatrixResp {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NotWaitingResp {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InternalError {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Status {
#[prost(enumeration="status::Status", tag="1")]
pub status: i32,
#[prost(oneof="status::Machineopt", tags="2")]
pub machineopt: ::std::option::Option<status::Machineopt>,
#[prost(oneof="status::Outputopt", tags="3")]
pub outputopt: ::std::option::Option<status::Outputopt>,
#[prost(oneof="status::Erroropt", tags="4")]
pub erroropt: ::std::option::Option<status::Erroropt>,
}
pub mod status {
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Status {
Unknown = 0,
Waiting = 1,
Running = 2,
Copyresults = 3,
Done = 4,
Held = 5,
Canceled = 6,
Failed = 7,
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Machineopt {
#[prost(string, tag="2")]
Machine(std::string::String),
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Outputopt {
#[prost(string, tag="3")]
Output(std::string::String),
}
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Erroropt {
#[prost(string, tag="4")]
Error(std::string::String),
}
}