TwitterAds::Proto::Stats::Params
Inherits JSON::Serializable < Protobuf::Message < Struct < Value < Object
Constants
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
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)
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)
country
country=(country : String | Nil)
end_time
end_time=(end_time : String)
entity
entity=(entity : String)
entity_ids
entity_ids=(entity_ids : Array(String) | Nil)
entity_ids=(entity_ids : Array(String) | Nil)
granularity
granularity=(granularity : String)
metric_groups
metric_groups=(metric_groups : Array(String) | Nil)
metric_groups=(metric_groups : Array(String) | Nil)
placement
placement=(placement : String)
platform
platform=(platform : String | Nil)
segmentation_type
segmentation_type=(segmentation_type : String | Nil)
start_time
start_time=(start_time : String)
to_hash
to_protobuf(io : IO, embedded = false)
to_protobuf