#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PingRequest {
#[prost(bytes = "vec", tag = "1")]
pub data: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PingResponse {
#[prost(bytes = "vec", tag = "1")]
pub data: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct RebootRequest {
#[prost(enumeration = "reboot_request::RebootMode", tag = "1")]
pub mode: i32,
}
pub mod reboot_request {
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum RebootMode {
Os = 0,
Dfu = 1,
Update = 2,
}
impl RebootMode {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Os => "OS",
Self::Dfu => "DFU",
Self::Update => "UPDATE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"OS" => Some(Self::Os),
"DFU" => Some(Self::Dfu),
"UPDATE" => Some(Self::Update),
_ => None,
}
}
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DeviceInfoRequest {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeviceInfoResponse {
#[prost(string, tag = "1")]
pub key: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub value: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct FactoryResetRequest {}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct GetDateTimeRequest {}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct GetDateTimeResponse {
#[prost(message, optional, tag = "1")]
pub datetime: ::core::option::Option<DateTime>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SetDateTimeRequest {
#[prost(message, optional, tag = "1")]
pub datetime: ::core::option::Option<DateTime>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DateTime {
#[prost(uint32, tag = "1")]
pub hour: u32,
#[prost(uint32, tag = "2")]
pub minute: u32,
#[prost(uint32, tag = "3")]
pub second: u32,
#[prost(uint32, tag = "4")]
pub day: u32,
#[prost(uint32, tag = "5")]
pub month: u32,
#[prost(uint32, tag = "6")]
pub year: u32,
#[prost(uint32, tag = "7")]
pub weekday: u32,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PlayAudiovisualAlertRequest {}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ProtobufVersionRequest {}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ProtobufVersionResponse {
#[prost(uint32, tag = "1")]
pub major: u32,
#[prost(uint32, tag = "2")]
pub minor: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateRequest {
#[prost(string, tag = "1")]
pub update_manifest: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct UpdateResponse {
#[prost(enumeration = "update_response::UpdateResultCode", tag = "1")]
pub code: i32,
}
pub mod update_response {
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum UpdateResultCode {
Ok = 0,
ManifestPathInvalid = 1,
ManifestFolderNotFound = 2,
ManifestInvalid = 3,
StageMissing = 4,
StageIntegrityError = 5,
ManifestPointerError = 6,
TargetMismatch = 7,
OutdatedManifestVersion = 8,
IntFull = 9,
UnspecifiedError = 10,
}
impl UpdateResultCode {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Ok => "OK",
Self::ManifestPathInvalid => "ManifestPathInvalid",
Self::ManifestFolderNotFound => "ManifestFolderNotFound",
Self::ManifestInvalid => "ManifestInvalid",
Self::StageMissing => "StageMissing",
Self::StageIntegrityError => "StageIntegrityError",
Self::ManifestPointerError => "ManifestPointerError",
Self::TargetMismatch => "TargetMismatch",
Self::OutdatedManifestVersion => "OutdatedManifestVersion",
Self::IntFull => "IntFull",
Self::UnspecifiedError => "UnspecifiedError",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"OK" => Some(Self::Ok),
"ManifestPathInvalid" => Some(Self::ManifestPathInvalid),
"ManifestFolderNotFound" => Some(Self::ManifestFolderNotFound),
"ManifestInvalid" => Some(Self::ManifestInvalid),
"StageMissing" => Some(Self::StageMissing),
"StageIntegrityError" => Some(Self::StageIntegrityError),
"ManifestPointerError" => Some(Self::ManifestPointerError),
"TargetMismatch" => Some(Self::TargetMismatch),
"OutdatedManifestVersion" => Some(Self::OutdatedManifestVersion),
"IntFull" => Some(Self::IntFull),
"UnspecifiedError" => Some(Self::UnspecifiedError),
_ => None,
}
}
}
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct PowerInfoRequest {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PowerInfoResponse {
#[prost(string, tag = "1")]
pub key: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub value: ::prost::alloc::string::String,
}