1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
/// Response struct returning an \[Object\] on success and \[ValidationResult\] if
/// invalid fields were provided
#[derive(Serialize, Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Response {
    /// struct with field -> error pairs to provide feedback about invalid fields
    #[prost(message, optional, tag = "1")]
    pub validation_result: ::core::option::Option<super::ValidationResult>,
    /// Object struct with id \[`String`\] in [`Uuid`](uuid::Uuid) format and \[`Data`\]
    /// struct with flight_plan data
    #[prost(message, optional, tag = "2")]
    pub object: ::core::option::Option<Object>,
}
/// Object struct with `id` and `data` field
///
/// * `id` \[`String`\] in [`Uuid`](uuid::Uuid) format
/// * `data` \[`Data`\] struct with flight_plan data
#[derive(Serialize, Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Object {
    /// id UUID v4
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// data
    #[prost(message, optional, tag = "2")]
    pub data: ::core::option::Option<Data>,
}
/// UpdateObject struct with `id`, `data` and `mask` fields
///
/// * `id` \[`String`\] in [`Uuid`](uuid::Uuid) format
/// * `data` \[`Data`\] struct with flight_plan data which should be used for update
/// * `mask` \[`FieldMask`\] struct with flight_plan fields that should be updated
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateObject {
    /// `id` \[`String`\] in [`Uuid`](uuid::Uuid) format
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// struct with flight_plan data which should be used for update
    #[prost(message, optional, tag = "2")]
    pub data: ::core::option::Option<Data>,
    /// struct with flight_plan fields that should be updated
    #[prost(message, optional, tag = "3")]
    pub mask: ::core::option::Option<::prost_types::FieldMask>,
}
/// Data struct with flight_plan data
#[derive(Serialize, Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Data {
    /// pilot_id UUID v4
    #[prost(string, tag = "1")]
    pub pilot_id: ::prost::alloc::string::String,
    /// vehicle_id UUID v4
    #[prost(string, tag = "2")]
    pub vehicle_id: ::prost::alloc::string::String,
    /// the path of the flight
    #[prost(message, optional, tag = "3")]
    pub path: ::core::option::Option<GeoLineString>,
    /// weather_conditions
    #[prost(string, optional, tag = "4")]
    pub weather_conditions: ::core::option::Option<::prost::alloc::string::String>,
    /// origin_vertiport_id UUID v4, only listed for get results, not needed for
    /// creation (known through pad_id)
    #[prost(string, optional, tag = "5")]
    pub origin_vertiport_id: ::core::option::Option<::prost::alloc::string::String>,
    /// origin_vertipad_id UUID v4
    #[prost(string, tag = "6")]
    pub origin_vertipad_id: ::prost::alloc::string::String,
    /// Start of the departure vertipad timeslot
    #[prost(message, optional, tag = "7")]
    pub origin_timeslot_start: ::core::option::Option<::prost_wkt_types::Timestamp>,
    /// End of the departure vertipad timeslot
    #[prost(message, optional, tag = "8")]
    pub origin_timeslot_end: ::core::option::Option<::prost_wkt_types::Timestamp>,
    /// target_vertiport_id UUID v4, only listed for get results, not needed
    /// for creation (known through pad_id)
    #[prost(string, optional, tag = "9")]
    pub target_vertiport_id: ::core::option::Option<::prost::alloc::string::String>,
    /// target_vertipad_id UUID v4
    #[prost(string, tag = "10")]
    pub target_vertipad_id: ::prost::alloc::string::String,
    /// Start of the departure vertipad timeslot
    #[prost(message, optional, tag = "11")]
    pub target_timeslot_start: ::core::option::Option<::prost_wkt_types::Timestamp>,
    /// End of the departure vertipad timeslot
    #[prost(message, optional, tag = "12")]
    pub target_timeslot_end: ::core::option::Option<::prost_wkt_types::Timestamp>,
    /// actual_departure_time
    #[prost(message, optional, tag = "13")]
    pub actual_departure_time: ::core::option::Option<::prost_wkt_types::Timestamp>,
    /// actual_arrival_time
    #[prost(message, optional, tag = "14")]
    pub actual_arrival_time: ::core::option::Option<::prost_wkt_types::Timestamp>,
    /// flight_release_approval date and time
    #[prost(message, optional, tag = "15")]
    pub flight_release_approval: ::core::option::Option<::prost_wkt_types::Timestamp>,
    /// flight_plan_submitted date and time
    #[prost(message, optional, tag = "16")]
    pub flight_plan_submitted: ::core::option::Option<::prost_wkt_types::Timestamp>,
    /// aircraft/pilot acknowledgement of orders pre-flight
    #[prost(message, optional, tag = "17")]
    pub carrier_ack: ::core::option::Option<::prost_wkt_types::Timestamp>,
    /// approved_by UUID v4
    #[prost(string, optional, tag = "18")]
    pub approved_by: ::core::option::Option<::prost::alloc::string::String>,
    /// flight_status
    #[prost(enumeration = "FlightStatus", tag = "19")]
    pub flight_status: i32,
    /// flightPriority
    #[prost(enumeration = "FlightPriority", tag = "20")]
    pub flight_priority: i32,
}
/// Struct containing a `list` of flight_plan \[Vec\<Object\>\]
#[derive(Serialize, Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct List {
    /// array/vector of flight items
    #[prost(message, repeated, tag = "1")]
    pub list: ::prost::alloc::vec::Vec<Object>,
}
/// Struct used to link parcels to flight plans
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FlightPlanParcels {
    /// `id` \[`String`\] in [`Uuid`](uuid::Uuid) format
    #[prost(string, tag = "1")]
    pub id: ::prost::alloc::string::String,
    /// parcel ids as \[`Vec\<String\>`\] in [`Uuid`](uuid::Uuid) format
    #[prost(message, optional, tag = "2")]
    pub other_id_list: ::core::option::Option<super::IdList>,
    /// If the parcels are picked up at the departure vertiport
    #[prost(bool, tag = "3")]
    pub acquire: bool,
    /// If the parcels are delivered at the destination vertiport
    #[prost(bool, tag = "4")]
    pub deliver: bool,
}
/// Flight Status Enum
#[derive(num_derive::FromPrimitive)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum FlightStatus {
    /// READY
    Ready = 0,
    /// BOARDING
    Boarding = 1,
    /// IN_FLIGHT
    InFlight = 2,
    /// FINISHED
    Finished = 3,
    /// CANCELLED
    Cancelled = 4,
    /// DRAFT
    Draft = 5,
}
impl FlightStatus {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            FlightStatus::Ready => "READY",
            FlightStatus::Boarding => "BOARDING",
            FlightStatus::InFlight => "IN_FLIGHT",
            FlightStatus::Finished => "FINISHED",
            FlightStatus::Cancelled => "CANCELLED",
            FlightStatus::Draft => "DRAFT",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "READY" => Some(Self::Ready),
            "BOARDING" => Some(Self::Boarding),
            "IN_FLIGHT" => Some(Self::InFlight),
            "FINISHED" => Some(Self::Finished),
            "CANCELLED" => Some(Self::Cancelled),
            "DRAFT" => Some(Self::Draft),
            _ => None,
        }
    }
}
/// Flight Priority Enum
#[derive(num_derive::FromPrimitive)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum FlightPriority {
    /// LOW
    Low = 0,
    /// MEDIUM
    Medium = 1,
    /// HIGH
    High = 2,
    /// EMERGENCY
    Emergency = 3,
}
impl FlightPriority {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            FlightPriority::Low => "LOW",
            FlightPriority::Medium => "MEDIUM",
            FlightPriority::High => "HIGH",
            FlightPriority::Emergency => "EMERGENCY",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "LOW" => Some(Self::Low),
            "MEDIUM" => Some(Self::Medium),
            "HIGH" => Some(Self::High),
            "EMERGENCY" => Some(Self::Emergency),
            _ => None,
        }
    }
}