struct Murcure::Protos::UserState
- Murcure::Protos::UserState
- Struct
- Value
- Object
Included Modules
- Protobuf::Message
Defined in:
murcure/utils/protos.crConstant Summary
-
FIELDS =
{1 => {name: :session, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :actor, 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: :user_id, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :channel_id, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :mute, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :deaf, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :suppress, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :self_mute, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :self_deaf, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :texture, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :plugin_context, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :plugin_identity, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 14 => {name: :comment, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 15 => {name: :hash, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 16 => {name: :comment_hash, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 17 => {name: :texture_hash, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 18 => {name: :priority_speaker, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 19 => {name: :recording, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Constructors
- .new(buf : Protobuf::Buffer)
- .new(session : UInt32 | Nil = nil, actor : UInt32 | Nil = nil, name : String | Nil = nil, user_id : UInt32 | Nil = nil, channel_id : UInt32 | Nil = nil, mute : Bool | Nil = nil, deaf : Bool | Nil = nil, suppress : Bool | Nil = nil, self_mute : Bool | Nil = nil, self_deaf : Bool | Nil = nil, texture : Slice(UInt8) | Nil = nil, plugin_context : Slice(UInt8) | Nil = nil, plugin_identity : String | Nil = nil, comment : String | Nil = nil, hash : String | Nil = nil, comment_hash : Slice(UInt8) | Nil = nil, texture_hash : Slice(UInt8) | Nil = nil, priority_speaker : Bool | Nil = nil, recording : Bool | Nil = nil)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #actor : UInt32 | Nil
- #actor=(actor : UInt32 | Nil)
- #channel_id : UInt32 | Nil
- #channel_id=(channel_id : UInt32 | Nil)
- #comment : String | Nil
- #comment=(comment : String | Nil)
- #comment_hash : Slice(UInt8) | Nil
- #comment_hash=(comment_hash : Slice(UInt8) | Nil)
- #deaf : Bool | Nil
- #deaf=(deaf : Bool | Nil)
-
#hash : String | Nil
Generates an
UInt64
hash value for this object. - #hash=(hash : String | Nil)
- #mute : Bool | Nil
- #mute=(mute : Bool | Nil)
- #name : String | Nil
- #name=(name : String | Nil)
- #plugin_context : Slice(UInt8) | Nil
- #plugin_context=(plugin_context : Slice(UInt8) | Nil)
- #plugin_identity : String | Nil
- #plugin_identity=(plugin_identity : String | Nil)
- #priority_speaker : Bool | Nil
- #priority_speaker=(priority_speaker : Bool | Nil)
- #recording : Bool | Nil
- #recording=(recording : Bool | Nil)
- #self_deaf : Bool | Nil
- #self_deaf=(self_deaf : Bool | Nil)
- #self_mute : Bool | Nil
- #self_mute=(self_mute : Bool | Nil)
- #session : UInt32 | Nil
- #session=(session : UInt32 | Nil)
- #suppress : Bool | Nil
- #suppress=(suppress : Bool | Nil)
- #texture : Slice(UInt8) | Nil
- #texture=(texture : Slice(UInt8) | Nil)
- #texture_hash : Slice(UInt8) | Nil
- #texture_hash=(texture_hash : Slice(UInt8) | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #user_id : UInt32 | Nil
- #user_id=(user_id : UInt32 | Nil)
Constructor Detail
def self.new(session : UInt32 | Nil = nil, actor : UInt32 | Nil = nil, name : String | Nil = nil, user_id : UInt32 | Nil = nil, channel_id : UInt32 | Nil = nil, mute : Bool | Nil = nil, deaf : Bool | Nil = nil, suppress : Bool | Nil = nil, self_mute : Bool | Nil = nil, self_deaf : Bool | Nil = nil, texture : Slice(UInt8) | Nil = nil, plugin_context : Slice(UInt8) | Nil = nil, plugin_identity : String | Nil = nil, comment : String | Nil = nil, hash : String | Nil = nil, comment_hash : Slice(UInt8) | Nil = nil, texture_hash : Slice(UInt8) | Nil = nil, priority_speaker : Bool | Nil = nil, recording : Bool | Nil = nil)
#
Class Method Detail
Instance Method Detail
def hash : String | Nil
#
Description copied from class Object
Generates an UInt64
hash value for this object.
This method must have the property that a == b
implies a.hash == b.hash
.
The hash value is used along with ==
by the Hash
class to determine if two objects
reference the same hash key.
Subclasses must not override this method. Instead, they must define hash(hasher)
,
though usually the macro def_hash
can be used to generate this method.