struct
TwitterAds::Proto::StatsParams
- TwitterAds::Proto::StatsParams
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
twitter-ads/proto/stats_params.pb.crConstant 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
- .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)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #[]=(key : String, val)
- #[]?(key : String)
- #country : String | Nil
- #country=(country : String | Nil)
- #end_time : String
- #end_time=(end_time : String)
- #entity : String
- #entity=(entity : String)
- #entity_ids : Array(String) | Nil
- #entity_ids=(entity_ids : Array(String) | Nil)
- #entity_ids=(entity_ids : Array(String) | Nil)
- #granularity : String
- #granularity=(granularity : String)
- #metric_groups : Array(String) | Nil
- #metric_groups=(metric_groups : Array(String) | Nil)
- #metric_groups=(metric_groups : Array(String) | Nil)
- #placement : String
- #placement=(placement : String)
- #platform : String | Nil
- #platform=(platform : String | Nil)
- #segmentation_type : String | Nil
- #segmentation_type=(segmentation_type : String | Nil)
- #start_time : String
- #start_time=(start_time : String)
- #to_hash
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
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)
#