struct
TwitterAds::Proto::MediaLibrary
- TwitterAds::Proto::MediaLibrary
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
twitter-ads/proto/media_library.pb.crConstant 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
- .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)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #[]=(key : String, val)
- #[]?(key : String)
- #account_id : String | Nil
- #account_id=(account_id : String | Nil)
- #aspect_ratio : String | Nil
- #aspect_ratio=(aspect_ratio : String | Nil)
- #created_at : String | Nil
- #created_at=(created_at : String | Nil)
- #deleted : Bool | Nil
- #deleted=(deleted : Bool | Nil)
- #description : String | Nil
- #description=(description : String | Nil)
- #duration : Int64 | Nil
- #duration=(duration : Int64 | Nil)
- #file_name : String | Nil
- #file_name=(file_name : String | Nil)
- #media_key : String | Nil
- #media_key=(media_key : String | Nil)
- #media_status : String | Nil
- #media_status=(media_status : String | Nil)
- #media_type : String | Nil
- #media_type=(media_type : String | Nil)
- #media_url : String | Nil
- #media_url=(media_url : String | Nil)
- #name : String | Nil
- #name=(name : String | Nil)
- #poster_media_key : String | Nil
- #poster_media_key=(poster_media_key : String | Nil)
- #poster_media_url : String | Nil
- #poster_media_url=(poster_media_url : String | Nil)
- #title : String | Nil
- #title=(title : String | Nil)
- #to_hash
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #tweeted : Bool | Nil
- #tweeted=(tweeted : Bool | Nil)
- #updated_at : String | Nil
- #updated_at=(updated_at : String | Nil)
Constructor Detail
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)
#