struct Murcure::Protos::ChannelState
- Murcure::Protos::ChannelState
- Struct
- Value
- Object
Included Modules
- Protobuf::Message
Defined in:
murcure/utils/protos.crConstant 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
- .new(buf : Protobuf::Buffer)
- .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 Summary
Instance Method Summary
- #[](key : String)
- #channel_id : UInt32 | Nil
- #channel_id=(channel_id : UInt32 | Nil)
- #description : String | Nil
- #description=(description : String | Nil)
- #description_hash : Slice(UInt8) | Nil
- #description_hash=(description_hash : Slice(UInt8) | Nil)
- #links : Array(UInt32) | Nil
- #links=(links : Array(UInt32) | Nil)
- #links_add : Array(UInt32) | Nil
- #links_add=(links_add : Array(UInt32) | Nil)
- #links_remove : Array(UInt32) | Nil
- #links_remove=(links_remove : Array(UInt32) | Nil)
- #max_users : UInt32 | Nil
- #max_users=(max_users : UInt32 | Nil)
- #name : String | Nil
- #name=(name : String | Nil)
- #parent : UInt32 | Nil
- #parent=(parent : UInt32 | Nil)
- #position : Int32 | Nil
- #position=(position : Int32 | Nil)
- #temporary : Bool | Nil
- #temporary=(temporary : Bool | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
Constructor Detail
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)
#