#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ClientInfo {
#[prost(string, tag = "1")]
pub application_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub application_version: ::prost::alloc::string::String,
#[prost(enumeration = "client_info::Platform", tag = "3")]
pub platform: i32,
#[prost(string, tag = "4")]
pub operating_system: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub api_client: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub device_model: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
pub language_code: ::prost::alloc::string::String,
#[prost(string, tag = "8")]
pub operating_system_build: ::prost::alloc::string::String,
}
pub mod client_info {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Platform {
Unspecified = 0,
Editor = 1,
MacOs = 2,
Windows = 3,
Linux = 4,
Android = 5,
Ios = 6,
WebGl = 7,
}
impl Platform {
pub fn as_str_name(&self) -> &'static str {
match self {
Platform::Unspecified => "PLATFORM_UNSPECIFIED",
Platform::Editor => "EDITOR",
Platform::MacOs => "MAC_OS",
Platform::Windows => "WINDOWS",
Platform::Linux => "LINUX",
Platform::Android => "ANDROID",
Platform::Ios => "IOS",
Platform::WebGl => "WEB_GL",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"PLATFORM_UNSPECIFIED" => Some(Self::Unspecified),
"EDITOR" => Some(Self::Editor),
"MAC_OS" => Some(Self::MacOs),
"WINDOWS" => Some(Self::Windows),
"LINUX" => Some(Self::Linux),
"ANDROID" => Some(Self::Android),
"IOS" => Some(Self::Ios),
"WEB_GL" => Some(Self::WebGl),
_ => None,
}
}
}
}