struct TwitterAds::Proto::MediaLibrary

Included Modules

Defined in:

twitter-ads/proto/media_library.pb.cr

Constant Summary

FIELDS = {1 => {name: :tweeted, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :duration, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :file_name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :description, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :media_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :poster_media_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :poster_media_key, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :media_key, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :created_at, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :media_status, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :title, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :media_type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 14 => {name: :aspect_ratio, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 15 => {name: :updated_at, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 16 => {name: :deleted, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 17 => {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(tweeted : Bool | Nil = nil, duration : Int64 | Nil = nil, name : String | Nil = nil, file_name : String | Nil = nil, description : String | Nil = nil, media_url : String | Nil = nil, poster_media_url : String | Nil = nil, poster_media_key : String | Nil = nil, media_key : String | Nil = nil, created_at : String | Nil = nil, media_status : String | Nil = nil, title : String | Nil = nil, media_type : String | Nil = nil, aspect_ratio : String | Nil = nil, updated_at : String | Nil = nil, deleted : Bool | 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 aspect_ratio : String | Nil #

def aspect_ratio=(aspect_ratio : String | Nil) #

def created_at : String | Nil #

def created_at=(created_at : String | Nil) #

def deleted : Bool | Nil #

def deleted=(deleted : Bool | Nil) #

def description : String | Nil #

def description=(description : String | Nil) #

def duration : Int64 | Nil #

def duration=(duration : Int64 | Nil) #

def file_name : String | Nil #

def file_name=(file_name : String | Nil) #

def media_key : String | Nil #

def media_key=(media_key : String | Nil) #

def media_status : String | Nil #

def media_status=(media_status : String | Nil) #

def media_type : String | Nil #

def media_type=(media_type : String | Nil) #

def media_url : String | Nil #

def media_url=(media_url : String | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def poster_media_key : String | Nil #

def poster_media_key=(poster_media_key : String | Nil) #

def poster_media_url : String | Nil #

def poster_media_url=(poster_media_url : 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 tweeted : Bool | Nil #

def tweeted=(tweeted : Bool | Nil) #

def updated_at : String | Nil #

def updated_at=(updated_at : String | Nil) #