struct Nats::MsgProto
- Nats::MsgProto
- Struct
- Value
- Object
Included Modules
Defined in:
protobufs/protocol.pb.crConstant 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
- .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 Method Summary
Instance Method Summary
- #[](key : String)
- #crc32 : UInt32 | Nil
- #crc32=(crc32 : UInt32 | Nil)
- #data : Slice(UInt8) | Nil
- #data=(data : Slice(UInt8) | Nil)
- #redelivered : Bool | Nil
- #redelivered=(redelivered : Bool | Nil)
- #redelivery_count : UInt32 | Nil
- #redelivery_count=(redelivery_count : UInt32 | Nil)
- #reply : String | Nil
- #reply=(reply : String | Nil)
- #sequence : UInt64 | Nil
- #sequence=(sequence : UInt64 | Nil)
- #subject : String | Nil
- #subject=(subject : String | Nil)
- #timestamp : Int64 | Nil
- #timestamp=(timestamp : Int64 | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
Instance methods inherited from module Protobuf::Message
to_slice : Bytes
to_slice
Constructor Detail
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)
#