1#[derive(Clone, Copy, PartialEq, ::prost::Message)]
19pub struct Complex64 {
20 #[prost(float, tag = "1")]
21 pub real: f32,
22 #[prost(float, tag = "2")]
23 pub imaginary: f32,
24}
25#[derive(Clone, PartialEq, ::prost::Message)]
28pub struct ReadoutValues {
29 #[prost(oneof = "readout_values::Values", tags = "1, 2")]
30 pub values: ::core::option::Option<readout_values::Values>,
31}
32pub mod readout_values {
34 #[derive(Clone, PartialEq, ::prost::Oneof)]
35 pub enum Values {
36 #[prost(message, tag = "1")]
37 IntegerValues(super::IntegerReadoutValues),
38 #[prost(message, tag = "2")]
39 ComplexValues(super::Complex64ReadoutValues),
40 }
41}
42#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
45pub struct IntegerReadoutValues {
46 #[prost(int32, repeated, tag = "1")]
47 pub values: ::prost::alloc::vec::Vec<i32>,
48}
49#[derive(Clone, PartialEq, ::prost::Message)]
51pub struct Complex64ReadoutValues {
52 #[prost(message, repeated, tag = "1")]
53 pub values: ::prost::alloc::vec::Vec<Complex64>,
54}
55#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
58pub struct EncryptedControllerJob {
59 #[prost(bytes = "vec", tag = "1")]
61 pub job: ::prost::alloc::vec::Vec<u8>,
62 #[prost(message, optional, tag = "2")]
64 pub encryption: ::core::option::Option<JobEncryption>,
65}
66#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
68pub struct JobEncryption {
69 #[prost(string, tag = "1")]
71 pub key_id: ::prost::alloc::string::String,
72 #[prost(bytes = "vec", tag = "2")]
74 pub nonce: ::prost::alloc::vec::Vec<u8>,
75}
76#[derive(Clone, PartialEq, ::prost::Message)]
77pub struct JobExecutionConfiguration {
78 #[prost(map = "string, message", tag = "3")]
82 pub memory_values: ::std::collections::HashMap<
83 ::prost::alloc::string::String,
84 DataValue,
85 >,
86}
87#[derive(Clone, PartialEq, ::prost::Message)]
89pub struct DataValue {
90 #[prost(oneof = "data_value::Value", tags = "101, 102, 103")]
91 pub value: ::core::option::Option<data_value::Value>,
92}
93pub mod data_value {
95 #[derive(Clone, PartialEq, ::prost::Oneof)]
96 pub enum Value {
97 #[prost(message, tag = "101")]
99 Binary(super::BinaryDataValue),
100 #[prost(message, tag = "102")]
102 Integer(super::IntegerDataValue),
103 #[prost(message, tag = "103")]
105 Real(super::RealDataValue),
106 }
107}
108#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
110pub struct BinaryDataValue {
111 #[prost(bytes = "vec", tag = "1")]
112 pub data: ::prost::alloc::vec::Vec<u8>,
113}
114#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
116pub struct IntegerDataValue {
117 #[prost(int64, repeated, tag = "1")]
118 pub data: ::prost::alloc::vec::Vec<i64>,
119}
120#[derive(Clone, PartialEq, ::prost::Message)]
122pub struct RealDataValue {
123 #[prost(double, repeated, tag = "1")]
124 pub data: ::prost::alloc::vec::Vec<f64>,
125}
126#[derive(Clone, PartialEq, ::prost::Message)]
129pub struct ControllerJobExecutionResult {
130 #[prost(map = "string, message", tag = "1")]
132 pub memory_values: ::std::collections::HashMap<
133 ::prost::alloc::string::String,
134 DataValue,
135 >,
136 #[prost(map = "string, message", tag = "2")]
140 pub readout_values: ::std::collections::HashMap<
141 ::prost::alloc::string::String,
142 ReadoutValues,
143 >,
144 #[prost(enumeration = "controller_job_execution_result::Status", tag = "3")]
145 pub status: i32,
146 #[prost(string, optional, tag = "4")]
148 pub status_message: ::core::option::Option<::prost::alloc::string::String>,
149 #[prost(uint64, tag = "5")]
151 pub execution_duration_microseconds: u64,
152}
153pub mod controller_job_execution_result {
155 #[derive(
156 Clone,
157 Copy,
158 Debug,
159 PartialEq,
160 Eq,
161 Hash,
162 PartialOrd,
163 Ord,
164 ::prost::Enumeration
165 )]
166 #[repr(i32)]
167 pub enum Status {
168 Unknown = 0,
169 Success = 1,
170 ServiceFailure = 2,
172 UserFailure = 3,
174 UserCancellation = 4,
176 }
177 impl Status {
178 pub fn as_str_name(&self) -> &'static str {
183 match self {
184 Self::Unknown => "UNKNOWN",
185 Self::Success => "SUCCESS",
186 Self::ServiceFailure => "SERVICE_FAILURE",
187 Self::UserFailure => "USER_FAILURE",
188 Self::UserCancellation => "USER_CANCELLATION",
189 }
190 }
191 pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
193 match value {
194 "UNKNOWN" => Some(Self::Unknown),
195 "SUCCESS" => Some(Self::Success),
196 "SERVICE_FAILURE" => Some(Self::ServiceFailure),
197 "USER_FAILURE" => Some(Self::UserFailure),
198 "USER_CANCELLATION" => Some(Self::UserCancellation),
199 _ => None,
200 }
201 }
202 }
203}
204