struct MUX::DeviceDescription
- MUX::DeviceDescription
- Struct
- Value
- Object
Included Modules
- Protobuf::Message
Defined in:
pb-MUX/CATS_Helper.pb.crConstant Summary
-
FIELDS =
{1 => {name: :device_id, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 5 => {name: :device_id_full, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :device_type, pb_type: DeviceDescription::DeviceType, crystal_type: DeviceDescription::DeviceType, cast_type: DeviceDescription::DeviceType, native: false, optional: false, repeated: false, default: nil, packed: false}, 3 => {name: :device_name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :device_comment, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Constructors
- .new(device_id : String, device_type : DeviceDescription::DeviceType, device_id_full : String | Nil = nil, device_name : String | Nil = nil, device_comment : String | Nil = nil)
- .new(buf : Protobuf::Buffer)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #device_comment : String | Nil
- #device_comment=(device_comment : String | Nil)
- #device_id : String
- #device_id=(device_id : String)
- #device_id_full : String | Nil
- #device_id_full=(device_id_full : String | Nil)
- #device_name : String | Nil
- #device_name=(device_name : String | Nil)
- #device_type : DeviceDescription::DeviceType
- #device_type=(device_type : DeviceDescription::DeviceType)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
Constructor Detail
def self.new(device_id : String, device_type : DeviceDescription::DeviceType, device_id_full : String | Nil = nil, device_name : String | Nil = nil, device_comment : String | Nil = nil)
#