struct Murcure::Protos::ACL::ChanGroup

Included Modules

Defined in:

murcure/utils/protos.cr

Constant Summary

FIELDS = {1 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 2 => {name: :inherited, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: true, packed: false}, 3 => {name: :inherit, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: true, packed: false}, 4 => {name: :inheritable, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: true, packed: false}, 5 => {name: :add, pb_type: :uint32, crystal_type: UInt32, cast_type: Array(UInt32)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 6 => {name: :remove, pb_type: :uint32, crystal_type: UInt32, cast_type: Array(UInt32)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 7 => {name: :inherited_members, pb_type: :uint32, crystal_type: UInt32, cast_type: Array(UInt32)?, native: true, optional: true, repeated: true, 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(name : String, inherited : Bool | Nil = true.as(Bool), inherit : Bool | Nil = true.as(Bool), inheritable : Bool | Nil = true.as(Bool), add : Array(UInt32) | Nil = nil, remove : Array(UInt32) | Nil = nil, inherited_members : Array(UInt32) | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def add : Array(UInt32) | Nil #

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

def inherit : Bool | Nil #

def inherit=(inherit : Bool | Nil) #

def inheritable : Bool | Nil #

def inheritable=(inheritable : Bool | Nil) #

def inherited : Bool | Nil #

def inherited=(inherited : Bool | Nil) #

def inherited_members : Array(UInt32) | Nil #

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

def name : String #

def name=(name : String) #

def remove : Array(UInt32) | Nil #

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

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

def to_protobuf #