struct Protobuf::CodeGeneratorRequest::FieldOptions

Included Modules

Defined in:

protobuf/generator.cr

Constant Summary

FIELDS = {2 => {name: :packed, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Fields = {} of String => Field

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Protobuf::Message

==(other : Protobuf::Message) ==

Constructor Detail

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

def self.new(packed : Bool | Nil = nil) #

def self.new(pull : JSON::PullParser) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def []=(key : String, val) #

def []?(key : String) #

def packed : Bool | Nil #

def packed=(packed : Bool | Nil) #

def to_hash #

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

def to_protobuf #