struct

Nats::ConnectRequest

Inherits Protobuf::Message < Struct < Value < Object

Constants

FIELDS = {1 => {name: :client_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :heartbeat_inbox, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :protocol, pb_type: :int32, crystal_type: Int32, cast_type: Int32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :conn_id, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :ping_interval, pb_type: :int32, crystal_type: Int32, cast_type: Int32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :ping_max_out, pb_type: :int32, crystal_type: Int32, cast_type: Int32?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)

Constructors

new(buf : Protobuf::Buffer)
new(client_id : String | Nil = nil, heartbeat_inbox : String | Nil = nil, protocol : Int32 | Nil = nil, conn_id : Slice(UInt8) | Nil = nil, ping_interval : Int32 | Nil = nil, ping_max_out : Int32 | Nil = nil)

Class methods

from_protobuf(io)

Instance methods

[](key : String)
client_id
client_id=(client_id : String | Nil)
conn_id
conn_id=(conn_id : Slice(UInt8) | Nil)
heartbeat_inbox
heartbeat_inbox=(heartbeat_inbox : String | Nil)
ping_interval
ping_interval=(ping_interval : Int32 | Nil)
ping_max_out
ping_max_out=(ping_max_out : Int32 | Nil)
protocol
protocol=(protocol : Int32 | Nil)
to_protobuf(io : IO, embedded = false)
to_protobuf