#[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 vehicle_model_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub serial_number: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub registration_number: ::prost::alloc::string::String,
#[prost(string, optional, tag = "4")]
pub description: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "5")]
pub asset_group_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "6")]
pub schedule: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "7")]
pub hangar_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "8")]
pub hangar_bay_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "9")]
pub last_maintenance: ::core::option::Option<::prost_wkt_types::Timestamp>,
#[prost(message, optional, tag = "10")]
pub next_maintenance: ::core::option::Option<::prost_wkt_types::Timestamp>,
#[prost(message, optional, tag = "11")]
pub created_at: ::core::option::Option<::prost_wkt_types::Timestamp>,
#[prost(message, optional, tag = "12")]
pub updated_at: ::core::option::Option<::prost_wkt_types::Timestamp>,
}
#[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 VehicleGroups {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub other_id_list: ::core::option::Option<super::IdList>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum VehicleModelType {
VtolCargo = 0,
VtolPassenger = 1,
}
impl VehicleModelType {
pub fn as_str_name(&self) -> &'static str {
match self {
VehicleModelType::VtolCargo => "VTOL_CARGO",
VehicleModelType::VtolPassenger => "VTOL_PASSENGER",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"VTOL_CARGO" => Some(Self::VtolCargo),
"VTOL_PASSENGER" => Some(Self::VtolPassenger),
_ => None,
}
}
}