struct Facebook::Proto::AdImage
- Facebook::Proto::AdImage
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
cli/proto/facebook/AdImage.pb.crConstant 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
- .new(buf : Protobuf::Buffer)
- .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)
- .new(pull : JSON::PullParser)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #[]=(key : String, val)
- #[]?(key : String)
- #account_id : String | Nil
- #account_id=(account_id : String | Nil)
- #created_time : Datetime | Nil
- #created_time=(created_time : Datetime | Nil)
- #creatives : Array(String) | Nil
- #creatives=(creatives : Array(String) | Nil)
- #creatives=(creatives : Array(String) | Nil)
-
#hash : String | Nil
Generates an
UInt64
hash value for this object. - #hash=(hash : String | Nil)
- #height : Int64 | Nil
- #height=(height : Int64 | Nil)
- #id : String | Nil
- #id=(id : String | Nil)
- #is_associated_creatives_in_adgroups : Bool | Nil
- #is_associated_creatives_in_adgroups=(is_associated_creatives_in_adgroups : Bool | Nil)
- #name : String | Nil
- #name=(name : String | Nil)
- #original_height : Int64 | Nil
- #original_height=(original_height : Int64 | Nil)
- #original_width : Int64 | Nil
- #original_width=(original_width : Int64 | Nil)
- #permalink_url : String | Nil
- #permalink_url=(permalink_url : String | Nil)
- #status : String | Nil
- #status=(status : String | Nil)
- #to_hash
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #updated_time : Datetime | Nil
- #updated_time=(updated_time : Datetime | Nil)
- #url : String | Nil
- #url=(url : String | Nil)
- #url_128 : String | Nil
- #url_128=(url_128 : String | Nil)
- #width : Int64 | Nil
- #width=(width : Int64 | Nil)
Constructor Detail
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)
#
Class Method Detail
Instance Method Detail
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.