struct Protobuf::CodeGeneratorRequest::FileDescriptorProto

Included Modules

Defined in:

protobuf/generator.cr

Constant Summary

FIELDS = {1 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :package, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :dependency, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 4 => {name: :message_type, pb_type: CodeGeneratorRequest::DescriptorProto, crystal_type: CodeGeneratorRequest::DescriptorProto, cast_type: Array(CodeGeneratorRequest::DescriptorProto)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 5 => {name: :enum_type, pb_type: CodeGeneratorRequest::EnumDescriptorProto, crystal_type: CodeGeneratorRequest::EnumDescriptorProto, cast_type: Array(CodeGeneratorRequest::EnumDescriptorProto)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 6 => {name: :service, pb_type: CodeGeneratorRequest::ServiceDescriptorProto, crystal_type: CodeGeneratorRequest::ServiceDescriptorProto, cast_type: Array(CodeGeneratorRequest::ServiceDescriptorProto)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 12 => {name: :syntax, pb_type: :string, crystal_type: String, cast_type: String?, 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

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

Macros inherited from module Protobuf::Message

_add_field(tag, name, pb_type, options = {} of Symbol => Bool) _add_field, _generate_decoder(pbVer) _generate_decoder, _generate_encoder(pbVer) _generate_encoder, _generate_getters_setters _generate_getters_setters, _generate_hash_getters _generate_hash_getters, contract(&blk) contract, contract_of(syntax, &blk) contract_of, extensions(range) extensions, optional(name, type, tag, default = nil, repeated = false, packed = false) optional, repeated(name, type, tag, packed = false) repeated, required(name, type, tag, default = nil) required

Constructor Detail

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

def self.new(name : String | Nil = nil, package : String | Nil = nil, dependency : Array(String) | Nil = nil, message_type : Array(CodeGeneratorRequest::DescriptorProto) | Nil = nil, enum_type : Array(CodeGeneratorRequest::EnumDescriptorProto) | Nil = nil, service : Array(CodeGeneratorRequest::ServiceDescriptorProto) | Nil = nil, syntax : String | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def crystal_ns #

[View source]
def dependency : Array(String) | Nil #

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

def enum_type : Array(CodeGeneratorRequest::EnumDescriptorProto) | Nil #

def enum_type=(enum_type : Array(CodeGeneratorRequest::EnumDescriptorProto) | Nil) #

def message_type : Array(CodeGeneratorRequest::DescriptorProto) | Nil #

def message_type=(message_type : Array(CodeGeneratorRequest::DescriptorProto) | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def package : String | Nil #

def package=(package : String | Nil) #

def service : Array(CodeGeneratorRequest::ServiceDescriptorProto) | Nil #

def service=(service : Array(CodeGeneratorRequest::ServiceDescriptorProto) | Nil) #

def syntax : String | Nil #

def syntax=(syntax : String | Nil) #

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

def to_protobuf #