class Apps::Google::DescriptorProto

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: :field, pb_type: FieldDescriptorProto, crystal_type: FieldDescriptorProto, cast_type: Array(FieldDescriptorProto)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 6 => {name: :extension, pb_type: FieldDescriptorProto, crystal_type: FieldDescriptorProto, cast_type: Array(FieldDescriptorProto)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 3 => {name: :nested_type, pb_type: DescriptorProto, crystal_type: DescriptorProto, cast_type: Array(DescriptorProto)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 4 => {name: :enum_type, pb_type: EnumDescriptorProto, crystal_type: EnumDescriptorProto, cast_type: Array(EnumDescriptorProto)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 5 => {name: :extension_range, pb_type: DescriptorProto::ExtensionRange, crystal_type: DescriptorProto::ExtensionRange, cast_type: Array(DescriptorProto::ExtensionRange)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 8 => {name: :oneof_decl, pb_type: OneofDescriptorProto, crystal_type: OneofDescriptorProto, cast_type: Array(OneofDescriptorProto)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 7 => {name: :options, pb_type: MessageOptions, crystal_type: MessageOptions, cast_type: MessageOptions?, native: false, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :reserved_range, pb_type: DescriptorProto::ReservedRange, crystal_type: DescriptorProto::ReservedRange, cast_type: Array(DescriptorProto::ReservedRange)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 10 => {name: :reserved_name, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, 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(name : String | Nil = nil, field : Array(FieldDescriptorProto) | Nil = nil, extension : Array(FieldDescriptorProto) | Nil = nil, nested_type : Array(DescriptorProto) | Nil = nil, enum_type : Array(EnumDescriptorProto) | Nil = nil, extension_range : Array(DescriptorProto::ExtensionRange) | Nil = nil, oneof_decl : Array(OneofDescriptorProto) | Nil = nil, options : MessageOptions | Nil = nil, reserved_range : Array(DescriptorProto::ReservedRange) | Nil = nil, reserved_name : Array(String) | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

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 extension_range : Array(DescriptorProto::ExtensionRange) | Nil #

def extension_range=(extension_range : Array(DescriptorProto::ExtensionRange) | Nil) #

def field : Array(FieldDescriptorProto) | Nil #

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

def name : String | Nil #

def name=(name : String | Nil) #

def nested_type : Array(DescriptorProto) | Nil #

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

def oneof_decl : Array(OneofDescriptorProto) | Nil #

def oneof_decl=(oneof_decl : Array(OneofDescriptorProto) | Nil) #

def options : MessageOptions | Nil #

def options=(options : MessageOptions | Nil) #

def reserved_name : Array(String) | Nil #

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

def reserved_range : Array(DescriptorProto::ReservedRange) | Nil #

def reserved_range=(reserved_range : Array(DescriptorProto::ReservedRange) | Nil) #

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

def to_protobuf #