struct

TwitterAds::Proto::MediaLibrary

Inherits JSON::Serializable < Protobuf::Message < Struct < Value < Object

Constants

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

new(buf : Protobuf::Buffer)
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)
new(pull : JSON::PullParser)
new(*, __pull_for_json_serializable pull : JSON::PullParser)

Class methods

from_protobuf(io)

Instance methods

[](key : String)
[]=(key : String, val)
[]?(key : String)
account_id
account_id=(account_id : String | Nil)
aspect_ratio
aspect_ratio=(aspect_ratio : String | Nil)
created_at
created_at=(created_at : String | Nil)
deleted
deleted=(deleted : Bool | Nil)
description
description=(description : String | Nil)
duration
duration=(duration : Int64 | Nil)
file_name
file_name=(file_name : String | Nil)
media_key
media_key=(media_key : String | Nil)
media_status
media_status=(media_status : String | Nil)
media_type
media_type=(media_type : String | Nil)
media_url
media_url=(media_url : String | Nil)
name
name=(name : String | Nil)
poster_media_key
poster_media_key=(poster_media_key : String | Nil)
poster_media_url
poster_media_url=(poster_media_url : String | Nil)
title
title=(title : String | Nil)
to_hash
to_protobuf(io : IO, embedded = false)
to_protobuf
tweeted
tweeted=(tweeted : Bool | Nil)
updated_at
updated_at=(updated_at : String | Nil)