struct TwitterAds::Proto::StatsAccount

Included Modules

Defined in:

twitter-ads/proto/stats_account.pb.cr

Constant Summary

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

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(account_id : String, data_type : String, time_series_length : Int64, request : StatsAccountRequest, data : Array(StatsAccountIdData) | Nil = nil) #

def self.new(buf : Protobuf::Buffer) #

def self.new(pull : JSON::PullParser) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def []=(key : String, val) #

def []?(key : String) #

def account_id : String #

def account_id=(account_id : String) #

def data : Array(StatsAccountIdData) | Nil #

def data=(data : Array(StatsAccountIdData) | Nil) #

def data=(data : Array(StatsAccountIdData) | Nil) #

def data_type : String #

def data_type=(data_type : String) #

def request : StatsAccountRequest #

def request=(request : StatsAccountRequest) #

def time_series_length : Int64 #

def time_series_length=(time_series_length : Int64) #

def to_hash #

def to_protobuf(io : IO, embedded = false) #

def to_protobuf #