struct Client::DeviceGroupDescription

Included Modules

Defined in:

pb-Client/CATS_ExtStatus.pb.cr

Constant Summary

FIELDS = {1 => {name: :group, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :custom_group, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :device_state, pb_type: DeviceState, crystal_type: DeviceState, cast_type: Array(DeviceState)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 4 => {name: :hgroup_type, pb_type: DeviceGroupDescription::GroupType, crystal_type: DeviceGroupDescription::GroupType, cast_type: DeviceGroupDescription::GroupType?, native: false, 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(buf : Protobuf::Buffer) #

def self.new(group : String | Nil = nil, custom_group : Bool | Nil = nil, device_state : Array(DeviceState) | Nil = nil, hgroup_type : DeviceGroupDescription::GroupType | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def custom_group : Bool | Nil #

def custom_group=(custom_group : Bool | Nil) #

def device_state : Array(DeviceState) | Nil #

def device_state=(device_state : Array(DeviceState) | Nil) #

def group : String | Nil #

def group=(group : String | Nil) #

def hgroup_type : DeviceGroupDescription::GroupType | Nil #

def hgroup_type=(hgroup_type : DeviceGroupDescription::GroupType | Nil) #

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

def to_protobuf #