Nats::MsgProto
Inherits Protobuf::Message < Struct < Value < Object
Constants
FIELDS = {1 => {name: :sequence, pb_type: :uint64, crystal_type: UInt64, cast_type: UInt64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :subject, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :reply, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :data, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :timestamp, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :redelivered, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :redelivery_count, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :crc32, 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(sequence : UInt64 | Nil = nil, subject : String | Nil = nil, reply : String | Nil = nil, data : Slice(UInt8) | Nil = nil, timestamp : Int64 | Nil = nil, redelivered : Bool | Nil = nil, redelivery_count : UInt32 | Nil = nil, crc32 : UInt32 | Nil = nil)
Class methods
from_protobuf(io)
Instance methods
[](key : String)
crc32
crc32=(crc32 : UInt32 | Nil)
data
data=(data : Slice(UInt8) | Nil)
redelivered
redelivered=(redelivered : Bool | Nil)
redelivery_count
redelivery_count=(redelivery_count : UInt32 | Nil)
reply
reply=(reply : String | Nil)
sequence
sequence=(sequence : UInt64 | Nil)
subject
subject=(subject : String | Nil)
timestamp
timestamp=(timestamp : Int64 | Nil)
to_protobuf(io : IO, embedded = false)
to_protobuf