struct Facebook::Proto::BroadTargetingCategories

Included Modules

Defined in:

cli/proto/facebook/BroadTargetingCategories.pb.cr

Constant Summary

FIELDS = {1 => {name: :id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :category_description, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :parent_category, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :path, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 6 => {name: :size, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :source, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :type, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :type_name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :untranslated_name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :untranslated_parent_name, pb_type: :string, crystal_type: String, cast_type: String?, 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

Constructor Detail

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

def self.new(id : String | Nil = nil, category_description : String | Nil = nil, name : String | Nil = nil, parent_category : String | Nil = nil, path : Array(String) | Nil = nil, size : Int64 | Nil = nil, source : String | Nil = nil, type : Int64 | Nil = nil, type_name : String | Nil = nil, untranslated_name : String | Nil = nil, untranslated_parent_name : String | 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 category_description : String | Nil #

def category_description=(category_description : String | Nil) #

def id : String | Nil #

def id=(id : String | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def parent_category : String | Nil #

def parent_category=(parent_category : String | Nil) #

def path : Array(String) | Nil #

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

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

def size : Int64 | Nil #

def size=(size : Int64 | Nil) #

def source : String | Nil #

def source=(source : String | Nil) #

def to_hash #

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

def to_protobuf #

def type : Int64 | Nil #

def type=(type : Int64 | Nil) #

def type_name : String | Nil #

def type_name=(type_name : String | Nil) #

def untranslated_name : String | Nil #

def untranslated_name=(untranslated_name : String | Nil) #

def untranslated_parent_name : String | Nil #

def untranslated_parent_name=(untranslated_parent_name : String | Nil) #