use crate::msg::Hash;
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ParameterOffset {
#[prost(
enumeration = "OffsetType",
required,
tag = "1",
default = "OffsetElements"
)]
pub r#type: i32,
#[prost(uint32, required, tag = "2")]
pub offset: u32,
#[prost(uint32, required, tag = "3")]
pub length: u32,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Error {
#[prost(fixed64, required, tag = "1")]
pub timestamp: u64,
#[prost(fixed32, required, tag = "2")]
pub error_number: u32,
#[prost(fixed32, required, tag = "3")]
pub error_level: u32,
#[prost(fixed32, required, tag = "4")]
pub subsystem: u32,
#[prost(fixed32, required, tag = "5")]
pub info: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ErrorList {
#[prost(message, repeated, tag = "1")]
pub errors: ::prost::alloc::vec::Vec<Error>,
#[prost(fixed32, required, tag = "2")]
pub number_of_errors: u32,
#[prost(fixed32, required, tag = "3")]
pub update_counter: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ParameterInfo {
#[prost(uint32, required, tag = "1")]
pub id: u32,
#[prost(uint32, required, tag = "2")]
pub data_type: u32,
#[prost(uint32, required, tag = "3")]
pub data_size: u32,
#[prost(uint32, required, tag = "4")]
pub number_of_elements: u32,
#[prost(uint32, required, tag = "5")]
pub flags: u32,
#[prost(uint32, required, tag = "6")]
pub permissions: u32,
#[prost(enumeration = "ParameterType", required, tag = "7")]
pub param_type: i32,
#[prost(enumeration = "UserGroup", required, tag = "8")]
pub group_id: i32,
#[prost(enumeration = "Unit", required, tag = "9")]
pub unit: i32,
#[prost(string, required, tag = "10")]
pub path: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GroupParameterInfo {
#[prost(uint32, required, tag = "1")]
pub index: u32,
#[prost(uint32, required, tag = "2")]
pub offset: u32,
#[prost(uint32, required, tag = "3")]
pub size: u32,
#[prost(message, required, tag = "4")]
pub info: ParameterInfo,
#[prost(enumeration = "StatusCode", required, tag = "5")]
pub status: i32,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Header {
#[prost(fixed32, required, tag = "1")]
pub frame_counter: u32,
#[prost(fixed64, required, tag = "2")]
pub timestamp: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GroupMsg {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<Header>,
#[prost(message, repeated, tag = "2")]
pub params: ::prost::alloc::vec::Vec<ParameterMsg>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct StatusMsg {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<Header>,
#[prost(enumeration = "StatusCode", required, tag = "2")]
pub status: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LoginMsg {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<Header>,
#[prost(string, required, tag = "2")]
pub login: ::prost::alloc::string::String,
#[prost(string, required, tag = "3")]
pub password: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct GetSessionTokenMsg {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<Header>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SessionTokenMsg {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<Header>,
#[prost(string, required, tag = "2")]
pub token: ::prost::alloc::string::String,
#[prost(enumeration = "StatusCode", required, tag = "3")]
pub status: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RestoreSessionMsg {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<Header>,
#[prost(string, required, tag = "2")]
pub token: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct LogoutMsg {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<Header>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct GetParameterTreeMsg {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<Header>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ParameterTreeMsg {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<Header>,
#[prost(message, repeated, tag = "2")]
pub params: ::prost::alloc::vec::Vec<ParameterInfo>,
#[prost(uint32, required, tag = "3")]
pub hash: u32,
#[prost(enumeration = "StatusCode", required, tag = "4")]
pub status: i32,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct GetParameterTreeHashMsg {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<Header>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ParameterTreeHashMsg {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<Header>,
#[prost(uint32, required, tag = "2")]
pub hash: u32,
#[prost(enumeration = "StatusCode", required, tag = "3")]
pub status: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateGroupMsg {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<Header>,
#[prost(uint32, required, tag = "2")]
pub frq_divider: u32,
#[prost(string, required, tag = "3")]
pub alias: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "4")]
pub paths: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GroupStatusMsg {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<Header>,
#[prost(uint32, required, tag = "2")]
pub id: u32,
#[prost(string, required, tag = "3")]
pub alias: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "4")]
pub params: ::prost::alloc::vec::Vec<GroupParameterInfo>,
#[prost(enumeration = "StatusCode", required, tag = "5")]
pub status: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RemoveGroupMsg {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<Header>,
#[prost(string, required, tag = "2")]
pub alias: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetParameterMsg {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<Header>,
#[prost(string, required, tag = "2")]
pub path: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ParameterMsg {
#[prost(bytes = "vec", required, tag = "1")]
pub value: ::prost::alloc::vec::Vec<u8>,
#[prost(message, optional, tag = "2")]
pub header: ::core::option::Option<Header>,
#[prost(message, optional, tag = "3")]
pub info: ::core::option::Option<ParameterInfo>,
#[prost(enumeration = "StatusCode", required, tag = "4")]
pub status: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetParameterListMsg {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<Header>,
#[prost(message, repeated, tag = "2")]
pub params: ::prost::alloc::vec::Vec<GetParameterMsg>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ParameterListMsg {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<Header>,
#[prost(message, repeated, tag = "2")]
pub params: ::prost::alloc::vec::Vec<ParameterMsg>,
#[prost(enumeration = "StatusCode", required, tag = "3")]
pub status: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetParameterMsg {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<Header>,
#[prost(message, optional, tag = "2")]
pub offset: ::core::option::Option<ParameterOffset>,
#[prost(string, required, tag = "3")]
pub path: ::prost::alloc::string::String,
#[prost(bytes = "vec", required, tag = "4")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SetParameterListMsg {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<Header>,
#[prost(message, repeated, tag = "2")]
pub params: ::prost::alloc::vec::Vec<SetParameterMsg>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OverwriteParameterMsg {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<Header>,
#[prost(message, optional, tag = "2")]
pub offset: ::core::option::Option<ParameterOffset>,
#[prost(bool, required, tag = "3")]
pub activate: bool,
#[prost(string, required, tag = "4")]
pub path: ::prost::alloc::string::String,
#[prost(bytes = "vec", required, tag = "5")]
pub value: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReleaseParameterMsg {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<Header>,
#[prost(string, required, tag = "2")]
pub path: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SaveMsg {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<Header>,
#[prost(string, required, tag = "2")]
pub path: ::prost::alloc::string::String,
#[prost(string, required, tag = "3")]
pub file_name: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LoadMsg {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<Header>,
#[prost(string, required, tag = "2")]
pub path: ::prost::alloc::string::String,
#[prost(string, required, tag = "3")]
pub file_name: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConsoleCmdMsg {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<Header>,
#[prost(string, required, tag = "2")]
pub value: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ConsoleCmdListMsg {
#[prost(message, optional, tag = "1")]
pub header: ::core::option::Option<Header>,
#[prost(message, repeated, tag = "2")]
pub cmds: ::prost::alloc::vec::Vec<ConsoleCmdMsg>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Unit {
Undefined = 0,
Length = 15,
Mm = 1,
M = 2,
Angle = 241,
Rad = 49,
Deg = 65,
Time = 242,
Nanosec = 18,
Microsec = 34,
Millisec = 50,
Sec = 66,
Weight = 243,
Gram = 19,
Kg = 35,
Velocity = 244,
MSec = 20,
RadSec = 36,
Acceleration = 245,
MSec2 = 21,
RadSec2 = 37,
Force = 246,
N = 22,
Nm = 38,
Percent = 23,
}
impl Unit {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Undefined => "unit_undefined",
Self::Length => "Length",
Self::Mm => "mm",
Self::M => "m",
Self::Angle => "Angle",
Self::Rad => "rad",
Self::Deg => "deg",
Self::Time => "Time",
Self::Nanosec => "nanosec",
Self::Microsec => "microsec",
Self::Millisec => "millisec",
Self::Sec => "sec",
Self::Weight => "Weight",
Self::Gram => "gram",
Self::Kg => "kg",
Self::Velocity => "Velocity",
Self::MSec => "m_sec",
Self::RadSec => "rad_sec",
Self::Acceleration => "Acceleration",
Self::MSec2 => "m_sec2",
Self::RadSec2 => "rad_sec2",
Self::Force => "Force",
Self::N => "N",
Self::Nm => "Nm",
Self::Percent => "percent",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"unit_undefined" => Some(Self::Undefined),
"Length" => Some(Self::Length),
"mm" => Some(Self::Mm),
"m" => Some(Self::M),
"Angle" => Some(Self::Angle),
"rad" => Some(Self::Rad),
"deg" => Some(Self::Deg),
"Time" => Some(Self::Time),
"nanosec" => Some(Self::Nanosec),
"microsec" => Some(Self::Microsec),
"millisec" => Some(Self::Millisec),
"sec" => Some(Self::Sec),
"Weight" => Some(Self::Weight),
"gram" => Some(Self::Gram),
"kg" => Some(Self::Kg),
"Velocity" => Some(Self::Velocity),
"m_sec" => Some(Self::MSec),
"rad_sec" => Some(Self::RadSec),
"Acceleration" => Some(Self::Acceleration),
"m_sec2" => Some(Self::MSec2),
"rad_sec2" => Some(Self::RadSec2),
"Force" => Some(Self::Force),
"N" => Some(Self::N),
"Nm" => Some(Self::Nm),
"percent" => Some(Self::Percent),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum UserGroup {
Undefined = 0,
System = 1,
Administrator = 3,
Operator = 7,
Guest = 2147483647,
}
impl UserGroup {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Undefined => "user_group_undefined",
Self::System => "SYSTEM",
Self::Administrator => "ADMINISTRATOR",
Self::Operator => "OPERATOR",
Self::Guest => "GUEST",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"user_group_undefined" => Some(Self::Undefined),
"SYSTEM" => Some(Self::System),
"ADMINISTRATOR" => Some(Self::Administrator),
"OPERATOR" => Some(Self::Operator),
"GUEST" => Some(Self::Guest),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Permission {
Undefined = 0,
UserRead = 256,
UserWrite = 128,
UserExecute = 64,
GroupRead = 32,
GroupWrite = 16,
GroupExecute = 8,
OthersRead = 4,
OthersWrite = 2,
OthersExecute = 1,
}
impl Permission {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Undefined => "permission_undefined",
Self::UserRead => "USER_READ",
Self::UserWrite => "USER_WRITE",
Self::UserExecute => "USER_EXECUTE",
Self::GroupRead => "GROUP_READ",
Self::GroupWrite => "GROUP_WRITE",
Self::GroupExecute => "GROUP_EXECUTE",
Self::OthersRead => "OTHERS_READ",
Self::OthersWrite => "OTHERS_WRITE",
Self::OthersExecute => "OTHERS_EXECUTE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"permission_undefined" => Some(Self::Undefined),
"USER_READ" => Some(Self::UserRead),
"USER_WRITE" => Some(Self::UserWrite),
"USER_EXECUTE" => Some(Self::UserExecute),
"GROUP_READ" => Some(Self::GroupRead),
"GROUP_WRITE" => Some(Self::GroupWrite),
"GROUP_EXECUTE" => Some(Self::GroupExecute),
"OTHERS_READ" => Some(Self::OthersRead),
"OTHERS_WRITE" => Some(Self::OthersWrite),
"OTHERS_EXECUTE" => Some(Self::OthersExecute),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum DataType {
Undefined = 0,
Int8 = 1,
Uint8 = 2,
Int16 = 3,
Uint16 = 4,
Int32 = 5,
Uint32 = 6,
Int64 = 7,
Uint64 = 8,
Bool = 9,
Float = 257,
Double = 258,
Char = 513,
String = 514,
Bytes = 1177,
UserType = 1280,
}
impl DataType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Undefined => "data_type_undefined",
Self::Int8 => "INT8",
Self::Uint8 => "UINT8",
Self::Int16 => "INT16",
Self::Uint16 => "UINT16",
Self::Int32 => "INT32",
Self::Uint32 => "UINT32",
Self::Int64 => "INT64",
Self::Uint64 => "UINT64",
Self::Bool => "BOOL",
Self::Float => "FLOAT",
Self::Double => "DOUBLE",
Self::Char => "CHAR",
Self::String => "STRING",
Self::Bytes => "BYTES",
Self::UserType => "USER_TYPE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"data_type_undefined" => Some(Self::Undefined),
"INT8" => Some(Self::Int8),
"UINT8" => Some(Self::Uint8),
"INT16" => Some(Self::Int16),
"UINT16" => Some(Self::Uint16),
"INT32" => Some(Self::Int32),
"UINT32" => Some(Self::Uint32),
"INT64" => Some(Self::Int64),
"UINT64" => Some(Self::Uint64),
"BOOL" => Some(Self::Bool),
"FLOAT" => Some(Self::Float),
"DOUBLE" => Some(Self::Double),
"CHAR" => Some(Self::Char),
"STRING" => Some(Self::String),
"BYTES" => Some(Self::Bytes),
"USER_TYPE" => Some(Self::UserType),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ParameterType {
ParamTypeUndefined = 0,
Input = 1,
Output = 16,
Parameter = 256,
ParameterVolatile = 257,
ParameterPersistent = 258,
}
impl ParameterType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::ParamTypeUndefined => "param_type_undefined",
Self::Input => "INPUT",
Self::Output => "OUTPUT",
Self::Parameter => "PARAMETER",
Self::ParameterVolatile => "PARAMETER_VOLATILE",
Self::ParameterPersistent => "PARAMETER_PERSISTENT",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"param_type_undefined" => Some(Self::ParamTypeUndefined),
"INPUT" => Some(Self::Input),
"OUTPUT" => Some(Self::Output),
"PARAMETER" => Some(Self::Parameter),
"PARAMETER_VOLATILE" => Some(Self::ParameterVolatile),
"PARAMETER_PERSISTENT" => Some(Self::ParameterPersistent),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum StatusCode {
Ok = 0,
ReadOnlyMode = 1,
Failed = 65280,
FailedToDecode = 4096,
SubListIsFull = 4352,
WrongParameterPath = 4608,
FailedToSetRequestedFrq = 4864,
FailedToOpenFile = 5120,
GroupListIsFull = 5376,
WrongPassword = 8448,
UserNotLoggedIn = 8704,
PermissionDenied = 8960,
}
impl StatusCode {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Ok => "OK",
Self::ReadOnlyMode => "READ_ONLY_MODE",
Self::Failed => "FAILED",
Self::FailedToDecode => "FAILED_TO_DECODE",
Self::SubListIsFull => "SUB_LIST_IS_FULL",
Self::WrongParameterPath => "WRONG_PARAMETER_PATH",
Self::FailedToSetRequestedFrq => "FAILED_TO_SET_REQUESTED_FRQ",
Self::FailedToOpenFile => "FAILED_TO_OPEN_FILE",
Self::GroupListIsFull => "GROUP_LIST_IS_FULL",
Self::WrongPassword => "WRONG_PASSWORD",
Self::UserNotLoggedIn => "USER_NOT_LOGGED_IN",
Self::PermissionDenied => "PERMISSION_DENIED",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"OK" => Some(Self::Ok),
"READ_ONLY_MODE" => Some(Self::ReadOnlyMode),
"FAILED" => Some(Self::Failed),
"FAILED_TO_DECODE" => Some(Self::FailedToDecode),
"SUB_LIST_IS_FULL" => Some(Self::SubListIsFull),
"WRONG_PARAMETER_PATH" => Some(Self::WrongParameterPath),
"FAILED_TO_SET_REQUESTED_FRQ" => Some(Self::FailedToSetRequestedFrq),
"FAILED_TO_OPEN_FILE" => Some(Self::FailedToOpenFile),
"GROUP_LIST_IS_FULL" => Some(Self::GroupListIsFull),
"WRONG_PASSWORD" => Some(Self::WrongPassword),
"USER_NOT_LOGGED_IN" => Some(Self::UserNotLoggedIn),
"PERMISSION_DENIED" => Some(Self::PermissionDenied),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ErrorLevel {
Undefined = 0,
Info = 1,
Warning = 2,
ForcedDisengage = 3,
Shutdown = 4,
EmergencyStop = 5,
}
impl ErrorLevel {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Undefined => "error_level_undefined",
Self::Info => "INFO",
Self::Warning => "WARNING",
Self::ForcedDisengage => "FORCED_DISENGAGE",
Self::Shutdown => "SHUTDOWN",
Self::EmergencyStop => "EMERGENCY_STOP",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"error_level_undefined" => Some(Self::Undefined),
"INFO" => Some(Self::Info),
"WARNING" => Some(Self::Warning),
"FORCED_DISENGAGE" => Some(Self::ForcedDisengage),
"SHUTDOWN" => Some(Self::Shutdown),
"EMERGENCY_STOP" => Some(Self::EmergencyStop),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum OffsetType {
Undefined = 0,
OffsetElements = 1,
OffsetBytes = 2,
OffsetBits = 3,
}
impl OffsetType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Undefined => "offset_type_undefined",
Self::OffsetElements => "OFFSET_ELEMENTS",
Self::OffsetBytes => "OFFSET_BYTES",
Self::OffsetBits => "OFFSET_BITS",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"offset_type_undefined" => Some(Self::Undefined),
"OFFSET_ELEMENTS" => Some(Self::OffsetElements),
"OFFSET_BYTES" => Some(Self::OffsetBytes),
"OFFSET_BITS" => Some(Self::OffsetBits),
_ => None,
}
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ParameterFlag {
LinkIsActive = 1,
OverwriteIsActive = 2,
}
impl ParameterFlag {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::LinkIsActive => "LINK_IS_ACTIVE",
Self::OverwriteIsActive => "OVERWRITE_IS_ACTIVE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"LINK_IS_ACTIVE" => Some(Self::LinkIsActive),
"OVERWRITE_IS_ACTIVE" => Some(Self::OverwriteIsActive),
_ => None,
}
}
}
impl Hash for RemoveGroupMsg {
const HASH: u32 = 0x7614c1ac;
}
impl Hash for ParameterTreeHashMsg {
const HASH: u32 = 0xc8cef26b;
}
impl Hash for OverwriteParameterMsg {
const HASH: u32 = 0x98505467;
}
impl Hash for ParameterOffset {
const HASH: u32 = 0x37d97249;
}
impl Hash for SetParameterMsg {
const HASH: u32 = 0xa78d07b6;
}
impl Hash for GroupStatusMsg {
const HASH: u32 = 0x67aafaff;
}
impl Hash for StatusMsg {
const HASH: u32 = 0xb2b3b41b;
}
impl Hash for Error {
const HASH: u32 = 0xcb54b842;
}
impl Hash for DataType {
const HASH: u32 = 0x62923b3a;
}
impl Hash for SaveMsg {
const HASH: u32 = 0xc965b56a;
}
impl Hash for LogoutMsg {
const HASH: u32 = 0xd796dcd5;
}
impl Hash for SessionTokenMsg {
const HASH: u32 = 0x7c3e91ab;
}
impl Hash for GroupParameterInfo {
const HASH: u32 = 0x1d5d6a0a;
}
impl Hash for LoginMsg {
const HASH: u32 = 0x0630d225;
}
impl Hash for Unit {
const HASH: u32 = 0x1f444f39;
}
impl Hash for ConsoleCmdMsg {
const HASH: u32 = 0x4efc6762;
}
impl Hash for ErrorList {
const HASH: u32 = 0xa63be891;
}
impl Hash for CreateGroupMsg {
const HASH: u32 = 0x9eab1b83;
}
impl Hash for SetParameterListMsg {
const HASH: u32 = 0xe1bd5231;
}
impl Hash for ParameterType {
const HASH: u32 = 0x2927648b;
}
impl Hash for ConsoleCmdListMsg {
const HASH: u32 = 0x96e4c2b0;
}
impl Hash for UserGroup {
const HASH: u32 = 0x651cf623;
}
impl Hash for ParameterMsg {
const HASH: u32 = 0x5815f142;
}
impl Hash for Header {
const HASH: u32 = 0x52e24278;
}
impl Hash for ReleaseParameterMsg {
const HASH: u32 = 0xbb43acc2;
}
impl Hash for GetParameterTreeMsg {
const HASH: u32 = 0x61d73753;
}
impl Hash for GetParameterMsg {
const HASH: u32 = 0x985f2c2f;
}
impl Hash for ParameterFlag {
const HASH: u32 = 0xbcb0202c;
}
impl Hash for GetParameterTreeHashMsg {
const HASH: u32 = 0x01711b24;
}
impl Hash for LoadMsg {
const HASH: u32 = 0xf173d6cc;
}
impl Hash for StatusCode {
const HASH: u32 = 0xd785e9fa;
}
impl Hash for GetSessionTokenMsg {
const HASH: u32 = 0x4ff6b6f7;
}
impl Hash for OffsetType {
const HASH: u32 = 0x74cbd84c;
}
impl Hash for ParameterListMsg {
const HASH: u32 = 0xadd954d9;
}
impl Hash for ParameterInfo {
const HASH: u32 = 0x52f7c2b8;
}
impl Hash for Permission {
const HASH: u32 = 0xbfdf653b;
}
impl Hash for RestoreSessionMsg {
const HASH: u32 = 0x8aef888a;
}
impl Hash for GroupMsg {
const HASH: u32 = 0xfe8efea8;
}
impl Hash for ParameterTreeMsg {
const HASH: u32 = 0xd31979bf;
}
impl Hash for ErrorLevel {
const HASH: u32 = 0x14838051;
}
impl Hash for GetParameterListMsg {
const HASH: u32 = 0x520608a5;
}