struct

TwitterAds::Proto::StatsAccount

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

Constants

FIELDS = {1 => {name: :account_id, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 2 => {name: :data_type, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 3 => {name: :time_series_length, pb_type: :int64, crystal_type: Int64, cast_type: Int64, native: true, optional: false, repeated: false, default: nil, packed: false}, 4 => {name: :data, pb_type: StatsAccountIdData, crystal_type: StatsAccountIdData, cast_type: Array(StatsAccountIdData)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 5 => {name: :request, pb_type: StatsAccountRequest, crystal_type: StatsAccountRequest, cast_type: StatsAccountRequest, native: false, optional: false, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Fields = {} of String => Field

Constructors

new(account_id : String, data_type : String, time_series_length : Int64, request : StatsAccountRequest, data : Array(StatsAccountIdData) | Nil = nil)
new(buf : Protobuf::Buffer)
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)
data
data=(data : Array(StatsAccountIdData) | Nil)
data=(data : Array(StatsAccountIdData) | Nil)
data_type
data_type=(data_type : String)
request
request=(request : StatsAccountRequest)
time_series_length
time_series_length=(time_series_length : Int64)
to_hash
to_protobuf(io : IO, embedded = false)
to_protobuf