struct

TwitterAds::Proto::TargetingCriteria

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

Constants

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: :name, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :line_item_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :operator_type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :tailored_audience_type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :tailored_audience_expansion, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :targeting_value, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :targeting_type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :created_at, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :updated_at, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :deleted, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {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(id : String | Nil = nil, name : String | Nil = nil, line_item_id : String | Nil = nil, operator_type : String | Nil = nil, tailored_audience_type : String | Nil = nil, tailored_audience_expansion : Bool | Nil = nil, targeting_value : String | Nil = nil, targeting_type : String | Nil = nil, created_at : 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)
created_at
created_at=(created_at : String | Nil)
deleted
deleted=(deleted : Bool | Nil)
id
id=(id : String | Nil)
line_item_id
line_item_id=(line_item_id : String | Nil)
name
name=(name : String | Nil)
operator_type
operator_type=(operator_type : String | Nil)
tailored_audience_expansion
tailored_audience_expansion=(tailored_audience_expansion : Bool | Nil)
tailored_audience_type
tailored_audience_type=(tailored_audience_type : String | Nil)
targeting_type
targeting_type=(targeting_type : String | Nil)
targeting_value
targeting_value=(targeting_value : String | Nil)
to_hash
to_protobuf(io : IO, embedded = false)
to_protobuf
updated_at
updated_at=(updated_at : String | Nil)