struct Murcure::Protos::UserStats
- Murcure::Protos::UserStats
- 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: :stats_only, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: false, packed: false}, 3 => {name: :certificates, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Array(Slice(UInt8))?, native: true, optional: true, repeated: true, default: nil, packed: false}, 4 => {name: :from_client, pb_type: UserStats::Stats, crystal_type: UserStats::Stats, cast_type: UserStats::Stats?, native: false, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :from_server, pb_type: UserStats::Stats, crystal_type: UserStats::Stats, cast_type: UserStats::Stats?, native: false, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :udp_packets, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :tcp_packets, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :udp_ping_avg, pb_type: :float, crystal_type: Float32, cast_type: Float32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :udp_ping_var, pb_type: :float, crystal_type: Float32, cast_type: Float32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :tcp_ping_avg, pb_type: :float, crystal_type: Float32, cast_type: Float32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :tcp_ping_var, pb_type: :float, crystal_type: Float32, cast_type: Float32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :version, pb_type: Version, crystal_type: Version, cast_type: Version?, native: false, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :celt_versions, pb_type: :int32, crystal_type: Int32, cast_type: Array(Int32)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 14 => {name: :address, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 15 => {name: :bandwidth, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 16 => {name: :onlinesecs, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 17 => {name: :idlesecs, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 18 => {name: :strong_certificate, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: false, packed: false}, 19 => {name: :opus, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: false, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Constructors
- .new(buf : Protobuf::Buffer)
- .new(session : UInt32 | Nil = nil, stats_only : Bool | Nil = false.as(Bool), certificates : Array(Slice(UInt8)) | Nil = nil, from_client : UserStats::Stats | Nil = nil, from_server : UserStats::Stats | Nil = nil, udp_packets : UInt32 | Nil = nil, tcp_packets : UInt32 | Nil = nil, udp_ping_avg : Float32 | Nil = nil, udp_ping_var : Float32 | Nil = nil, tcp_ping_avg : Float32 | Nil = nil, tcp_ping_var : Float32 | Nil = nil, version : Version | Nil = nil, celt_versions : Array(Int32) | Nil = nil, address : Slice(UInt8) | Nil = nil, bandwidth : UInt32 | Nil = nil, onlinesecs : UInt32 | Nil = nil, idlesecs : UInt32 | Nil = nil, strong_certificate : Bool | Nil = false.as(Bool), opus : Bool | Nil = false.as(Bool))
Class Method Summary
Instance Method Summary
- #[](key : String)
- #address : Slice(UInt8) | Nil
- #address=(address : Slice(UInt8) | Nil)
- #bandwidth : UInt32 | Nil
- #bandwidth=(bandwidth : UInt32 | Nil)
- #celt_versions : Array(Int32) | Nil
- #celt_versions=(celt_versions : Array(Int32) | Nil)
- #certificates : Array(Slice(UInt8)) | Nil
- #certificates=(certificates : Array(Slice(UInt8)) | Nil)
- #from_client : UserStats::Stats | Nil
- #from_client=(from_client : UserStats::Stats | Nil)
- #from_server : UserStats::Stats | Nil
- #from_server=(from_server : UserStats::Stats | Nil)
- #idlesecs : UInt32 | Nil
- #idlesecs=(idlesecs : UInt32 | Nil)
- #onlinesecs : UInt32 | Nil
- #onlinesecs=(onlinesecs : UInt32 | Nil)
- #opus : Bool | Nil
- #opus=(opus : Bool | Nil)
- #session : UInt32 | Nil
- #session=(session : UInt32 | Nil)
- #stats_only : Bool | Nil
- #stats_only=(stats_only : Bool | Nil)
- #strong_certificate : Bool | Nil
- #strong_certificate=(strong_certificate : Bool | Nil)
- #tcp_packets : UInt32 | Nil
- #tcp_packets=(tcp_packets : UInt32 | Nil)
- #tcp_ping_avg : Float32 | Nil
- #tcp_ping_avg=(tcp_ping_avg : Float32 | Nil)
- #tcp_ping_var : Float32 | Nil
- #tcp_ping_var=(tcp_ping_var : Float32 | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #udp_packets : UInt32 | Nil
- #udp_packets=(udp_packets : UInt32 | Nil)
- #udp_ping_avg : Float32 | Nil
- #udp_ping_avg=(udp_ping_avg : Float32 | Nil)
- #udp_ping_var : Float32 | Nil
- #udp_ping_var=(udp_ping_var : Float32 | Nil)
- #version : Version | Nil
- #version=(version : Version | Nil)
Constructor Detail
def self.new(session : UInt32 | Nil = nil, stats_only : Bool | Nil = false.as(Bool), certificates : Array(Slice(UInt8)) | Nil = nil, from_client : UserStats::Stats | Nil = nil, from_server : UserStats::Stats | Nil = nil, udp_packets : UInt32 | Nil = nil, tcp_packets : UInt32 | Nil = nil, udp_ping_avg : Float32 | Nil = nil, udp_ping_var : Float32 | Nil = nil, tcp_ping_avg : Float32 | Nil = nil, tcp_ping_var : Float32 | Nil = nil, version : Version | Nil = nil, celt_versions : Array(Int32) | Nil = nil, address : Slice(UInt8) | Nil = nil, bandwidth : UInt32 | Nil = nil, onlinesecs : UInt32 | Nil = nil, idlesecs : UInt32 | Nil = nil, strong_certificate : Bool | Nil = false.as(Bool), opus : Bool | Nil = false.as(Bool))
#