struct TwitterAds::Proto::CardsImageConversation

Included Modules

Defined in:

twitter-ads/proto/cards_image_conversation.pb.cr

Constant Summary

FIELDS = {1 => {name: :card_type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :card_uri, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :cover_image_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :cover_image_display_height, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :cover_image_display_width, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :created_at, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :deleted, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :image_display_height, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :image_display_width, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :media_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :updated_at, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :media_key, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 14 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 15 => {name: :first_cta, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 16 => {name: :first_cta_tweet, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 17 => {name: :second_cta, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 18 => {name: :second_cta_tweet, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 19 => {name: :third_cta, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 20 => {name: :third_cta_tweet, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 21 => {name: :fourth_cta, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 22 => {name: :fourth_cta_tweet, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 23 => {name: :thank_you_dest_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 24 => {name: :thank_you_display_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 25 => {name: :thank_you_shortened_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 26 => {name: :thank_you_text, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 27 => {name: :thank_you_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 28 => {name: :title, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 29 => {name: :account_id, 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(card_type : String | Nil = nil, card_uri : String | Nil = nil, cover_image_url : String | Nil = nil, cover_image_display_height : String | Nil = nil, cover_image_display_width : String | Nil = nil, created_at : String | Nil = nil, deleted : Bool | Nil = nil, id : String | Nil = nil, image_display_height : String | Nil = nil, image_display_width : String | Nil = nil, media_url : String | Nil = nil, updated_at : String | Nil = nil, media_key : String | Nil = nil, name : String | Nil = nil, first_cta : String | Nil = nil, first_cta_tweet : String | Nil = nil, second_cta : String | Nil = nil, second_cta_tweet : String | Nil = nil, third_cta : String | Nil = nil, third_cta_tweet : String | Nil = nil, fourth_cta : String | Nil = nil, fourth_cta_tweet : String | Nil = nil, thank_you_dest_url : String | Nil = nil, thank_you_display_url : String | Nil = nil, thank_you_shortened_url : String | Nil = nil, thank_you_text : String | Nil = nil, thank_you_url : String | Nil = nil, title : String | Nil = nil, account_id : 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 account_id : String | Nil #

def account_id=(account_id : String | Nil) #

def card_type : String | Nil #

def card_type=(card_type : String | Nil) #

def card_uri : String | Nil #

def card_uri=(card_uri : String | Nil) #

def cover_image_display_height : String | Nil #

def cover_image_display_height=(cover_image_display_height : String | Nil) #

def cover_image_display_width : String | Nil #

def cover_image_display_width=(cover_image_display_width : String | Nil) #

def cover_image_url : String | Nil #

def cover_image_url=(cover_image_url : String | Nil) #

def created_at : String | Nil #

def created_at=(created_at : String | Nil) #

def deleted : Bool | Nil #

def deleted=(deleted : Bool | Nil) #

def first_cta : String | Nil #

def first_cta=(first_cta : String | Nil) #

def first_cta_tweet : String | Nil #

def first_cta_tweet=(first_cta_tweet : String | Nil) #

def fourth_cta : String | Nil #

def fourth_cta=(fourth_cta : String | Nil) #

def fourth_cta_tweet : String | Nil #

def fourth_cta_tweet=(fourth_cta_tweet : String | Nil) #

def id : String | Nil #

def id=(id : String | Nil) #

def image_display_height : String | Nil #

def image_display_height=(image_display_height : String | Nil) #

def image_display_width : String | Nil #

def image_display_width=(image_display_width : String | Nil) #

def media_key : String | Nil #

def media_key=(media_key : String | Nil) #

def media_url : String | Nil #

def media_url=(media_url : String | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def second_cta : String | Nil #

def second_cta=(second_cta : String | Nil) #

def second_cta_tweet : String | Nil #

def second_cta_tweet=(second_cta_tweet : String | Nil) #

def thank_you_dest_url : String | Nil #

def thank_you_dest_url=(thank_you_dest_url : String | Nil) #

def thank_you_display_url : String | Nil #

def thank_you_display_url=(thank_you_display_url : String | Nil) #

def thank_you_shortened_url : String | Nil #

def thank_you_shortened_url=(thank_you_shortened_url : String | Nil) #

def thank_you_text : String | Nil #

def thank_you_text=(thank_you_text : String | Nil) #

def thank_you_url : String | Nil #

def thank_you_url=(thank_you_url : String | Nil) #

def third_cta : String | Nil #

def third_cta=(third_cta : String | Nil) #

def third_cta_tweet : String | Nil #

def third_cta_tweet=(third_cta_tweet : String | Nil) #

def title : String | Nil #

def title=(title : String | Nil) #

def to_hash #

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

def to_protobuf #

def updated_at : String | Nil #

def updated_at=(updated_at : String | Nil) #