struct Facebook::Proto::AdCreativeLinkData

Included Modules

Defined in:

cli/proto/facebook/AdCreativeLinkData.pb.cr

Constant Summary

FIELDS = {1 => {name: :additional_image_index, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :attachment_style, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :branded_content_shared_to_sponsor_status, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :branded_content_sponsor_page_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :caption, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :description, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :event_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :force_single_link, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :format_option, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :image_hash, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :link, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :message, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :multi_share_end_card, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 14 => {name: :multi_share_optimized, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 15 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 16 => {name: :offer_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 17 => {name: :page_welcome_message, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 18 => {name: :picture, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 19 => {name: :preferred_image_tags, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 20 => {name: :retailer_item_ids, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 21 => {name: :show_multiple_images, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 22 => {name: :use_flexible_image_aspect_ratio, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, 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(additional_image_index : Int64 | Nil = nil, attachment_style : String | Nil = nil, branded_content_shared_to_sponsor_status : String | Nil = nil, branded_content_sponsor_page_id : String | Nil = nil, caption : String | Nil = nil, description : String | Nil = nil, event_id : String | Nil = nil, force_single_link : Bool | Nil = nil, format_option : String | Nil = nil, image_hash : String | Nil = nil, link : String | Nil = nil, message : String | Nil = nil, multi_share_end_card : Bool | Nil = nil, multi_share_optimized : Bool | Nil = nil, name : String | Nil = nil, offer_id : String | Nil = nil, page_welcome_message : String | Nil = nil, picture : String | Nil = nil, preferred_image_tags : Array(String) | Nil = nil, retailer_item_ids : Array(String) | Nil = nil, show_multiple_images : Bool | Nil = nil, use_flexible_image_aspect_ratio : Bool | 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 additional_image_index : Int64 | Nil #

def additional_image_index=(additional_image_index : Int64 | Nil) #

def attachment_style : String | Nil #

def attachment_style=(attachment_style : String | Nil) #

def branded_content_shared_to_sponsor_status : String | Nil #

def branded_content_shared_to_sponsor_status=(branded_content_shared_to_sponsor_status : String | Nil) #

def branded_content_sponsor_page_id : String | Nil #

def branded_content_sponsor_page_id=(branded_content_sponsor_page_id : String | Nil) #

def caption : String | Nil #

def caption=(caption : String | Nil) #

def description : String | Nil #

def description=(description : String | Nil) #

def event_id : String | Nil #

def event_id=(event_id : String | Nil) #

def force_single_link : Bool | Nil #

def force_single_link=(force_single_link : Bool | Nil) #

def format_option : String | Nil #

def format_option=(format_option : String | Nil) #

def image_hash : String | Nil #

def image_hash=(image_hash : String | Nil) #

def link : String | Nil #

def link=(link : String | Nil) #

def message : String | Nil #

def message=(message : String | Nil) #

def multi_share_end_card : Bool | Nil #

def multi_share_end_card=(multi_share_end_card : Bool | Nil) #

def multi_share_optimized : Bool | Nil #

def multi_share_optimized=(multi_share_optimized : Bool | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def offer_id : String | Nil #

def offer_id=(offer_id : String | Nil) #

def page_welcome_message : String | Nil #

def page_welcome_message=(page_welcome_message : String | Nil) #

def picture : String | Nil #

def picture=(picture : String | Nil) #

def preferred_image_tags : Array(String) | Nil #

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

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

def retailer_item_ids : Array(String) | Nil #

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

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

def show_multiple_images : Bool | Nil #

def show_multiple_images=(show_multiple_images : Bool | Nil) #

def to_hash #

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

def to_protobuf #

def use_flexible_image_aspect_ratio : Bool | Nil #

def use_flexible_image_aspect_ratio=(use_flexible_image_aspect_ratio : Bool | Nil) #