struct TwitterAds::Proto::CustomAudience

Included Modules

Defined in:

twitter-ads/proto/custom_audience.pb.cr

Constant Summary

FIELDS = {1 => {name: :targetable, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :targetable_types, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 4 => {name: :audience_type, 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: :permission_level, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :owner_account_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :reasons_not_targetable, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, 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: :updated_at, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :partner_source, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 13 => {name: :deleted, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 14 => {name: :audience_size, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 15 => {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(targetable : Bool | Nil = nil, name : String | Nil = nil, targetable_types : Array(String) | Nil = nil, audience_type : String | Nil = nil, description : String | Nil = nil, permission_level : String | Nil = nil, owner_account_id : String | Nil = nil, id : String | Nil = nil, reasons_not_targetable : Array(String) | Nil = nil, created_at : String | Nil = nil, updated_at : String | Nil = nil, partner_source : String | Nil = nil, deleted : Bool | Nil = nil, audience_size : Int64 | 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 audience_size : Int64 | Nil #

def audience_size=(audience_size : Int64 | Nil) #

def audience_type : String | Nil #

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

def id=(id : String | Nil) #

def name : String | Nil #

def name=(name : String | Nil) #

def owner_account_id : String | Nil #

def owner_account_id=(owner_account_id : String | Nil) #

def partner_source : String | Nil #

def partner_source=(partner_source : String | Nil) #

def permission_level : String | Nil #

def permission_level=(permission_level : String | Nil) #

def reasons_not_targetable : Array(String) | Nil #

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

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

def targetable : Bool | Nil #

def targetable=(targetable : Bool | Nil) #

def targetable_types : Array(String) | Nil #

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

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