struct Orc::Proto::EncryptionVariant

Included Modules

Defined in:

orc/definition/orc.pb.cr

Constant Summary

FIELDS = {1 => {name: :root, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :key, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :encrypted_key, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :stripe_statistics, pb_type: Stream, crystal_type: Stream, cast_type: Array(Stream)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 5 => {name: :file_statistics, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

def self.new(root : UInt32 | Nil = nil, key : UInt32 | Nil = nil, encrypted_key : Slice(UInt8) | Nil = nil, stripe_statistics : Array(Stream) | Nil = nil, file_statistics : Slice(UInt8) | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def encrypted_key : Slice(UInt8) | Nil #

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

def file_statistics : Slice(UInt8) | Nil #

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

def key : UInt32 | Nil #

def key=(key : UInt32 | Nil) #

def root : UInt32 | Nil #

def root=(root : UInt32 | Nil) #

def stripe_statistics : Array(Stream) | Nil #

def stripe_statistics=(stripe_statistics : Array(Stream) | Nil) #

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

def to_protobuf #