struct
TwitterAds::Proto::TargetingCriteriaEvent
- TwitterAds::Proto::TargetingCriteriaEvent
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
twitter-ads/proto/targeting_criteria_event.pb.crConstant 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: :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)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #[]=(key : String, val)
- #[]?(key : String)
- #country_code : String | Nil
- #country_code=(country_code : String | Nil)
- #end_time : String | Nil
- #end_time=(end_time : String | Nil)
- #event_type : String | Nil
- #event_type=(event_type : String | Nil)
- #id : String | Nil
- #id=(id : String | Nil)
- #is_global : Bool | Nil
- #is_global=(is_global : Bool | Nil)
- #name : String | Nil
- #name=(name : String | Nil)
- #start_time : String | Nil
- #start_time=(start_time : String | Nil)
- #to_hash
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
Constructor Detail
def self.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)
#