TwitterAds::Proto::TargetingCriteriaEvent
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: :is_global, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :country_code, pb_type: :string,
crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :event_type, pb_type: :string,
crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :start_time, 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: :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, is_global : Bool | Nil = nil, country_code : String | Nil = nil, event_type : String | Nil = nil, start_time : String | Nil = nil, end_time : 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)
country_code
country_code=(country_code : String | Nil)
end_time
end_time=(end_time : String | Nil)
event_type
event_type=(event_type : String | Nil)
id
id=(id : String | Nil)
is_global
is_global=(is_global : Bool | Nil)
name
name=(name : String | Nil)
start_time
start_time=(start_time : String | Nil)
to_hash
to_protobuf(io : IO, embedded = false)
to_protobuf