struct Orc::Proto::Type

Included Modules

Defined in:

orc/definition/orc.pb.cr

Constant Summary

FIELDS = {1 => {name: :kind, pb_type: Type::Kind, crystal_type: Type::Kind, cast_type: Type::Kind?, native: false, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :subtypes, pb_type: :uint32, crystal_type: UInt32, cast_type: Array(UInt32)?, native: true, optional: true, repeated: true, default: nil, packed: true}, 3 => {name: :field_names, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 4 => {name: :maximum_length, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :precision, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :scale, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :attributes, pb_type: StringPair, crystal_type: StringPair, cast_type: Array(StringPair)?, native: false, optional: true, repeated: true, 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(kind : Type::Kind | Nil = nil, subtypes : Array(UInt32) | Nil = nil, field_names : Array(String) | Nil = nil, maximum_length : UInt32 | Nil = nil, precision : UInt32 | Nil = nil, scale : UInt32 | Nil = nil, attributes : Array(StringPair) | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def attributes : Array(StringPair) | Nil #

def attributes=(attributes : Array(StringPair) | Nil) #

def field_names : Array(String) | Nil #

def field_names=(field_names : Array(String) | Nil) #

def kind : Type::Kind | Nil #

def kind=(kind : Type::Kind | Nil) #

def maximum_length : UInt32 | Nil #

def maximum_length=(maximum_length : UInt32 | Nil) #

def precision : UInt32 | Nil #

def precision=(precision : UInt32 | Nil) #

def scale : UInt32 | Nil #

def scale=(scale : UInt32 | Nil) #

def subtypes : Array(UInt32) | Nil #

def subtypes=(subtypes : Array(UInt32) | Nil) #

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

def to_protobuf #