#[derive(Serialize, Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Response {
#[prost(message, optional, tag = "1")]
pub validation_result: ::core::option::Option<super::ValidationResult>,
#[prost(message, optional, tag = "2")]
pub object: ::core::option::Option<Object>,
}
#[derive(Serialize, Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Object {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub data: ::core::option::Option<Data>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateObject {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub data: ::core::option::Option<Data>,
#[prost(message, optional, tag = "3")]
pub mask: ::core::option::Option<::prost_types::FieldMask>,
}
#[derive(Serialize, Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Data {
#[prost(string, tag = "1")]
pub pilot_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub vehicle_id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub path: ::core::option::Option<GeoLineString>,
#[prost(string, optional, tag = "4")]
pub weather_conditions: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "5")]
pub origin_vertiport_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "6")]
pub origin_vertipad_id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "7")]
pub origin_timeslot_start: ::core::option::Option<::prost_wkt_types::Timestamp>,
#[prost(message, optional, tag = "8")]
pub origin_timeslot_end: ::core::option::Option<::prost_wkt_types::Timestamp>,
#[prost(string, optional, tag = "9")]
pub target_vertiport_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "10")]
pub target_vertipad_id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "11")]
pub target_timeslot_start: ::core::option::Option<::prost_wkt_types::Timestamp>,
#[prost(message, optional, tag = "12")]
pub target_timeslot_end: ::core::option::Option<::prost_wkt_types::Timestamp>,
#[prost(message, optional, tag = "13")]
pub actual_departure_time: ::core::option::Option<::prost_wkt_types::Timestamp>,
#[prost(message, optional, tag = "14")]
pub actual_arrival_time: ::core::option::Option<::prost_wkt_types::Timestamp>,
#[prost(message, optional, tag = "15")]
pub flight_release_approval: ::core::option::Option<::prost_wkt_types::Timestamp>,
#[prost(message, optional, tag = "16")]
pub flight_plan_submitted: ::core::option::Option<::prost_wkt_types::Timestamp>,
#[prost(message, optional, tag = "17")]
pub carrier_ack: ::core::option::Option<::prost_wkt_types::Timestamp>,
#[prost(string, optional, tag = "18")]
pub approved_by: ::core::option::Option<::prost::alloc::string::String>,
#[prost(enumeration = "FlightStatus", tag = "19")]
pub flight_status: i32,
#[prost(enumeration = "FlightPriority", tag = "20")]
pub flight_priority: i32,
}
#[derive(Serialize, Deserialize)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct List {
#[prost(message, repeated, tag = "1")]
pub list: ::prost::alloc::vec::Vec<Object>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FlightPlanParcels {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub other_id_list: ::core::option::Option<super::IdList>,
#[prost(bool, tag = "3")]
pub acquire: bool,
#[prost(bool, tag = "4")]
pub deliver: bool,
}
#[derive(num_derive::FromPrimitive)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum FlightStatus {
Ready = 0,
Boarding = 1,
InFlight = 2,
Finished = 3,
Cancelled = 4,
Draft = 5,
}
impl FlightStatus {
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",
}
}
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,
}
}
}
#[derive(num_derive::FromPrimitive)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum FlightPriority {
Low = 0,
Medium = 1,
High = 2,
Emergency = 3,
}
impl FlightPriority {
pub fn as_str_name(&self) -> &'static str {
match self {
FlightPriority::Low => "LOW",
FlightPriority::Medium => "MEDIUM",
FlightPriority::High => "HIGH",
FlightPriority::Emergency => "EMERGENCY",
}
}
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,
}
}
}