struct Facebook::Proto::BusinessImage

Included Modules

Defined in:

cli/proto/facebook/BusinessImage.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: :creation_time, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime?, native: false, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :hash, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :height, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :url_128, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :width, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :creative_folder_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :validation_ad_placements, 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)
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, creation_time : Datetime | Nil = nil, hash : String | Nil = nil, height : Int64 | Nil = nil, name : String | Nil = nil, url : String | Nil = nil, url_128 : String | Nil = nil, width : Int64 | Nil = nil, creative_folder_id : String | Nil = nil, validation_ad_placements : Array(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 creation_time : Datetime | Nil #

def creation_time=(creation_time : Datetime | Nil) #

def creative_folder_id : String | Nil #

def creative_folder_id=(creative_folder_id : String | Nil) #

def hash : String | Nil #
Description copied from class Object

Generates an UInt64 hash value for this object.

This method must have the property that a == b implies a.hash == b.hash.

The hash value is used along with == by the Hash class to determine if two objects reference the same hash key.

Subclasses must not override this method. Instead, they must define hash(hasher), though usually the macro def_hash can be used to generate this method.


def hash=(hash : String | Nil) #

def height : Int64 | Nil #

def height=(height : Int64 | Nil) #

def id : String | Nil #

def id=(id : String | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def to_hash #

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

def to_protobuf #

def url : String | Nil #

def url=(url : String | Nil) #

def url_128 : String | Nil #

def url_128=(url_128 : String | Nil) #

def validation_ad_placements : Array(String) | Nil #

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

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

def width : Int64 | Nil #

def width=(width : Int64 | Nil) #