struct Facebook::Proto::AdImage

Included Modules

Defined in:

cli/proto/facebook/AdImage.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: :account_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :created_time, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime?, native: false, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :creatives, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 5 => {name: :hash, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :height, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :is_associated_creatives_in_adgroups, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :original_height, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :original_width, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :permalink_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :status, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :updated_time, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime?, native: false, optional: true, repeated: false, default: nil, packed: false}, 14 => {name: :url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 15 => {name: :url_128, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 16 => {name: :width, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, 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, account_id : String | Nil = nil, created_time : Datetime | Nil = nil, creatives : Array(String) | Nil = nil, hash : String | Nil = nil, height : Int64 | Nil = nil, is_associated_creatives_in_adgroups : Bool | Nil = nil, name : String | Nil = nil, original_height : Int64 | Nil = nil, original_width : Int64 | Nil = nil, permalink_url : String | Nil = nil, status : String | Nil = nil, updated_time : Datetime | Nil = nil, url : String | Nil = nil, url_128 : String | Nil = nil, width : Int64 | 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 account_id : String | Nil #

def account_id=(account_id : String | Nil) #

def created_time : Datetime | Nil #

def created_time=(created_time : Datetime | Nil) #

def creatives : Array(String) | Nil #

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

def creatives=(creatives : Array(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 is_associated_creatives_in_adgroups : Bool | Nil #

def is_associated_creatives_in_adgroups=(is_associated_creatives_in_adgroups : Bool | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def original_height : Int64 | Nil #

def original_height=(original_height : Int64 | Nil) #

def original_width : Int64 | Nil #

def original_width=(original_width : Int64 | Nil) #

def permalink_url : String | Nil #

def permalink_url=(permalink_url : String | Nil) #

def status : String | Nil #

def status=(status : String | Nil) #

def to_hash #

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

def to_protobuf #

def updated_time : Datetime | Nil #

def updated_time=(updated_time : Datetime | Nil) #

def url : String | Nil #

def url=(url : String | Nil) #

def url_128 : String | Nil #

def url_128=(url_128 : String | Nil) #

def width : Int64 | Nil #

def width=(width : Int64 | Nil) #