struct Apps::Google::FileDescriptorProto

Included Modules

Defined in:

pb-Apps/descriptor.pb.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}, 10 => {name: :public_dependency, pb_type: :int32, crystal_type: Int32, cast_type: Array(Int32)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 11 => {name: :weak_dependency, pb_type: :int32, crystal_type: Int32, cast_type: Array(Int32)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 4 => {name: :message_type, pb_type: DescriptorProto, crystal_type: DescriptorProto, cast_type: Array(DescriptorProto)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 5 => {name: :enum_type, pb_type: EnumDescriptorProto, crystal_type: EnumDescriptorProto, cast_type: Array(EnumDescriptorProto)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 6 => {name: :service, pb_type: ServiceDescriptorProto, crystal_type: ServiceDescriptorProto, cast_type: Array(ServiceDescriptorProto)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 7 => {name: :extension, pb_type: FieldDescriptorProto, crystal_type: FieldDescriptorProto, cast_type: Array(FieldDescriptorProto)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 8 => {name: :options, pb_type: FileOptions, crystal_type: FileOptions, cast_type: FileOptions?, native: false, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :source_code_info, pb_type: SourceCodeInfo, crystal_type: SourceCodeInfo, cast_type: SourceCodeInfo?, native: false, optional: true, repeated: false, 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

Constructor Detail

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

def self.new(name : String | Nil = nil, package : String | Nil = nil, dependency : Array(String) | Nil = nil, public_dependency : Array(Int32) | Nil = nil, weak_dependency : Array(Int32) | Nil = nil, message_type : Array(DescriptorProto) | Nil = nil, enum_type : Array(EnumDescriptorProto) | Nil = nil, service : Array(ServiceDescriptorProto) | Nil = nil, extension : Array(FieldDescriptorProto) | Nil = nil, options : FileOptions | Nil = nil, source_code_info : SourceCodeInfo | Nil = nil, syntax : String | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def dependency : Array(String) | Nil #

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

def enum_type : Array(EnumDescriptorProto) | Nil #

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

def extension : Array(FieldDescriptorProto) | Nil #

def extension=(extension : Array(FieldDescriptorProto) | Nil) #

def message_type : Array(DescriptorProto) | Nil #

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

def name : String | Nil #

def name=(name : String | Nil) #

def options : FileOptions | Nil #

def options=(options : FileOptions | Nil) #

def package : String | Nil #

def package=(package : String | Nil) #

def public_dependency : Array(Int32) | Nil #

def public_dependency=(public_dependency : Array(Int32) | Nil) #

def service : Array(ServiceDescriptorProto) | Nil #

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

def source_code_info : SourceCodeInfo | Nil #

def source_code_info=(source_code_info : SourceCodeInfo | Nil) #

def syntax : String | Nil #

def syntax=(syntax : String | Nil) #

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

def to_protobuf #

def weak_dependency : Array(Int32) | Nil #

def weak_dependency=(weak_dependency : Array(Int32) | Nil) #