struct

TwitterAds::Proto::ContentCategory

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: :iab_categories, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, 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, iab_categories : Array(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)
iab_categories
iab_categories=(iab_categories : Array(String) | Nil)
iab_categories=(iab_categories : Array(String) | Nil)
id
id=(id : String | Nil)
name
name=(name : String | Nil)
to_hash
to_protobuf(io : IO, embedded = false)
to_protobuf