#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Complex64 {
#[prost(float, tag = "1")]
pub real: f32,
#[prost(float, tag = "2")]
pub imaginary: f32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReadoutValues {
#[prost(oneof = "readout_values::Values", tags = "1, 2")]
pub values: ::core::option::Option<readout_values::Values>,
}
pub mod readout_values {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Values {
#[prost(message, tag = "1")]
IntegerValues(super::IntegerReadoutValues),
#[prost(message, tag = "2")]
ComplexValues(super::Complex64ReadoutValues),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IntegerReadoutValues {
#[prost(int32, repeated, tag = "1")]
pub values: ::prost::alloc::vec::Vec<i32>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Complex64ReadoutValues {
#[prost(message, repeated, tag = "1")]
pub values: ::prost::alloc::vec::Vec<Complex64>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EncryptedControllerJob {
#[prost(bytes = "vec", tag = "1")]
pub job: ::prost::alloc::vec::Vec<u8>,
#[prost(message, optional, tag = "2")]
pub encryption: ::core::option::Option<JobEncryption>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct JobEncryption {
#[prost(string, tag = "1")]
pub key_id: ::prost::alloc::string::String,
#[prost(bytes = "vec", tag = "2")]
pub nonce: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct JobExecutionConfiguration {
#[prost(map = "string, message", tag = "3")]
pub memory_values: ::std::collections::HashMap<
::prost::alloc::string::String,
DataValue,
>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataValue {
#[prost(oneof = "data_value::Value", tags = "101, 102, 103")]
pub value: ::core::option::Option<data_value::Value>,
}
pub mod data_value {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Value {
#[prost(message, tag = "101")]
Binary(super::BinaryDataValue),
#[prost(message, tag = "102")]
Integer(super::IntegerDataValue),
#[prost(message, tag = "103")]
Real(super::RealDataValue),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BinaryDataValue {
#[prost(bytes = "vec", tag = "1")]
pub data: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IntegerDataValue {
#[prost(int64, repeated, tag = "1")]
pub data: ::prost::alloc::vec::Vec<i64>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RealDataValue {
#[prost(double, repeated, tag = "1")]
pub data: ::prost::alloc::vec::Vec<f64>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ControllerJobExecutionResult {
#[prost(map = "string, message", tag = "1")]
pub memory_values: ::std::collections::HashMap<
::prost::alloc::string::String,
DataValue,
>,
#[prost(map = "string, message", tag = "2")]
pub readout_values: ::std::collections::HashMap<
::prost::alloc::string::String,
ReadoutValues,
>,
#[prost(enumeration = "controller_job_execution_result::Status", tag = "3")]
pub status: i32,
#[prost(string, optional, tag = "4")]
pub status_message: ::core::option::Option<::prost::alloc::string::String>,
#[prost(uint64, tag = "5")]
pub execution_duration_microseconds: u64,
}
pub mod controller_job_execution_result {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Status {
Unknown = 0,
Success = 1,
ServiceFailure = 2,
UserFailure = 3,
UserCancellation = 4,
}
impl Status {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unknown => "UNKNOWN",
Self::Success => "SUCCESS",
Self::ServiceFailure => "SERVICE_FAILURE",
Self::UserFailure => "USER_FAILURE",
Self::UserCancellation => "USER_CANCELLATION",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNKNOWN" => Some(Self::Unknown),
"SUCCESS" => Some(Self::Success),
"SERVICE_FAILURE" => Some(Self::ServiceFailure),
"USER_FAILURE" => Some(Self::UserFailure),
"USER_CANCELLATION" => Some(Self::UserCancellation),
_ => None,
}
}
}
}