struct Apps::Google::FieldDescriptorProto

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}, 3 => {name: :number, pb_type: :int32, crystal_type: Int32, cast_type: Int32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :label, pb_type: FieldDescriptorProto::Label, crystal_type: FieldDescriptorProto::Label, cast_type: FieldDescriptorProto::Label?, native: false, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :type, pb_type: FieldDescriptorProto::Type, crystal_type: FieldDescriptorProto::Type, cast_type: FieldDescriptorProto::Type?, native: false, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :type_name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :extendee, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :default_value, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :oneof_index, pb_type: :int32, crystal_type: Int32, cast_type: Int32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :json_name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :options, pb_type: FieldOptions, crystal_type: FieldOptions, cast_type: FieldOptions?, native: false, 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, number : Int32 | Nil = nil, label : FieldDescriptorProto::Label | Nil = nil, type : FieldDescriptorProto::Type | Nil = nil, type_name : String | Nil = nil, extendee : String | Nil = nil, default_value : String | Nil = nil, oneof_index : Int32 | Nil = nil, json_name : String | Nil = nil, options : FieldOptions | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def default_value : String | Nil #

def default_value=(default_value : String | Nil) #

def extendee : String | Nil #

def extendee=(extendee : String | Nil) #

def json_name : String | Nil #

def json_name=(json_name : String | Nil) #

def label : FieldDescriptorProto::Label | Nil #

def label=(label : FieldDescriptorProto::Label | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def number : Int32 | Nil #

def number=(number : Int32 | Nil) #

def oneof_index : Int32 | Nil #

def oneof_index=(oneof_index : Int32 | Nil) #

def options : FieldOptions | Nil #

def options=(options : FieldOptions | Nil) #

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

def to_protobuf #

def type : FieldDescriptorProto::Type | Nil #

def type=(type : FieldDescriptorProto::Type | Nil) #

def type_name : String | Nil #

def type_name=(type_name : String | Nil) #