struct

TwitterAds::Proto::PromotableUser

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: :user_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :promotable_user_type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :created_at, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :updated_at, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :deleted, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {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, user_id : String | Nil = nil, promotable_user_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)
promotable_user_type
promotable_user_type=(promotable_user_type : String | Nil)
to_hash
to_protobuf(io : IO, embedded = false)
to_protobuf
updated_at
updated_at=(updated_at : String | Nil)
user_id
user_id=(user_id : String | Nil)