struct TwitterAds::Proto::StatsParams

Included Modules

Defined in:

twitter-ads/proto/stats_params.pb.cr

Constant Summary

FIELDS = {1 => {name: :entity, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 2 => {name: :entity_ids, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 3 => {name: :start_time, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 4 => {name: :end_time, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 5 => {name: :metric_groups, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 6 => {name: :granularity, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 7 => {name: :placement, pb_type: :string, crystal_type: String, cast_type: String, native: true, optional: false, repeated: false, default: nil, packed: false}, 8 => {name: :segmentation_type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :country, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :platform, 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

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(entity : String, start_time : String, end_time : String, granularity : String, placement : String, entity_ids : Array(String) | Nil = nil, metric_groups : Array(String) | Nil = nil, segmentation_type : String | Nil = nil, country : String | Nil = nil, platform : String | 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 country : String | Nil #

def country=(country : String | Nil) #

def end_time : String #

def end_time=(end_time : String) #

def entity : String #

def entity=(entity : String) #

def entity_ids : Array(String) | Nil #

def entity_ids=(entity_ids : Array(String) | Nil) #

def entity_ids=(entity_ids : Array(String) | Nil) #

def granularity : String #

def granularity=(granularity : String) #

def metric_groups : Array(String) | Nil #

def metric_groups=(metric_groups : Array(String) | Nil) #

def metric_groups=(metric_groups : Array(String) | Nil) #

def placement : String #

def placement=(placement : String) #

def platform : String | Nil #

def platform=(platform : String | Nil) #

def segmentation_type : String | Nil #

def segmentation_type=(segmentation_type : String | Nil) #

def start_time : String #

def start_time=(start_time : String) #

def to_hash #

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

def to_protobuf #