struct TwitterAds::Proto::PrerollCallToAction

Included Modules

Defined in:

twitter-ads/proto/preroll_call_to_action.pb.cr

Constant Summary

FIELDS = {1 => {name: :id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :line_item_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :call_to_action, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :call_to_action_url, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :created_at, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :updated_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: :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(id : String | Nil = nil, line_item_id : String | Nil = nil, call_to_action : String | Nil = nil, call_to_action_url : String | Nil = nil, created_at : 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 call_to_action : String | Nil #

def call_to_action=(call_to_action : String | Nil) #

def call_to_action_url : String | Nil #

def call_to_action_url=(call_to_action_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 id : String | Nil #

def id=(id : String | Nil) #

def line_item_id : String | Nil #

def line_item_id=(line_item_id : 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) #