struct Facebook::Proto::DirectDeal

Included Modules

Defined in:

cli/proto/facebook/DirectDeal.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: :adbreaks_enabled, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :advertiser_lead_email, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :advertiser_page, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :cpe_amount, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :cpe_currency, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :end_time, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :lifetime_budget_amount, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :lifetime_budget_currency, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :lifetime_impressions, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :pages, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 13 => {name: :placements, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 14 => {name: :priced_by, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 15 => {name: :publisher_name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 16 => {name: :review_requirement, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 17 => {name: :sales_lead_email, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 18 => {name: :start_time, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 19 => {name: :status, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 20 => {name: :targeting, pb_type: Targeting, crystal_type: Targeting, cast_type: Targeting?, native: false, optional: true, repeated: false, default: nil, packed: false}, 21 => {name: :third_party_ids, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 22 => {name: :third_party_integrated_deal, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, 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, adbreaks_enabled : Bool | Nil = nil, advertiser_lead_email : String | Nil = nil, advertiser_page : String | Nil = nil, cpe_amount : Int64 | Nil = nil, cpe_currency : String | Nil = nil, end_time : Int64 | Nil = nil, lifetime_budget_amount : Int64 | Nil = nil, lifetime_budget_currency : String | Nil = nil, lifetime_impressions : Int64 | Nil = nil, name : String | Nil = nil, pages : Array(String) | Nil = nil, placements : Array(String) | Nil = nil, priced_by : String | Nil = nil, publisher_name : String | Nil = nil, review_requirement : String | Nil = nil, sales_lead_email : String | Nil = nil, start_time : Int64 | Nil = nil, status : String | Nil = nil, targeting : Targeting | Nil = nil, third_party_ids : Array(String) | Nil = nil, third_party_integrated_deal : Bool | 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 adbreaks_enabled : Bool | Nil #

def adbreaks_enabled=(adbreaks_enabled : Bool | Nil) #

def advertiser_lead_email : String | Nil #

def advertiser_lead_email=(advertiser_lead_email : String | Nil) #

def advertiser_page : String | Nil #

def advertiser_page=(advertiser_page : String | Nil) #

def cpe_amount : Int64 | Nil #

def cpe_amount=(cpe_amount : Int64 | Nil) #

def cpe_currency : String | Nil #

def cpe_currency=(cpe_currency : String | Nil) #

def end_time : Int64 | Nil #

def end_time=(end_time : Int64 | Nil) #

def id : String | Nil #

def id=(id : String | Nil) #

def lifetime_budget_amount : Int64 | Nil #

def lifetime_budget_amount=(lifetime_budget_amount : Int64 | Nil) #

def lifetime_budget_currency : String | Nil #

def lifetime_budget_currency=(lifetime_budget_currency : String | Nil) #

def lifetime_impressions : Int64 | Nil #

def lifetime_impressions=(lifetime_impressions : Int64 | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def pages : Array(String) | Nil #

def pages=(pages : Array(String) | Nil) #

def pages=(pages : Array(String) | Nil) #

def placements : Array(String) | Nil #

def placements=(placements : Array(String) | Nil) #

def placements=(placements : Array(String) | Nil) #

def priced_by : String | Nil #

def priced_by=(priced_by : String | Nil) #

def publisher_name : String | Nil #

def publisher_name=(publisher_name : String | Nil) #

def review_requirement : String | Nil #

def review_requirement=(review_requirement : String | Nil) #

def sales_lead_email : String | Nil #

def sales_lead_email=(sales_lead_email : String | Nil) #

def start_time : Int64 | Nil #

def start_time=(start_time : Int64 | Nil) #

def status : String | Nil #

def status=(status : String | Nil) #

def targeting : Targeting | Nil #

def targeting=(targeting : Targeting | Nil) #

def third_party_ids : Array(String) | Nil #

def third_party_ids=(third_party_ids : Array(String) | Nil) #

def third_party_ids=(third_party_ids : Array(String) | Nil) #

def third_party_integrated_deal : Bool | Nil #

def third_party_integrated_deal=(third_party_integrated_deal : Bool | Nil) #

def to_hash #

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

def to_protobuf #