struct Murcure::Protos::ChannelState

Included Modules

Defined in:

murcure/utils/protos.cr

Constant Summary

FIELDS = {1 => {name: :channel_id, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :parent, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :links, pb_type: :uint32, crystal_type: UInt32, cast_type: Array(UInt32)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 5 => {name: :description, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :links_add, pb_type: :uint32, crystal_type: UInt32, cast_type: Array(UInt32)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 7 => {name: :links_remove, pb_type: :uint32, crystal_type: UInt32, cast_type: Array(UInt32)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 8 => {name: :temporary, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: false, packed: false}, 9 => {name: :position, pb_type: :int32, crystal_type: Int32, cast_type: Int32?, native: true, optional: true, repeated: false, default: 0, packed: false}, 10 => {name: :description_hash, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :max_users, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, 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(buf : Protobuf::Buffer) #

def self.new(channel_id : UInt32 | Nil = nil, parent : UInt32 | Nil = nil, name : String | Nil = nil, links : Array(UInt32) | Nil = nil, description : String | Nil = nil, links_add : Array(UInt32) | Nil = nil, links_remove : Array(UInt32) | Nil = nil, temporary : Bool | Nil = false.as(Bool), position : Int32 | Nil = 0.as(Int32), description_hash : Slice(UInt8) | Nil = nil, max_users : UInt32 | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def channel_id : UInt32 | Nil #

def channel_id=(channel_id : UInt32 | Nil) #

def description : String | Nil #

def description=(description : String | Nil) #

def description_hash : Slice(UInt8) | Nil #

def description_hash=(description_hash : Slice(UInt8) | Nil) #

def links : Array(UInt32) | Nil #

def links=(links : Array(UInt32) | Nil) #

def links_add : Array(UInt32) | Nil #

def links_add=(links_add : Array(UInt32) | Nil) #

def links_remove : Array(UInt32) | Nil #

def links_remove=(links_remove : Array(UInt32) | Nil) #

def max_users : UInt32 | Nil #

def max_users=(max_users : UInt32 | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def parent : UInt32 | Nil #

def parent=(parent : UInt32 | Nil) #

def position : Int32 | Nil #

def position=(position : Int32 | Nil) #

def temporary : Bool | Nil #

def temporary=(temporary : Bool | Nil) #

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

def to_protobuf #