struct Nats::MsgProto

Included Modules

Defined in:

protobufs/protocol.pb.cr

Constant Summary

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

Class Method Summary

Instance Method Summary

Instance methods inherited from module Protobuf::Message

to_slice : Bytes to_slice

Constructor Detail

def self.new(buf : Protobuf::Buffer) #

def self.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 Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def crc32 : UInt32 | Nil #

def crc32=(crc32 : UInt32 | Nil) #

def data : Slice(UInt8) | Nil #

def data=(data : Slice(UInt8) | Nil) #

def redelivered : Bool | Nil #

def redelivered=(redelivered : Bool | Nil) #

def redelivery_count : UInt32 | Nil #

def redelivery_count=(redelivery_count : UInt32 | Nil) #

def reply : String | Nil #

def reply=(reply : String | Nil) #

def sequence : UInt64 | Nil #

def sequence=(sequence : UInt64 | Nil) #

def subject : String | Nil #

def subject=(subject : String | Nil) #

def timestamp : Int64 | Nil #

def timestamp=(timestamp : Int64 | Nil) #

def to_protobuf(io : IO, embedded = false) #

def to_protobuf #