struct Apps::DeviceDescription

Included Modules

Defined in:

pb-Apps/CATS_Helper.pb.cr

Constant 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

Class Method Summary

Instance Method Summary

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) #

def self.new(buf : Protobuf::Buffer) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def device_comment : String | Nil #

def device_comment=(device_comment : String | Nil) #

def device_id : String #

def device_id=(device_id : String) #

def device_id_full : String | Nil #

def device_id_full=(device_id_full : String | Nil) #

def device_name : String | Nil #

def device_name=(device_name : String | Nil) #

def device_type : DeviceDescription::DeviceType #

def device_type=(device_type : DeviceDescription::DeviceType) #

def to_protobuf(io : IO, embedded = false) #

def to_protobuf #